News for hackers. Stuff that matters.

rucikir

Re:I write type-safe generic data structures in C on Tuesday July 08, 2025 @05:53PM (#44504405)
Playing with MSVC's typeof, I've just discovered that its docs [1] have an example that has never worked with any released version of MSVC... MSVC doesn't support `typeof` applied on function types and function pointers! (bug report [2] [3]). Is there anyone from the compiler team around here? :)

[1]: https://learn.microsoft.com/en-us/cpp/c-language/typeof-c?vi... [2]: https://developercommunity.visualstudio.com/t/Support-for-ty... [3]: https://gcc.godbolt.org/z/Kn51qrj99

Re:OCaml at Bloomberg on Tuesday August 24, 2021 @05:45AM (#28286739)
There are type annotations. The syntax is `(expression : type_expression)`.
Re:The Babel Routing Protocol on Tuesday December 22, 2020 @06:09AM (#25505096)
Take a look at the document "Applicability of the Babel routing protocol": https://tools.ietf.org/html/draft-ietf-babel-applicability-1...
Re:The Babel Routing Protocol on Tuesday December 22, 2020 @06:07AM (#25505081)
Re:Garbage collection via pneumatic tubes on Friday October 02, 2020 @02:46PM (#24665726)
I don't understand how pneumatic tubes may be used to reclaim memory.
If something like `export PATH="aa:$PATH"` is written in `.zshenv`, as the file is sourced even for nested zsh sessions, a new `aa` will be prepended for each zsh level. Consider protecting that kind of expansion (if you use it) with `if [[ $SHLVL == 1 ]]; then ...; fi`.