HackerLangs
トップ新着トレンドコメント過去質問紹介求人

lionkor

6,536 カルマ登録 6 年前
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]

投稿

Cloudflare business model for the agentic Internet

blog.cloudflare.com
2 ポイント·投稿者 lionkor·9 日前·0 コメント

Show HN: AI Use Disclaimer

libls.org
2 ポイント·投稿者 lionkor·17 日前·0 コメント

When can the C++ compiler devirtualize a call?

quuxplusone.github.io
76 ポイント·投稿者 lionkor·2 か月前·66 コメント

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

youtube.com
4 ポイント·投稿者 lionkor·2 か月前·0 コメント

Shai-Hulud: Open Sourcing the Carnage

github.com
4 ポイント·投稿者 lionkor·2 か月前·0 コメント

Ask HN: Where are SWE's being replaced?

4 ポイント·投稿者 lionkor·2 か月前·1 コメント

Approaching Zero Bugs?

daniel.haxx.se
4 ポイント·投稿者 lionkor·2 か月前·0 コメント

What Claude Code Chooses

amplifying.ai
1 ポイント·投稿者 lionkor·3 か月前·0 コメント

Silicon Valley's Billion Dollar Design Scams [video]

youtube.com
4 ポイント·投稿者 lionkor·3 か月前·0 コメント

[untitled]

1 ポイント·投稿者 lionkor·3 か月前·0 コメント

Matt Godbolt: Advanced Skylake Deep Dive [video]

youtube.com
3 ポイント·投稿者 lionkor·4 か月前·0 コメント

Running my kernel on real hardware

kamkow1lair.pl
1 ポイント·投稿者 lionkor·5 か月前·1 コメント

Ask HN: Where are the primary sources?

6 ポイント·投稿者 lionkor·6 か月前·0 コメント

AnonCreds – Verifiable Credential Format

github.com
1 ポイント·投稿者 lionkor·7 か月前·0 コメント

Things You Should Never Do, Part I

joelonsoftware.com
2 ポイント·投稿者 lionkor·7 か月前·1 コメント

PCILeech: Direct Memory Access via PCIe FPGA

github.com
5 ポイント·投稿者 lionkor·7 か月前·0 コメント

The Fastest Physics Yet [Video]

youtube.com
2 ポイント·投稿者 lionkor·7 か月前·1 コメント

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

github.com
2 ポイント·投稿者 lionkor·9 か月前·0 コメント

コメント

lionkor
·7 時間前·議論
It depends what kind of hot loop you have.
lionkor
·10 時間前·議論
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
·一昨日·議論
> 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
·一昨日·議論
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
·一昨日·議論
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
·一昨日·議論
Unlimited energy for 200 years is a good step, no?
lionkor
·一昨日·議論
That's not a political topic and it's WILD that you'd make it one
lionkor
·4 日前·議論
I have a template if anyone wants it

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