Live data from Hacker News

Viewing profile — zyedidia

zyedidia

HN member
Joined
Sat, Sep 05, 2015, 7:12 PM UTC
HN karma
144
Public activity
44 items

About zyedidia

https://github.com/zyedidia

Recent public activity

  1. comment
    Comment #43908201

    I think the only "C replacement" that is comparable in complexity to C is [Hare]( https://harelang.org/ ), but several shortcomings make it unsuitable as an actual C replacement in…

  2. comment
    Comment #43485631

    I don't think there are any plans for Ladybird to have a JIT compiler (they used to have one but decided to remove it) [1, 2], so it's not clear to me that this performance gap wil…

  3. comment
    Comment #43417320

    What is the recommended way to use defer to free values only on an error path (rather than all paths)? Currently I use goto for this: void* p1 = malloc(...); if (!p1) goto err1; vo…

  4. story
  5. comment
    Comment #43384226

    I think data races can cause undefined behavior in Go, which can cause memory safety to break down. See https://research.swtch.com/gorace for details.

  6. comment
    Comment #43196930

    It sounds like what you're describing is one-time allocation, and I think it's a good idea. There is some work on making practical allocators that work this way [1]. For long-runni…

  7. comment
    Comment #42970692

    The bug used by that repository [1] isn't the only one that can be used to escape the Safe Rust type system. There are a couple others I've tried [2] [3], and the Rust issue tracke…

  8. comment
    Comment #42707824

    This is very cool! I'm always on the lookout for extensible assemblers. I especially want one that can handle a normalized subset of GNU assembly so that it can be used on the outp…

  9. comment
    Comment #41863763

    I think one of the interesting aspects of WebAssembly compared to JavaScript is that it can be efficiently AOT-compiled. I've been interested in investigating AOT compilation for a…

  10. comment
    Comment #41863641

    Fair enough. I think it would be unfortunate if the WebAssembly language in browsers were a significantly different language than WebAssembly outside of browsers (just referring to…

  11. comment
    Comment #41862222

    Is there any AOT WebAssembly compiler that can compile Wasm used by websites? I tried locally compiling the Photoshop Wasm module mentioned in the article but the compilers I tried…

  12. comment
    Comment #40186858

    I am excitedly awaiting the full release of ASL1 from Arm. I wonder if anyone with more knowledge might be able to comment on how it compares with Sail and/or when we might expect …

  13. comment
    Comment #39174028

    I think it's a difference between ARMv8 and ARMv6/7 (I believe BKPT on ARMv6/7 sets the exception return address to `addr(instruction)+4`).

  14. comment
    Comment #39172450

    The reason is because the ARM `brk #0x1` instruction doesn't set the exception return address to the next instruction, so the debugger will just return to the breakpoint when it tr…

  15. comment
    Comment #38922255

    The Rust team did a deep dive on the bug in 2020, which has some more details that might be helpful to understanding what's going on: https://github.com/rust-lang/lang-team/blob/ma…

  16. comment
    Comment #38610215

    Thanks for the shout-out -- in case someone wants to check it out, the code for Lightweight Fault Isolation is available here: https://github.com/zyedidia/lfi .

  17. comment
    Comment #37853259

    Does anyone know why LSP uses UTF-16 for encoding columns? It seems like everyone agrees it is a bad choice, so I'm curious about the original reasoning. Are there any benefits at …

  18. comment
    Comment #37476165

    I think the Cortex-X series cores are the ones starting to make their way into laptops and the like (Cortex-X4 is the latest). These are Arm's "flagship" cores.

  19. comment
    Comment #37351261

    I didn't fully read the paper you linked, but I think at a high level the difference is this: the Exynos approach only encrypts the data stored in the branch predictor, while the A…

  20. comment
    Comment #37180270

    A big reason is because I started a working towards a PhD recently, and so I've been more focused on that. I think micro has also reached a relatively stable spot, where it would o…

  21. comment
    Comment #36441017

    I agree -- relying on Safe Rust's "guarantees" for security purposes is very likely to be problematic. To make the reasons concrete: for the last 4 years rustc has had a bug that a…

  22. comment
    Comment #36222198

    I came across this issue in Rust recently: https://github.com/rust-lang/rust/issues/57893 . I thought it was interesting since it lets you easily write transmute in safe Rust: http…

  23. comment
    Comment #35844911

    I think Hare ( https://harelang.org/ ) might fit the bill: it retains the minimalism and simplicity of C, but fixes issues like this (and others). Unfortunately I don't think it's …

  24. comment
    Comment #35760823

    You need to provide implementations of the sanitizer callbacks yourself. For example, to use the address sanitizer you should use `-fsanitize=kernel-address`, and then the compiler…

  25. comment
    Comment #35680465

    Depending on how much language support you want, you may want to compile without the D runtime (in which case you only have access to the C standard library, and various features a…