News for hackers. Stuff that matters.

grose

Re:My AI skeptic friends are all nuts on Thursday June 05, 2025 @11:11PM (#44197522)
Yes, exactly, that is my point.
Re:My AI skeptic friends are all nuts on Monday June 02, 2025 @06:25PM (#44163838)
It's also ignoring the fact that much plagiarized code is already under permissive licenses. If Star Wars or Daft Punk were CC-BY-SA nobody would need to pirate them, and there may even be a vibrant remix culture... which is kind of the whole point of open source, is it not?
I was introduced to this documentary through the YouTube clip "Dieter Rams pointing at things he doesn't like" https://www.youtube.com/watch?v=ypyAg3Zbs_8
Re:We Are Destroying Software on Saturday February 08, 2025 @11:23PM (#42988431)
Reads like it came straight out of the UNIX-HATERS Handbook, nice. (For those unfamiliar: https://web.mit.edu/~simsong/www/ugh.pdf)
Re:Context should go away for Go 2 on Tuesday January 21, 2025 @06:09AM (#42778804)
The blog post from 2014 introducing context uses a private key type, so there's really no excuse: https://go.dev/blog/context#package-userip
RTO usually seems like an indirect way to do some layoffs to me. Surely management must be aware of the attrition it causes.
Recently I someone living in Japan on Reddit who experienced a "they won't let me quit" scenario which may provide some perspective on what it's like: https://www.reddit.com/r/japanlife/comments/1gk4enr/current_... https://www.reddit.com/r/japanlife/comments/1goyw04/end_of_a...

Personally (living in Japan) I've never experienced something like this, but it does happen.

Re:Show HN: I built a(nother) house optimized for LAN parties on Sunday November 17, 2024 @03:16AM (#42162759)
I love the catwalk that's actually for cats, the little cat doors and cat restrooms. Nice to see some cat-friendly architecture. Very cool.
Re:React on the server is not PHP on Sunday October 06, 2024 @10:58PM (#41762388)
I can only imagine how frustrating it is for the average user when they click on an "unhydrated" button that does nothing. JS frameworks embracing SSR is definitely a step in the right direction compared to the fully client-side apps of the previous hype cycle, and yet in many cases can still present worse UX than PHP sites of yore.
Re:Unicode 16 now includes retro video game sprites [pdf] on Friday September 13, 2024 @08:40PM (#41536566)
2680-2685 in the Miscellaneous Symbols block: https://www.unicode.org/charts/PDF/U2600.pdf
Re:Unicode 16 now includes retro video game sprites [pdf] on Friday September 13, 2024 @08:27PM (#41536499)
Indeed, the full one is in the Block Elements block (and the empty one is a space, I guess) https://www.unicode.org/charts/PDF/U2580.pdf
Goes on sale every year during Black Friday. 100% worth it even without the discount. Love Berkley Mono too.

Iosevka (https://typeof.net/Iosevka/) is a good free alternative that I like to use for online IDEs/REPLs and such. (Berkley Mono's contract forbids this kind of usage, which I understand, but I wish I could use it more!)

Re:Ask HN: What's Prolog Like in 2024? on Thursday July 18, 2024 @10:43AM (#40996038)
Speaking of CSS, :has() [https://developer.mozilla.org/en-US/docs/Web/CSS/:has] brings it closer to the glory of Prolog. I cannot wait to abuse it in avant-garde Logic-Driven-Development.
Re:Ask HN: What's Prolog Like in 2024? on Thursday July 18, 2024 @10:39AM (#40996001)
It's great to hear new people are interested in the language! I was enlightened a couple years ago and fell in love.

Currently I'm focusing on creating easy-to-use embeddings of Trealla Prolog using Wasm. You can find my TypeScript library here: https://github.com/guregu/trealla-js and Go library here: https://github.com/trealla-prolog/go. The goal is to make the libraries as painless as possible. Trealla is a portable and lightweight Prolog written in C that supports CLP(Z) and is broadly compatible with Scryer. It's quite fast! I'm currently using it for some expert system stuff at $work and as an internet forum embedded scripting language for $fun.

Speaking of Scryer, they recently got their WebAssembly build working and I hope to contribute a JS library for them in the future as their API stabilizes. Scryer and Trealla are both aiming for ISO compatibility, so it's my hope that we can foster an ecosystem for modern ISO Prolog and provide more embeddings in the future. It's super convenient to get logic programmer superpowers in your favorite language. Also check out Scryer's new website: https://www.scryer.pl/

For something on the silly side, check out https://php.energy. Prolog Home Page, it's web scale :-). It's proof that you can integrate Prolog with bleeding edge stuff like Spin (server-side wasm ecosystem).

My 4th and 5th grade teachers tricked us into learning algebra by calling it "enigmas" and treating it like a fun puzzle instead of a math problem. It definitely worked on me, I was quite shocked when middle school math was just those puzzles under a different name. Made those classes quite easy though.
Re:HTML Tags Memory Test on Monday July 15, 2024 @12:40PM (#40969385)
<samp>, <var>, <kbd> are definitely weird ones. Maybe <kbd> would be more useful with some better default styling. I think <output> has some accessibility wins but I've never seen someone use it. <dfn> is a good pick, <abbr> is also up there with questionable semantic tags. <del> and <ins> are basically tailor-made for rendering diffs. <ruby> is really useful for Japanese, doing that styling manually would be a huge pain, but niche for sure. I'm happily surprised <small> survived. I still miss <center>.
Re:HTML Tags Memory Test on Monday July 15, 2024 @12:23PM (#40969228)
I wonder what the most "obscure" tag is. My vote goes to <base>.
Re:"Technical" Skills on Friday July 05, 2024 @02:12AM (#40880180)
Agreed that sewing is "technical". Imagine you're an artisan seamster and your clueless boss (zero sewing experience) says stuff like "go faster, it's just putting the needle in the hole isn't it?" or "can't you just tape this part together to meet the sprint deadline and do the sewing stuff later?".
Re:CSS Written in Pure Go on Saturday June 01, 2024 @10:31PM (#40550876)
I use the standard library html/template package for generating CSS dynamically, it's got pretty good CSS support. I've found it useful for things like custom themes and UI preferences.
Webpage looks great. Love the simple design with code examples front and center. I don't think it's fair to call the pricing transparent but hide it behind a sales gate. API looks nice, maybe a public page with API documentation would help. npm package is lightweight which is refreshing to see. Backend seems to be Cloudflare R2.
Re:Japan's clothes-drying bathrooms on Saturday May 25, 2024 @01:02PM (#40476291)
It's not as intense as regular dryer lint. Seems to be like small bits of thread that fall off during the drying process (perhaps coming off during tumble wash and sticking to it while wet?). There's a pretty strong gust of air coming from the dryer. My unit came with panels fitted for the bathtub and instructions to use when drying, it's a bath/shower combo thing.
Re:Japan's clothes-drying bathrooms on Saturday May 25, 2024 @12:51PM (#40476215)
Very common, although some especially fancy buildings have rules against it. Probably a similar rate as Europe.
Re:Japan's clothes-drying bathrooms on Saturday May 25, 2024 @11:26AM (#40475592)
Haha, I know exactly how you feel. I too often wondered about the optimal timing for clothes reinsertion... at least the dryer unit is pretty good at drying out the shower which seems to help with mold, so even if you're not using it for clothes it still serves a purpose.
Re:Japan's clothes-drying bathrooms on Saturday May 25, 2024 @11:15AM (#40475520)
To add on to this: I think they are mostly intended as an "emergency backup" for people who usually hang dry their clothes outside to use when it's raining, etc. If you're not using it as your primary drying method maybe it's not so bad? Having more than one shower probably helps too. Unfortunately I am not blessed with such a large space, and my balcony is pitifully small :)
Re:Japan's clothes-drying bathrooms on Saturday May 25, 2024 @11:00AM (#40475439)
I have one of these in my home (in Tokyo). Honestly... they kind of suck. The lint from your clothes clogs your drains and vents even faster than normal (you're supposed to use a plastic slab cover thing over your bath, which requires a lot of maintenance or it gets gross very quickly). It renders your shower unusable for hours at time, so if you live with other people it makes coordination of laundry/showers much more complex. Would not recommend. I got a regular washer/dryer combo unit recently and it markedly improved the quality of my life.
Aha, so it is part of the spec. Thanks for clarifying that. Appreciate the advice on discoverable credentials as well! I was probably leaving out the discoverable creds from the allowlist. Getting the timing down for when to ask for credentials was a bit tricky but I think I see the whole picture now.

I will say though, when it all works out it's a really nice way to log in, and my users are happy about it.

That's a good idea, thanks for the suggestion! Maybe I'll let them rename the keys with the provider as the default name. Haven't played with GitHub's implementation yet but I'll play around with it.

Older ยป