HNHacker News
TopNewBestAskShowJobs

kreco

324 karma · joined January 26, 2018

submissionscomments
kreco··on A header-only C vector database library
What if I'm using 10 different OS?

I can still push the file on git and it works everywhere else.

kreco··on C isn't a programming language anymore (2022)
Yeah that's the kind of thing I'm talking about.

Even when you don't care about being cross-platform, you still need to rely on specific routines instead of having the most low level `ut8fopen(buffer, len, mode);`

My point is that I wish we would have a new "standard OS-related API", not even talking about introducing span type or anything, just creating something way more sane and care about moving forward from this point.

If I was about to create my own OS and decided to eliminate null-terminating string, and keep it as tiny and efficient as possible, I would face so many issues because I cannot reuse 99% of the code (related to file API) that already exists, I would need to think how to properly parse arguments from "main" without overhead etc.

kreco··on Resizing windows on macOS Tahoe – the saga continues
In all fairness I wouldn't recommend macOS to my grandparent either.
kreco··on Discord/Twitch/Snapchat age verification bypass
> HN users just don’t have friends.

So once you have friends all connected parties requires to install Discords. How does that work?

Are your parents friendless, do they use Discord?

kreco··on C isn't a programming language anymore (2022)
The mental overhead is pretty significant.

You need to do weird string operations, you have certainly a class somewhere that needs to append a zero to then end of a buffer, and exclusively use the class for thw filename. You can't just toss a contiguous number of bytes you to convert it first.

Every single piece of software that need to interact with the file system needs to deal with this.

I'm not asking about a new string type. I'm asking to be able to be free from null terminating string.

You only need to provide a length.

kreco··on C isn't a programming language anymore (2022)
I'm not sure I agree with "impossible to change".

It's 2026, to this date I cannot use standard library/api, to open a file with utf-8 filename without a null terminating string.

When you want to talk to the OS you constantly face the need to had unnecessary overhead (allocation due to string convertion, strlen).

The OS itself does not prevent anything from having those standard "no overhead" API.

However, it's pretty clear that nobody cares to define some new sane interface and nobody care to deprecate old ones.

That would include both API and ABI.

kreco··on C isn't a programming language anymore (2022)
> Even the most relevant C compilers are no longer written in C.

Worth to point out that most of the C compilers are also C++ compilers.

So the point is kind of distorted.

kreco··on So, you’ve hit an age gate. What now?
You can take a look at what Switzerland is about to do:

https://www.homburger.ch/de/insights/swiss-voters-approve-ne...!

kreco··on Zen-C: Write like a high-level language, run like C
That's a very nice project.

List of remarks:

> var ints: int[5] = {1, 2, 3, 4, 5};

> var zeros: [int; 5]; // Zero-initialized

The zero initialized array is not intuitive IMO.

> // Bitfields

If it's deterministically packed.

> Tagged unions

Same, is the memory layout deterministic (and optimized)?

> 2 | 3 => print("Two or Three")

Any reason not to use "2 || 3"?

> Traits

What if I want to remove or override the "trait Drawing for Circle" because the original implementation doesn't fit my constraints? As long as traits are not required to be in a totally different module than the struct I will likely never welcome them in a programming language.

kreco··on Fossil versus Git
Before being used by everyone else Git was not used by everyone else.

Fossil is used for one of the most deployed embeddable database. Not sure we can call it "irrelevant".

I get what your message is saying, however words have meaning, and being hyperbolic does not help anyone when we try to bring nuances.

> Mercurial was a better DVCS [...]

Totally agree.

kreco··on FracturedJson
I haven't, but it's an interesting format for sure.

I've found a more comprehensive documentation here. [1]

At first glance, I would say it's a bit more complex that it should for a "human readable" format.

[1] https://edn-format.dev/

kreco··on FracturedJson
Thanks for the details!
kreco··on Why users cannot create Issues directly
To me this just shows that the Github issue concept is significantly flowed.
kreco··on FracturedJson
Can you tell me what was the context that lead you to create this?

Unrelated JSON experience:

I worked on a serializer which save/load json files as well as binary file (using a common interface).

