HackerLangs
TopNewTrendsCommentsPastAskShowJobs

lionkor

6,536 karmajoined il y a 6 ans
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·il y a 9 jours·0 comments

Show HN: AI Use Disclaimer

libls.org
2 points·by lionkor·il y a 17 jours·0 comments

When can the C++ compiler devirtualize a call?

quuxplusone.github.io
76 points·by lionkor·il y a 2 mois·66 comments

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

youtube.com
4 points·by lionkor·il y a 2 mois·0 comments

Shai-Hulud: Open Sourcing the Carnage

github.com
4 points·by lionkor·il y a 2 mois·0 comments

Ask HN: Where are SWE's being replaced?

4 points·by lionkor·il y a 2 mois·1 comments

Approaching Zero Bugs?

daniel.haxx.se
4 points·by lionkor·il y a 2 mois·0 comments

What Claude Code Chooses

amplifying.ai
1 points·by lionkor·il y a 3 mois·0 comments

Silicon Valley's Billion Dollar Design Scams [video]

youtube.com
4 points·by lionkor·il y a 3 mois·0 comments

[untitled]

1 points·by lionkor·il y a 3 mois·0 comments

Matt Godbolt: Advanced Skylake Deep Dive [video]

youtube.com
3 points·by lionkor·il y a 4 mois·0 comments

Running my kernel on real hardware

kamkow1lair.pl
1 points·by lionkor·il y a 5 mois·1 comments

Ask HN: Where are the primary sources?

6 points·by lionkor·il y a 6 mois·0 comments

AnonCreds – Verifiable Credential Format

github.com
1 points·by lionkor·il y a 7 mois·0 comments

Things You Should Never Do, Part I

joelonsoftware.com
2 points·by lionkor·il y a 7 mois·1 comments

PCILeech: Direct Memory Access via PCIe FPGA

github.com
5 points·by lionkor·il y a 7 mois·0 comments

The Fastest Physics Yet [Video]

youtube.com
2 points·by lionkor·il y a 7 mois·1 comments

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

github.com
2 points·by lionkor·il y a 9 mois·0 comments

comments

lionkor
·il y a 7 heures·discuss
It depends what kind of hot loop you have.
lionkor
·il y a 10 heures·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
·avant-hier·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
·avant-hier·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
·avant-hier·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
·avant-hier·discuss
Unlimited energy for 200 years is a good step, no?
lionkor
·avant-hier·discuss
That's not a political topic and it's WILD that you'd make it one
lionkor
·il y a 4 jours·discuss
I have a template if anyone wants it

https://libls.org/ai-use.html
lionkor
·il y a 6 jours·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
·il y a 7 jours·discuss
Not OP, but overconfidence is not a quality I would invest in.
lionkor
·il y a 9 jours·discuss
In Europe (at least DE and NL), we also usually are taught British English in schools.
lionkor
·il y a 10 jours·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
·il y a 11 jours·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
·il y a 11 jours·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
·il y a 12 jours·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
·il y a 12 jours·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
·il y a 14 jours·discuss
that's pretty silly to use as a measure of what they do internally
lionkor
·il y a 14 jours·discuss
An LLM wrote the announcement
lionkor
·il y a 14 jours·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
·il y a 14 jours·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.