Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
s_gourichon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
s_gourichon
8mo ago
Time to watch again this montage from the 1974 movie "Dark Star" by John Carpenter, parody of 2001 a space Odyssey. Topic: "talking to the bomb" https://www.youtube.com/watch?v=h73PsFKtIck (warning this
2.
▲
by
s_gourichon
1y ago
Not sure it really has huge benefits, but I guess something like this should work: ``` #!/bin/sh N=20 msg_len=$(git log -1 --pretty=%B | wc -c) if [ "$msg_len" -lt "$N" ]; then exit 125 fi # Here you would
3.
▲
by
s_gourichon
1y ago
Be wary about using an AI that rejects a simple PR (change "return str;" into "return ptr;") based on false statements ("Your PR contains a critical error — the complete removal of return statements from the u_utoa
4.
▲
by
s_gourichon
1y ago
Maybe the rabbit hole is much deeper than it seems. Is it really possible to reconcile "no bloat" with "fully standard compliant"? Maybe have a look at https://github.com/eyalroz/printf , if only for
5.
▲
by
s_gourichon
1y ago
Created https://github.com/Ferki-git-creator/Uprintf/issues/1 https://github.com/Ferki-git-creator/Uprintf/issues/2 https://github.com/Ferki-git-creator/Up
6.
▲
by
s_gourichon
1y ago
Also floats seem to "forget" the integer part, and also have two minus signs when negative.
7.
▲
by
s_gourichon
1y ago
Nice. Comprehensive unit tests are indeed welcome. Even a simple test code that tests all features, flags combinations, etc, and outputs a log. It will make easy for anyone to run it and compare the logs. I had a bug: u_printf( my_ou
8.
▲
Pale Blue (Supernova) Dot
(esa.int)
1 points
by
s_gourichon
2y ago
|
0 comments
9.
▲
by
s_gourichon
3y ago
> visual programming 25 years ago when I read that Microsoft has a software development environment named "Visual Studio" I imagined, well, something with graphs and nodes and flow and... Well something visual, right? Now it&#x
10.
▲
by
s_gourichon
3y ago
> the 2-color limit per 8x8 block. It's already a big issue with just lights and shadows as it is :-/ Well, you impressed me (and others) with your simple bet that "hey, what if I simply choose the two most popular colors&
11.
▲
by
s_gourichon
3y ago
Excellent! A similar program, apparently from 3 years ago, did similar things, in Basic also, on the Amstrad CPC, a machine with the same processor, a little more RAM and more (27) colors or shades of green, depending on the screen it was h
12.
▲
by
s_gourichon
3y ago
You mean, like this? https://www.youtube.com/watch?v=SJ79CdUMfVA Also, not exactly the same type or rendering, but basically word for word what you wrote: the full-screen fully animated parts appear to be "a set of fra
13.
▲
by
s_gourichon
3y ago
In my opinion, you're spot on: being deprived of hearing the lowest frequencies typically occurs only when there's a pressure imbalance between the inner and outer ear. Therefore, when you experience silence at these lowest freque
14.
▲
by
s_gourichon
3y ago
IMHO this is the effect expected by the people who named the function, and the reason why the name is very well chosen. Yes, it's funny but that's not the point. The important thing is that the name clearly conveys the message tha
15.
▲
by
s_gourichon
3y ago
* Context: const and compile-time constants Constructs fully determined at compile time have some benefits. But const in C is weaker than constexpr that C++ has. As prog-fh summarizes on https://stackoverflow.com/questions&
16.
▲
by
s_gourichon
3y ago
> Welcome to Counterexamples in Type Systems, a compendium of horrible programs that crash, segfault or otherwise explode. Many interesting quirks in type systems, surprising interference between separately innocuous type system features
17.
▲
by
s_gourichon
3y ago
With a nod to https://en.wikipedia.org/wiki/Ward_Cunningham#Cunningham's_L... > it is possible to shadow the BASIC ROM on the Amstrad CPC 464 (1984). The ROM and RAM run at the same speed on that machine, so sp
18.
▲
by
s_gourichon
5y ago
This page is about memory-mapped hardware registers, not CPU registers. It explains pitfalls in accessing these through low level C definitions, proposes a C++ encapsulation class and summarizes pros and cons.
19.
▲
by
s_gourichon
5y ago
These points are only weakly in favor of such a web app. Don't like CLI? Use gimp or similar. Don't want to install anything? On some OS it might make sense. On that OS consider Paint. It probably does not support webp, but if you
20.
▲
by
s_gourichon
5y ago
Similar project? https://www.flying-whales.com/ (Not saying if any of those is viable, just mentioning in case it makes the conversation more interesting.)
21.
▲
by
s_gourichon
5y ago
? It doesn’t even allow non-integer numbers.
22.
▲
by
s_gourichon
5y ago
That fixes the problem of a buffer content after allocation by the language/runtime/platform. When a buffer is reused at the library/application level, no zeroing is done.
23.
▲
by
s_gourichon
5y ago
> This page will only work with JavaScript enabled I guess the average HN user has Javascript enabled by default, yet I expected a longer and more informative page than that. ;-)
24.
▲
by
s_gourichon
5y ago
And even if the region-humidity thing was true, the printer could just print a warning. That would not justify a plain refusal to print, would it?
25.
▲
by
s_gourichon
5y ago
It can do similar things: https://hackaday.com/2020/04/15/logging-into-linux-with-a-19...
26.
▲
by
s_gourichon
5y ago
From the photos and videos, the guy is indeed a 2CV hacker. I think the contraption is real. Source: my father owned several cars of the 2CV family and we rode in them for years. Did he actually build it in the desert? Without tools it seem
27.
▲
by
s_gourichon
5y ago
Generally not the point. Depending on your video player you might only get aliasing artifacts (and virtually always higher resource consumption). The point of selecting a higher definition video stream can be to circumvent bandwidth limitat
28.
▲
by
s_gourichon
5y ago
Interesting article. > Warning: this page has about 72MB of Gifs! Medium also has a tendency to not load them properly, so if there’s a large gap or overly blurry image, try reloading the page. Ad blockers may cause problems, no script m
29.
▲
by
s_gourichon
5y ago
SimpleWall is open-source but Windows-only > Platform architecture: 32-bit/64-bit/arm64 > Supported OS: 7 SP1, 8, 8.1, 10, 11 while Portmaster https://safing.io/portmaster/ is open-source, offers precom
30.
▲
by
s_gourichon
5y ago
Tom Scott imagined something similar 8 years ago, see https://youtu.be/IFe9wiDfb0E
More ›