HackerLangs
TopNewTrendsCommentsPastAskShowJobs

jcelerier

no profile record

Submissions

Show HN: Librediffusion: C++ / CUDA Reimplementation of StreamDiffusion

github.com
3 points·by jcelerier·5 ay önce·0 comments

Qt 6.10 Released

qt.io
20 points·by jcelerier·9 ay önce·5 comments

comments

jcelerier
·8 gün önce·discuss
I've seen developers pushing code repeatedly to car engine firmware with for-loops that weren't even valid C syntax, have yet to see a modern LLM do this kind of mistake
jcelerier
·10 gün önce·discuss
> computers and Internet shouldn't exist and life would be better

I don't think that's remotely controversial
jcelerier
·11 gün önce·discuss
> there's at least one customer in need for a product

just because whales exist does not mean feeding them is a goal to aim for as a society. 99.9% of technology could disappear tomorrow and life would become better.
jcelerier
·13 gün önce·discuss
What's your opinion on software like https://www.autohotkey.com/ then?
jcelerier
·18 gün önce·discuss
But a lot of people are still running macOS < 10.15
jcelerier
·24 gün önce·discuss
In throughput but not in latency, and especially not in variability
jcelerier
·24 gün önce·discuss
It's crazy to me to think that I was hoping to move my home network to 10GbE in the next few years, around 2006-2007... Twenty years after most home networking is still at the 2005 level of a 30€Netgear GS108
jcelerier
·26 gün önce·discuss
Pretty sure esp32 just rebooted automatically when unhandled exception is thrown for instance
jcelerier
·27 gün önce·discuss
> If you add exceptions to a library that didn’t previously use them then I almost definitely have to update my code.

No, that's the whole point. You let them bubble up to the top of the event loop and you report the error to the user. As a user, anything else leads to shitty software where the programmer tries to outsmart the world around them (and fails, obviously, leading to worse end-user experience than just admitting that you don't and can't have control over everything)
jcelerier
·27 gün önce·discuss
> More nails does not create more house.

sure, but less nails definitely prevents you from having more house
jcelerier
·27 gün önce·discuss
> If you crash from an unhandled exception, you don't.

.. you absolutely get a stack trace from unhandled exception in c++, that starts where the exception is thrown? At least with clang and GCC, maybe MSVC isn't able to.

foo.cpp:

    #include <stdexcept    
    void bar() { throw std::runtime_error("boo"); }
    void foo() { bar(); }
    int main() { foo(); }

running:

    $ g++ foo.cpp -std=c++23 -g
    $ ./a.out
    terminate called after throwing an instance of 'std::runtime_error'
      what():  boo

    $ coredumpctl gdb
    ...
    #7  0x00005555555551bb in bar () at foo.cpp:3
    #8  0x00005555555551da in foo () at foo.cpp:4
    #9  0x00005555555551e6 in main () at foo.cpp:5

it's a basic example, but it's how I've always done all my debugging in C++ since forever
jcelerier
·27 gün önce·discuss
It's crazy for me to think that people cannot see how wrong it is from the normal speed video. For me it's obvious and infuriating, it physically feels like it's punching my retina
jcelerier
·30 gün önce·discuss
> If you can deliver the same thing in fewer correct lines of code

it really depends on what you're doing. If your goal is "become interoperable with the N different and incompatible network protocols that people have devised for doing task X" I'd really like to know a solution that doesn't have at least some part of the amount of code that scales with N.

Example: consider https://bitfocus.io/connections which connects to 700 different things. Right now it's written with Node.JS, with one repo per connection (example: https://github.com/bitfocus/companion-module-meyersound-gala...). Let's say you want to make a similar product but that runs on ESP32 where performance is paramount so you need C++ or Rust. How do you do that without at least as many lines of code as the existing JS implementations for every system supported by Companion?
jcelerier
·geçen ay·discuss
Apparently roughly ~150k math PhDs live on earth right now, assuming they all know Lean that's between 0.001% and 0.002% of earth population so quite closer to no one than one
jcelerier
·geçen ay·discuss
Allowing closed-source to exist is always the less moral choice for many reasons (one example being ecological sustainability)
jcelerier
·2 ay önce·discuss
> How fast do you want your slideshow to be?

we're in 2026, 240hz screens are becoming common. Nothing in the end-user experience should take more than 3-4ms. My personal goal when developing is keeping things at at least 60FPS and ideally 120 when building the whole stack with ASAN / UBSAN / stdlib's debug modes.

For instance when looking at this the first thing I thought was to try to make an installation which permanently recurses the codec's application on itself at each frame, to give the impression of a constantly moving landscape. Impossible on a smaller machine if computing a single frame takes 150ms.
jcelerier
·2 ay önce·discuss
would be great to have the weights somewhere
jcelerier
·2 ay önce·discuss
or maybe erlang / elixir do not have 1/1000th of the libraries and features available to C++ thus it's more efficient to port what can be ported? would you rather have the whole of C++ ported to erlang?
jcelerier
·2 ay önce·discuss
next intel cpus will have AVX 10.2 & APX
jcelerier
·2 ay önce·discuss
export to large files that represent numbers in textual format for instance ? this can be the difference between "waiting 10 seconds when hitting ctrl-s" and "the software saving automatically on each change because it's unnoticeable"