HNHacker News
TopNewBestAskShowJobs

mbel

1,309 karma · joined October 26, 2011

http://belickim.net
submissionscomments
mbel··on Everything in C is undefined behavior
Unless your code targets some exotic architecture, like idk x86.
mbel··on Meta acquires Moltbook
Yeah, totally, just one more year.
mbel··on Scientists discover oldest poison, on 60k-year-old arrows
Nobody would say „trujący wąż” (poisonous snake) or „jadowity grzyb” (venomous mushroom). The distinction is similar to English. There are exceptions and contexts where it can be used interchangeably but arguably the same is true for English.
mbel··on Scientists discover oldest poison, on 60k-year-old arrows
Not really, we have both „jad” (venom) and „trucizna” (poison).
mbel··on Clicks Communicator
The primary use case that I can see is following: you use your second phone — the communicator — to chat, while watching endless stream of tiktoks/reels/shorts on the first one.
mbel··on I've been writing ring buffers wrong all these years (2016)
> In terms of CPU? The other way around.

That depends on your architecture and access pattern. In case of sequential access, packed bools may perform better due to arithmetic being usually way cheaper than memory operations.

mbel··on APT Rust requirement raises questions
> It’s less simple than many systems languages because it has a very strong type system.

I don’t think that’s the case, somehow most ML derived languages ended up with stronger type system and cleaner syntax.

mbel··on I spent the day teaching seniors how to use an iPhone
In this case there is both time a distance limit to the gesture. If the gesture is too fast the switcher won’t appear even if the distance was long enough.

That said, personally I’ve always found the gesture navigation very intuitive.

mbel··on Sj.h: A tiny little JSON parsing library in ~150 lines of C99
It feels like a stretch to call this a parser. It’s looks like a typical lexer?
mbel··on Show HN: A new programming language inspired by Go, no LLVM
Probably the compilation time is better than it would be with LLVM. On the other hand I doubt that codegen and therefore performance is on par with LLVM.

Definitely a weird thing to advertise.

mbel··on Open-source interactive C tutorial in the browser
This is mostly an issue with MSVC which refuses to become compliant with c99 standard. Their support for c11 and c17 also has some gaps around features that were introduced in c99.
mbel··on How a 20 year old bug in GTA San Andreas surfaced in Windows 11 24H2
Most popular languages would prevent this. In this case it’s as simple as having more sensible reader API than sscanf in standard library and forcing variables to be initialized.
mbel··on C++: terser (shorter) lambda == SHORTY (ab-use?)
To be honest the implementation looks surprisingly readable… at least compared to other horrors like the standard library implementation.

While there are some new rules regarding arguments naming, the new syntax doesn’t feel more complex than the default lambda syntax.

So all in all I would say the most horrifying thing here is the fact that the language allows such extensions in the first place ;)

mbel··on Performance of the Python 3.14 tail-call interpreter
It's explained under the first link from the article [0]:

"A new type of interpreter has been added to CPython. It uses tail calls between small C functions that implement individual Python opcodes, rather than one large C case statement."

[0] https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-...

mbel··on Don't "optimize" conditional moves in shaders with mix()+step()
Yup, they most likely do. After all everything is LLVM based nowadays.
mbel··on A Minimalist TypeScript for C
It seems to work similarly as in C, i.e. you call malloc manually, there is some form of automatic size deduction though:

https://github.com/galileolajara/cp1/blob/main/examples/04-v...

mbel··on Ask HN: Resources for GPU Compilers?
For Intel you can just look into sources: https://github.com/intel/intel-graphics-compiler ;) Also AMDGPU and NVPTX targets in LLVM might be interesting.
mbel··on Unexpected responses from ChatGPT: Incident Report
Standard word which implies some level of analysis into causes of the incident. This brief note doesn’t live up to industry practice either.
mbel··on Two's complement integers with only sign bit set should be a trap representation
It's not. 0x8000 is the smallest (-32,768) integer that can be represented with 16-bits and two's complement.
mbel··on We will not ‘walk out’ of UK, nor comply with any request to bypass encryption
I see, thanks for clarification! I glanced though their website and expected a standard set of features including IMAP.
mbel··on We will not ‘walk out’ of UK, nor comply with any request to bypass encryption
It’s an email service, the app isn’t really needed.
mbel··on Make-A-Video: AI system that generates videos from text
Here's an attempt at doing that: https://dreamfusionpaper.github.io/
mbel··on Show HN: C3 – A C alternative that looks like C
Using intrinsics is much more sensible option than dropping to inline asm. Each CPU with SIMD or any kind of specialised instructions provides an intrinsics library for C.
mbel··on rq: Universal convertor between structured data (JSON, MessagePack, CBOR, etc.)
Interesting that CSV is supported but XML is missing. Is it finally dead?
mbel··on Pronouncing non-English names for English speakers
There is, it’s called „dialekt małopolski” ;)
mbel··on Ask HN: What is your “I don't care if this succeeds” project?
Cathedral 3-D (https://store.steampowered.com/app/1091590/Cathedral_3D/). It's a retro-ish FPS, basically an arena shooter where you have to survive incoming waves of enemies.

It's using my custom game engine, that was developed from scratch in C, the only dependencies are SDL2 and OpenGL. The engine and game were developed for the last 6 or so years (with breaks) in the evenings/weekends as my evergreen side project. The game was released last Halloween. I still support the game with patches after the release (both new features and fixes), one of them is expected to come out very soon. And to be honest I plan to do so in coming years. I was fun to develop and still is.

mbel··on Poland puts computer game “This War of Mine” on school reading list
The first one obviously.
mbel··on Pinscreen Deepfake Live Prototype [video]
While it's true that there are some artifacts, I think that they can be mitigated with some tricks like: avoiding sudden head movements by the actor or artificially decreasing the quality of the video. Low quality photos of big foot entertained people for years.

I generally agree though that with time we will learn to see red flags like this and treat video as probably fake.

mbel··on Pinscreen Deepfake Live Prototype [video]
With deep fakes easily available I believe the pornographic video material ultimately will have the same weight as a rumor, it's somewhat true for photos today. We definitely need a common way to propagate trusted information, but keeping videos as absolutely trustworthy is not possible anymore.
mbel··on Banning facial recognition is missing the point
> Why should people get to break the law?

Because laws are made by people and as such can be flawed.

Page 1 of 11Next →