From my own use case I found JSON to be restrictive for no benefit (because I don't use it in a Javascript ecosystem)

So I change the json format into something way more lax (optional comma, optional colon, optional quotes, multi line string, comments).

I wish we would stop pretending JSON to be a good human-readable format outside of where it make sense and we would have a standard alternative for those non-json-centric case.

I know a lot of format already exists but none really took off so far.

kreco··on The Cost of a Closure in C
That's a very weird comment, your spreading your knowledge and not really addresse what could have been changed in the article.

If I follow your comment, you mean that he could have use a non-static global variable instead and avoid mentioning "static" keyword afterward?

kreco··on Micron Announces Exit from Crucial Consumer Business
Interesting take.

In a naive way, when rich entities are interested in a limited resource it's basically over.

Somehow I can see a parallel with the housing crisis where the price go higher and higher.

I can't see both of them ending anytime soon unless there is a major paradigm shift in our life.

kreco··on Ask HN: Who is hiring? (December 2025)
I'm not looking for a job but your various job offers are appealing!
kreco··on Games using anti-cheats and their compatibility with GNU/Linux or Wine/Proton
The idea of someone rating me, or rating someone else makes me anxious.

I'm not sure it would be better than just reporting people with undesired behavior.

kreco··on Shaders: How to draw high fidelity graphics with just x and y coordinates
> It claims WebGPU is limited to Browsers. It is, not. WebGPU is available as both a C++ (Dawn) and a Rust (WGPU) library. Both run on Windows, MacOS, Linux, iOS, and Android. It is arguably the most cross platform library. Tons of native projects using both libraries.

I feel like it's important to mention that WebGPU is a unified API on top of whatever is native to the machine (DirectX, Vulkan or Metal).

kreco··on Shaders: How to draw high fidelity graphics with just x and y coordinates
> Vulkan is also not really cross-platform any more than DirectX. [...]

Vulkan is not entirely cross-platform, but it's still way "more" cross-platform than DirectX by your own point of view.

DirectX: - Windows - Xbox

Vulkan: - Linux - Android - Windows - Nintendo Switch - Nintendo Switch 2

Metal: - MacOS - iOS

kreco··on PHP 8.5
Like on of my sibling comment, I truly believe this is connected to some degree of social pressure.

People pointing fingers to "outdated" languages for not having some of the most trendy constructs.

The pipe operator is definitely one of the feature that create more ways to do the same thing while providing unclear benefit.

Never in my life I was in a situation like "with the pipe operator this I would have saved me hours of debugging/reading/creating code".

kreco··on Steam Machine
I just need more RAM. 16GB is unfortunately not enough for me.

With some luck it would be easy to upgrade ourselves.

kreco··on How we enforce .NET coding standards to improve productivity
While msbuild is powerful, I strongly believe it should have been a standard C# language build system instead of a XML-based one.

Any non-trivial thing to do is a pain to figure out if the documentation is not extensive enough.

I really love C#, but msbuild is one of the weak links to me, almost everything else is a joy to use.

kreco··on Copyparty – Turn almost any device into a file server
Thank you!
kreco··on Copyparty – Turn almost any device into a file server
Coincidentally, I started to do media server similar to this 3 days ago. I just want to serve any folder, then be able to download a file and watch videos with a decent video player.

Now I feel like crap seeing how amazing this project is.

kreco··on I designed my own fast game streaming video codec – PyroWave
I have nothing interesting to say, but thanks for author and for the one who shared the article. It was a good read.
kreco··on Instapaper Rakuten Kobo Integration
I tried a year ago and then stopped after few days because it couldn't save properly reddit pages (new design or old design, does not matter).

From my experience it had the exact same behavior as the "Reading mode" feature from browsers. Which was not great overall.

No clue if there is something better than that though.

kreco··on Steam, Itch.io are pulling ‘porn’ games. Critics say it's a slippery slope
> Why? Why assume the status quo is perfect? Also, what part of pornography isn't embedded into the human status quo?

No one said that. But you should fool yourself saying that absence of evidence is evidence of absence.

Here is your own quote:

> I have seen zero evidence that any of these games are harmful.

kreco··on Steam, Itch.io are pulling ‘porn’ games. Critics say it's a slippery slope
This is not the correct way.

If cigarette was banned from the beginning, we would still see people getting mad without much evidence.

The truth is the evidence is coming half a century after when everyone got cancer.

Precautionary principle should always prevail.

That's why we just don't go full GMO, and you would still not wait for any proof that "it's harmless".

You also don't use a random pesticide, unless you have a full proof that's it's harmless.

Additionally, without cigarette, without GMO and without pesticide humanity would still be fine, and maybe better without (if we stick with the cigarette).

TL;DR: You actually need a proof, but it's a proof that it's harmless and not the other way around.

kreco··on The future is not self-hosted
Yeah.

The website [0] is pretty clear that the content of the game can go into a SD card, but the game save resides only in the internal memory.

You can find some ways to get them with some modding but nothing official.

[0] https://www.nintendo.com/ph/support/switch/data_management/i...

← PreviousPage 3 of 6Next →