HackerLangs
TopNewTrendsCommentsPastAskShowJobs

lionkor

6,536 karmajoined 6 tahun yang lalu
c++, rust and c#, software engineer located in Germany, currently working in the electrical power industry (high- to ultra high voltage testing- and measurement equipment).

contact: [email protected]

Submissions

Cloudflare business model for the agentic Internet

blog.cloudflare.com
2 points·by lionkor·9 hari yang lalu·0 comments

Show HN: AI Use Disclaimer

libls.org
2 points·by lionkor·17 hari yang lalu·0 comments

When can the C++ compiler devirtualize a call?

quuxplusone.github.io
76 points·by lionkor·2 bulan yang lalu·66 comments

Robot Dogs Are a Security Nightmare – Benn Jordan [video]

youtube.com
4 points·by lionkor·2 bulan yang lalu·0 comments

Shai-Hulud: Open Sourcing the Carnage

github.com
4 points·by lionkor·2 bulan yang lalu·0 comments

Ask HN: Where are SWE's being replaced?

4 points·by lionkor·2 bulan yang lalu·1 comments

Approaching Zero Bugs?

daniel.haxx.se
4 points·by lionkor·2 bulan yang lalu·0 comments

What Claude Code Chooses

amplifying.ai
1 points·by lionkor·3 bulan yang lalu·0 comments

Silicon Valley's Billion Dollar Design Scams [video]

youtube.com
4 points·by lionkor·3 bulan yang lalu·0 comments

[untitled]

1 points·by lionkor·3 bulan yang lalu·0 comments

Matt Godbolt: Advanced Skylake Deep Dive [video]

youtube.com
3 points·by lionkor·4 bulan yang lalu·0 comments

Running my kernel on real hardware

kamkow1lair.pl
1 points·by lionkor·5 bulan yang lalu·1 comments

Ask HN: Where are the primary sources?

6 points·by lionkor·6 bulan yang lalu·0 comments

AnonCreds – Verifiable Credential Format

github.com
1 points·by lionkor·7 bulan yang lalu·0 comments

Things You Should Never Do, Part I

joelonsoftware.com
2 points·by lionkor·7 bulan yang lalu·1 comments

PCILeech: Direct Memory Access via PCIe FPGA

github.com
5 points·by lionkor·7 bulan yang lalu·0 comments

The Fastest Physics Yet [Video]

youtube.com
2 points·by lionkor·7 bulan yang lalu·1 comments

AI-httpd – Let an LLM pretend to be your HTTP server

github.com
2 points·by lionkor·9 bulan yang lalu·0 comments

comments

lionkor
·7 jam yang lalu·discuss
It depends what kind of hot loop you have.
lionkor
·10 jam yang lalu·discuss
TUI and CLI isn't the same thing. A badly written TUI will fail to check isatty() on stdin and will dump ANSI escape codes, which are not trivial to remove from the output as they follow a format that has different formats, lengths and sentinels that denote the ending.
lionkor
·kemarin dulu·discuss
> C++ instead of Zig would be a reasonable choice for Bun. We would get constructors & destructors. We could delete lots of extern "C" wrapper code.

> But, we would still be reliant on style guides enforced through code review, and even with ASAN, memory corruption and memory leaks would still happen.

Tell me you didn't even look at C++ without telling me you didn't even look at C++. I don't understand this at all, what's missing? There's clang-format, clang-tidy, cppcheck and so many others, what is missing exactly? Memory safety? Then why bring up C++ and style guides(?) at all?
lionkor
·kemarin dulu·discuss
The result of this will be that you end up at the highest level of abstraction.

Let me save you time and tell you that C# and it's ecosystem is where you'll be happy.
lionkor
·kemarin dulu·discuss
It depends just how fast you need it. C++ is much easier to get to zero abstraction code.

In Rust you are constantly fighting the stdlib and other libraries, and you have to litter your hot code with unsafe blocks to get it to stop adding a branch to nearly every object access, be it for bounds checks or over/underflow checks.

C++ does a much better job at giving you a zero abstraction API, and you can always drop down to raw pointers if you want, without(!!!!) unsafe blocks and weird tricks. Of course it's unsafe in C++ but the friction to writing a branchless hot loop is muuuuch smaller.

When profiling and optimizing Rust code, I very often find myself poring over the generated code, making small changes, reading api docs, and trying again, much more than in C++. Lots of unsafe Rust APIs are not even nearly good enough, even with most checks turned off you will find branches that just branch to panic!(), which is, you guessed it, still more code and a branch than the code would suggest.

I get why people think that most systems languages are the same "speed", but they really are not if you are hitting limits of the hardware in your hot loops.
lionkor
·kemarin dulu·discuss
Unlimited energy for 200 years is a good step, no?
lionkor
·kemarin dulu·discuss
That's not a political topic and it's WILD that you'd make it one
lionkor
·4 hari yang lalu·discuss
I have a template if anyone wants it

https://libls.org/ai-use.html
lionkor
·6 hari yang lalu·discuss
Because it implies that the users of the AI don't understand that it's output is usually horseshit littered with enough good info to make it sound correct
lionkor
·7 hari yang lalu·discuss
Not OP, but overconfidence is not a quality I would invest in.
lionkor
·9 hari yang lalu·discuss
In Europe (at least DE and NL), we also usually are taught British English in schools.
lionkor
·10 hari yang lalu·discuss
That's the marketing pitch of cloudflare, yes. That doesn't mean that it's a good idea, it means that they'd like it to be.
lionkor
·11 hari yang lalu·discuss
Tell me you don't know when a CDN is needed without telling me you don't know when a CDN is needed
lionkor
·11 hari yang lalu·discuss
Yes, however there is history with this:

- EU-US Passenger Name Record Agreement: https://eur-lex.europa.eu/EN/legal-content/summary/eu-us-agr...

- EU PNR Directive 2016/681: https://eur-lex.europa.eu/eli/dir/2016/681/oj/eng

- EU-US SWIFT / Terrorist Finance Tracking Program Agreement: https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELE...

- EU Data Retention Directive 2006/24/EC: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=celex:62...
lionkor
·12 hari yang lalu·discuss
Okay that's fascinating. Can you share what kind of things require this? Where are compilers and extensive profiling not enough? Is it just very hot right loops, or larger routines? Is it for CPU or GPU?
lionkor
·12 hari yang lalu·discuss
You know this from? Any sources? I'd love to learn more because it would be one of the very few industries that still write assembly by hand extensively enough to warrant hiring experts on just that.
lionkor
·14 hari yang lalu·discuss
that's pretty silly to use as a measure of what they do internally
lionkor
·14 hari yang lalu·discuss
An LLM wrote the announcement
lionkor
·14 hari yang lalu·discuss
Not trying to be mean but it's likely the case that OP is not evaluating this properly, either due to a lack of skill or a lack of objectivity
lionkor
·14 hari yang lalu·discuss
deepseek has no part of their privacy policy on their API about training. They are 100% training on every single word you give it.

If your customers are fine with that, your IP is not interesting, then you can use it.