soegaard2
2020-12-13 10:13:50

Great idea from @shukla.at (@raykar.ath): https://github.com/atharvashukla/table-of-contents (A table of contents to help people navigate a large number of Github repositories)


plragde
2020-12-13 14:30:00

I have found Safari getting flaky recently. It just fails to render some pages. I copy the URL over to Firefox and it does fine.



laurent.orseau
2020-12-13 19:17:27

@alexharsanyi superb post :) small css comment: the lhs menu steps on the main text of my phone:


yilin.wei10
2020-12-13 19:44:50

In the documentation https://docs.racket-lang.org/foreign/foreign_pointer-funcs.html?q=malloc#%28def._%28%28quote._~23~25foreign%29._malloc%29%29\|malloc has multiple modes. In particular 'atomic , states that the memory isn’t traced by the GC; which I assume means that you would need to hold references to any bits of memory referenced /within/ the malloc block?


soegaard2
2020-12-13 19:45:57

I am no expert in malloc, but that I agree with that interpretation.


mflatt
2020-12-13 20:08:29

More than that: any objects referenced by the block might be moved (unless something specifically keeps them in place), which means the references can become invalid.


alexharsanyi
2020-12-13 22:19:25

I am aware of the CSS problem, unfortunately, I don’t know how to fix it. If anyone wants to help, the CSS source is at https://github.com/alex-hhh/alex-hhh.github.io/blob/master/css/custom.css


alexharsanyi
2020-12-13 22:20:35

I’m glad you like the blog post :-), @laurent.orseau


soegaard2
2020-12-13 22:25:16

The body text is inside an <article>. I think adding an article { margin-left: 1rem; } is enough.


alexharsanyi
2020-12-13 22:33:31

That does indeed appear to fix the problem and I pushed this fix, thanks for the hint


wanpeebaw
2020-12-14 04:18:26

Don’t know how to write such programs in a side-effect free manner…:thinking_face:


alexharsanyi
2020-12-14 04:54:02

The first version of the program was written side-effect free, but the resulting program was more difficult to explain in a blog post and more difficult to extend with new features. In my opinion anyway…


kellysmith12.21
2020-12-14 05:39:55

Is there a way to make new definition (@def...) forms for #lang scribble/manual, other than making adjustments to existing forms?


samth
2020-12-14 05:53:06

@kellysmith12.21 they’re just functions, so you can write other functions that do what they do. They aren’t specially recognized by scribble/manual.