Better HN
topnewbestaskshowjobs
Log inSign up

omoikane

4,179 karma · joined Sep 18, 2012 (14y ago) · 1,477 submissions

https://uguu.org/

https://bsky.app/profile/omoikane.bsky.social

https://mastodon.social/@omoikane

https://uguu-org.itch.io/

Submissions

comment 20h ago · link · parent

They have a few examples linked from the page above, and it's basically permissions and file stats, e.g. "IFMT = 00170000", "#define S_IRUSR 0000400", that kind of thing.

comment 22h ago · link · parent

> P0085R5 “Oo… adding a coherent character sequence to begin octal-literals”

Deprecating 0-prefix octal literals is probably setting up many popular repositories for cleanup churn.

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p00...

Seems like if a piece of code wants to compile free of diagnostics before and after C++29, it will need to avoid octal literals altogether, or maybe select the octal literal based on `__cplusplus` version, both seem ugly.

comment 2d ago · link · parent

> https://www.jeffgeerling.com/blog/2026/i-joined-the-ntp-pool...

I wonder why the wall clock on top is 10 seconds ahead of the bottom one?

comment 5d ago · link · parent

Are all these holes drilled in the same orientation (e.g. top down, as opposed to off to the side)?

comment 1w ago · link · parent

I remember a template for technical design documents that had a placeholder to insert a header image. Any image, could be totally unrelated to the document content. The template explains that it's a sort of mnemonic to identify the document, since everyone is expected to use the same template, and all walls of text roughly look similar to each other from a distance.

So with some header image, reader might be able to recall "it's that Clice post with Yami on top" or "it's that other Clice post with Kessoku Band".

comment 1w ago · link · parent

Maybe they are referring to Effective Modern C++ book by Scott Meyers.

I think "modern" is used to contrast newer C++ standards from C++98.

comment 1w ago · link · parent

The code appears to be here (about ~903 lines):

https://github.com/aosabook/500lines/tree/master/modeller/co...

comment 1w ago · link · parent

I try to have my fingers more perpendicular to the strings when I play, which would move my wrist further away from the bridge. This device would require angling my hand in the other direction, I am not sure that would be a better posture.

comment 1w ago · link · parent

FreeGLUT is clearly an improvement over the original GLUT in that in addition to teapot, they also have teacup and teaspoon:

https://freeglut.sourceforge.net/docs/api.php#1511-glutwiret...

comment 1w ago · link · parent

There is a gem in the footnote right below gggijgziifiiffif, where it says it's possible to make a perl error quine by writing this line to the right location:

    Illegal division by zero at /tmp/quine.pl line 1.
I just tried this perl 5.42.0, and any file name starting with a '/' will work.

See also:

https://news.ycombinator.com/item?id=40202182

https://news.ycombinator.com/item?id=19576872

https://codegolf.stackexchange.com/a/48394

comment 1w ago · link · parent

I first saw Utah Teapot in OpenGL:

https://www.opengl.org/resources/libraries/glut/spec3/node89...

Surprised to see the teapot got another update this year.

comment 1w ago · link · parent

Previously:

https://news.ycombinator.com/item?id=48375445 - Branchless Quicksort faster than std:sort and pdqsort with C and C++ API (2026-06-02, 82 comments)

comment 2w ago · link · parent

> even if it doesn't work in modern ruby

Seems to work just fine with ruby 4.0.7

> Please read the source code :-)

- %q quotes a string literal, so if you extract all the characters between the two '~' and put that in another ruby file, you can get syntax highlighting for most of the code.

- Lines 1..10 contains encoded data (quoted inside %!!).

- Lines 10..13 cleans up the data before passing it to zlib to decompress.

- Lines 14..17 decodes the data.

- Rest of the lines draws the globe.

comment 2w ago · link · parent

A recent IOCCC entry solves a related game of making integers out of variable number of constants (e.g. make expression using only "2" and basic operations, but any number of "2" can be used as opposed to always four):

https://www.ioccc.org/2025/kurdyukov/index.html

comment 2w ago · link · parent

See also Ken Shirriff's blog, which has die photos plus detailed explanation of how things work.

https://www.righto.com/

https://news.ycombinator.com/from?site=righto.com

comment 3w ago · link · parent

> Masthead set in Manufacturing Consent

I like the description for Manufacturing Consent font:

https://fonts.google.com/specimen/Manufacturing+Consent/abou...

https://github.com/google/fonts/blob/main/ofl/manufacturingc...

comment 3w ago · link · parent

That looks like the brainfuck mandelbrot set by Erik Bosman, but the example is missing the header line with the credit. The one I saw came from here:

https://github.com/thaliaarchi/bfcorpus/blob/main/ebosman/ma...

Be sure to check out other files in that directory for how the program is assembled.

(Erik Bosman's mandelbrot set is a personal favorite of mine, very useful for benchmarking brainfuck interpreters)

comment 3w ago · link · parent

See also:

https://news.ycombinator.com/item?id=47625366 - United States Code (federal laws) in Git (2026-04-03, 15 comments)

https://news.ycombinator.com/item?id=47621591 - Every Law a Commit – US Law in GitHub (2026-04-02, 32 comments)

I think it's parsing this data:

https://uscode.house.gov/download.html

Which was discussed here:

https://news.ycombinator.com/item?id=6135504 - The entire US Code is now online in XML (2013-07-31, 237 comments)

comment 4w ago · link · parent

Current UI text looks blurry in Chrome and Firefox, probably because it's using a font that's optimized for 11px but font-size is scaled to 13.75px.

comment 1mo ago · link · parent

The first example should have changed the heading to "C++ code" as opposed to "C code" due to the use of `std::unreachable()`. This matches the godbolt link.

Another alternative is to use `__builtin_unreachable()` (not standard, but available in GCC and Clang).

comment 1mo ago · link · parent

It sounds like the same algorithm described here:

https://www.roguebasin.com/index.php/Cellular_Automata_Metho...

comment 1mo ago · link · parent

Lesson here is that the subdomain names can be queried due to passive DNS records, and putting stuff that is not supposed to be guessable in subdomain names is a bad idea.

comment 1mo ago · link · parent

Interesting how 9.99 GBP (about 13.36 USD) will allow for "more than 2 links" in 2025, but 14.99 USD now will still only allow for 2 links. Users will need to pay for "advanced plan" at 49.99 USD per month just for 8 links.

https://www.facebook.com/help/1929252614431792/

comment 1mo ago · link · parent

Maybe the pull from a string/leash would affect how the thing flies, kind of like kites.

I like how he built a test stand near 7:22, which solves the motor flying off problem and is probably easier to iterate on. It reminds me of how rockets are tested.

comment 1mo ago · link · parent

I like how for この先生きのこるには, it has この先生(せんせい) as opposed この先(さき)生(い)きのこる. Maybe it's learning from memes.

https://dic.pixiv.net/a/%E3%81%93%E3%81%AE%E5%85%88%E7%94%9F...

12345
50