Live data from Hacker News

Viewing profile — cyber1

cyber1

HN member
Joined
Sun, Nov 09, 2014, 8:51 PM UTC
HN karma
1,214
Public activity
140 items

About cyber1

No profile information was provided.

Recent public activity

  1. comment
    Comment #48860354

    Valid point, but unsafe in Rust is more dangerous than unsafe in C, bcs of aliasing. For example PG is compiled with -fno-strict-aliasing.

  2. comment
    Comment #48848276

    The concept of lifetimes was invented long before Rust borrow checker was even "scratched on paper." Of course, people who understand what they are they doing have known about thes…

  3. comment
    Comment #48845336

    What I mentioned is only a tiny part of the entire software, which has been successfully written in C, C++, and now in Zig as well, and is used daily by people around the world.

  4. comment
    Comment #48844352

    For 99.99% of cases, you're reading and writing this under an operating system whose kernel is written in a language without send/sync, and inside a browser that also largely writt…

  5. comment
  6. comment
  7. comment
    Comment #48844039

    If you use Rust the way it was designed to be used, rather than relying on countless "unsafe" blocks, you need to redesign the entire codebase architecture to make it compatible wi…

  8. comment
    Comment #48843989

    How is Bun codebase connected to Zig codebase?

  9. comment
    Comment #48843950

    To me, this whole effort of rewriting Bun from Zig to Rust looks like a big marketing move. The question is: if Anthropic AI is really that powerful, why not just fix the bugs and …

  10. comment
    Comment #48843529

    2664 "unsafe {", 1835 "unsafe fn". This is completely unsafe. It doesn't look like a rewrite that understands what's actually going on or how the architecture should be redesigned …

  11. comment
    Comment #45858894

    I also hope that WG14 eventually adopts successful features from Zig, such as comptime, and reduces the use of ugly macros and _Generic.

  12. comment
    Comment #45855114

    The biggest advantages of Zig for me are that everything is explicit (no hidden features like overloads or implicit conversions) and that its metaprogramming is powerful, easy to u…

  13. story
  14. comment
    Comment #45274415

    Just look at this: https://pvs-studio.com/en/blog/posts/cpp/1129/ - 11 parts about C++ undefined behavior from people who specialize in finding this stuff. And that’s only the tip …

  15. comment
    Comment #45046942

    No, it does. "The only two features in the language that do not follow the zero-overhead principle are runtime type identification and exceptions, and are why most compilers includ…

  16. story
  17. comment
    Comment #44862027

    At first glance, when I looked through the Zig reference, I didn’t like a lot about its syntax (though syntax isn’t the most important thing for me). But when I tried writing in it…

  18. story
  19. comment
    Comment #44747791

    "func" is fine; "function" is too long. "fn" is also good, but for example, Go was designed with "func," and it's one of the most successful, readable languages in the world, so wh…

  20. comment
    Comment #44694951

    This is true. I agree with this statement. It's the holy cow of C. However, the problem with generic programming and metaprogramming isn't going away, and many people continue to s…

  21. comment
    Comment #44693025

    I'm currently at a crossroads: C++ or Zig. One is very popular with a large community, amazing projects, but has lots of ugly design decisions and myriad rules you must know (this …

  22. comment
    Comment #44692977

    Hey, I understand you and know this stuff well, having worked with it for many years as a C dev. To be honest, this isn't how things should generally be done. Macros were invented …

  23. comment
    Comment #44692806

    Many C programmers need proper generic programming mechanisms (perhaps something like Zig's comptime) in C, but macros are the worst possible approach, and they don't want to switc…

  24. comment
    Comment #44582507

    Glory to Ukraine! Slava Ukraini!

  25. comment
    Comment #43982539

    "Safe" Rust is generally a simple language compared to C++. The borrow checker rules are clean and consistent. However, writing in it isn't as simple or intuitive as what we've see…