HNHacker News
TopNewBestAskShowJobs

rucikir

53 karma · joined October 9, 2018

submissionscomments
rucikir··on I write type-safe generic data structures in C
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

rucikir··on OCaml at Bloomberg
There are type annotations. The syntax is `(expression : type_expression)`.
rucikir··on The Babel Routing Protocol
Take a look at the document "Applicability of the Babel routing protocol": https://tools.ietf.org/html/draft-ietf-babel-applicability-1...
rucikir··on The Babel Routing Protocol
A more recent one here: https://media.freifunk.net/v/evolution-of-the-babel-routing-...
rucikir··on Garbage collection via pneumatic tubes
I don't understand how pneumatic tubes may be used to reclaim memory.
rucikir··on Show HN: Z shell configuration, zsh startup files, when they load, what they do
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`.