Live data from Hacker News

Viewing profile — ainar-g

ainar-g

HN member
Joined
Sun, Jun 07, 2015, 5:15 PM UTC
HN karma
3,708
Public activity
676 items

About ainar-g

No profile information was provided.

Recent public activity

  1. comment
    Comment #48152083

    https://doc.rust-lang.org/reference/behavior-considered-unde...

  2. comment
    Comment #47004260

    Have you ever learned a language? Because that's what it is for a very large percentage of people.

  3. comment
    Comment #46090566

    Which is why the Soviet government used “ultraviolet baths” to make sure that children up North got their vitamin D. https://www.nationalgeographic.com/photo-of-the-day/photo/ul...…

  4. comment
    Comment #45498484

    There's always ReactOS[1], a project for a bug-for-bug compatible Windows clone. It used to mostly aim at Windows 9x compatibility the last time I'd checked, though, but that could…

  5. comment
    Comment #41132815

    Thank you, rsc, for all your work. Development in Go has become much more enjoyable in these 12 years: race detector, standardized error wrapping, modules, generics, toolchain upda…

  6. comment
    Comment #40969453

    Source on the reasons, from the editor: https://pony.social/@thephd/112791335889843647 .

  7. story
  8. comment
    Comment #40814526

    If I recall correctly, ProtoBuf has a reflection layer, and it's probably using that.

  9. comment
    Comment #40812885

    Re. bad tooling. grpcurl[1] is irreplaceable when working with gRPC APIs. It allows you to make requests even if you don't have the .proto around. [1]: https://github.com/fullstory…

  10. comment
    Comment #40787928

    > While the compiled programs stayed the same, we no longer get a warning (even with -Wall), even though both compilers can easily work out statically (e.g. via constant folding) t…

  11. comment
    Comment #40398713

    Ah, so extremely localized uses of pointers, got it, thanks.

  12. comment
    Comment #40397905

    That could be true, but I've done a few optimizations of allocations in Go code, and I don't recall pointers to stack values ever being optimized (unless the entire branch is remov…

  13. comment
    Comment #40397865

    Whenever you do: v := interfaceType(concreteTypeValue) in Go, what you're actually doing on a lower level is: dataPtr := &concreteTypeValue typePtr := typeData[concreteType]() v :=…

  14. comment
    Comment #40390388

    To be fair, if that's what you need ProtoBuf isn't the only option. Cap'n Proto[1], JSON Schema[2], or any other well supported message-definition language could probably achieve t…

  15. comment
    Comment #40389185

    There is a proposal to get this using the "defer" keyword into either the next C revision or the one after that[1]. [1]: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3199.htm …

  16. comment
    Comment #40388495

    Privilege separation[1], most likely. If your system needs to do three things, it could either just do all of them using a single executable requiring all three permissions (thus a…

  17. comment
    Comment #40378642

    This makes me thing of the stories I've heard stories from those who lived in communal apartments back in the U.S.S.R. days. Couples who had a creaking bed and wanted to go at it a…

  18. comment
    Comment #39970524

    Why the quotation marks? If I recall correctly, Vala compiles (by way of C) into native code.

  19. story
  20. comment
    Comment #39885514

    IPv6, too. (Unless you also need interface IDs for link-local addresses.)

  21. comment
    Comment #39873531

    On a related note, have there ever been extensions for PosgreSQL/SQLite/any other FOSS DBMS that would allow using Tutorial D[1] (the Third-Manifesto one, not to be confused with W…

  22. comment
    Comment #39571674

    A feature that combines well with range and enum types are typed indexes of arrays: TYPE TWeekday = (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday); VAR WeekdayNam…

  23. story
  24. comment
    Comment #39178589

    Re. the shape of the code, it's probably a matter of habit, as I have the complete opposite experience reading code in languages with exceptions. That is, I find that there is too …

  25. comment
    Comment #39160841

    Funny you mention Go, because it's my main language these days. And I have to be honest, I don't have the issues you're mentioning. 99 % of loops in the code I review is the plain …