Live data from Hacker News

Viewing profile — veddan

veddan

HN member
Joined
Fri, Dec 13, 2013, 7:25 PM UTC
HN karma
208
Public activity
41 items

About veddan

No profile information was provided.

Recent public activity

  1. comment
    Comment #47860918

    I think it should be possible to get rid of the Option tag without introducing any unsafe code by changing index in Gc from u32 to std::num::NonZero .

  2. comment
    Comment #46197967

    For LLMs, I just pulled the latest llama.cpp and built it. Haven't had any issues with it. This was quite recently though, things used be a lot worse as I understand it.

  3. comment
    Comment #36572296

    In git a branch is a name that points to a commit. When you commit to a branch, you create a new commit and then update the branch to point to the new commit.

  4. comment
    Comment #36527634

    I think you can do this with

  5. comment
    Comment #36031753

    There's also JSON_ARRAYAGG. https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions....

  6. comment
    Comment #35698940

    I'm a bit behind on modern PostgreSQL so I might be wrong, but I believe MySQL has better support for what they call "online DDL" (modifying tables without blocking simultaneous qu…

  7. comment
    Comment #33333689

    We actually had an accidental back button hijack at a place I used to work at. It was an SPA, where if you navigated to / it would check if you were logged in. If so, you would be …

  8. story
  9. comment
    Comment #26860595

    There was some work done on a RWF_UNCACHED flag a while back, but I'm not sure if it went anywhere. It was supposed to use the page cache if the page is already there, but not add …

  10. comment
    Comment #25908073

    The ASS format has some basic animation with the \move command (moving subtitles using linear interpolation) and the \t command (changing various properties of a line with the poss…

  11. comment
    Comment #21019078

    bcmp just tells you "equal" or "not equal", while memcmp tells you "lesser", "equal", or "greater". I don't really know, but I suppose it might be possible to make bcmp faster sinc…

  12. comment
    Comment #20446094

    We recently got something similar in Sweden too: https://www.spelpaus.se/ It's a blocklist that all licensed gambling companies in Sweden are required to respect. You add yourself …

  13. comment
    Comment #15755151

    4% or 20 million, whichever is greater.

  14. comment
  15. comment
    Comment #12353678

    There are some methods to get around this. For example, there's an ELF extension called STT_GNU_IFUNC. It allows a symbol to be resolved at load time using a custom resolver functi…

  16. comment
    Comment #12353559

    Reasonably modern versions of GCC will emit various rep instructions in some cases. Some code I just compiled with GCC 6.1.1 had several snippets like this emitted for zeroing with…

  17. comment
    Comment #11896858

    Unless your program is designed to work that way, the fine-grained synchronization that StringBuffer offers over StringBuilder is almost certainly not very useful. And since Java i…

  18. comment
    Comment #11515529

    On Linux you can use hostapd and dhcpd.

  19. comment
    Comment #11273928

    For many programs it's easy to decide whether they halt or not. int main(void) { for (;;); }

  20. comment
    Comment #11188371

    I wastes memory too, having multiple copies of the same shared libraries loaded.

  21. comment
    Comment #11013600

    In C99: #include int main(void) { (* * & * * * * * & * * * * * * * * * * * * * printf)(&1["C is awesome\n"]-3/2); }

  22. comment
    Comment #10917604

    Prefix the command with a space and bash won't save it in its history.

  23. comment
    Comment #10508175

    Oxytocin is not an opioid. You are thinking of Oxycontin.

  24. comment
    Comment #9828055

    Still, there are cases where fall-through can be useful: int remaining = length % 4; switch (remaining) { case 3: h ^= (data[(length & ~3) + 2] & 0xff)

  25. comment
    Comment #9827637

    Going through a union is the correct way of viewing one type as another. Casting pointers to accomplish this is undefined behaviour (except for char *) and compilers do TBBA (type-…