News for hackers. Stuff that matters.

toonewbie

Re:Ask HN: What Are You Working On? (December 2025) on Sunday December 14, 2025 @05:53PM (#46267986)
For a long time I've been looking to solve the repetitive schema pattern issues in SQL. This week I created a DSL that allows parametric polymorphism for SQL, and I wrote a compiler for it.

Source code and playground here: https://github.com/BarishNamazov/gsql/

Background blog here: https://barish.me/blog/parametric-polymorphism-for-sql/

Feedback is super appreciated!

Re:You Can't Fool the Optimizer on Wednesday December 03, 2025 @07:35AM (#46133793)
Sometimes you can fool the compiler :-)

See "Example 2: Tricking the compiler" in my blog post about O3 sometimes being slower than O2: https://barish.me/blog/cpp-o3-slower/

Re:Ecosia: The greenest AI is here on Tuesday December 02, 2025 @06:50PM (#46128541)
> As a not-for-profit company, we can afford to do things differently. AI Search uses smaller, more efficient models, and we avoid energy-heavy features like video generation altogether.

I'm a bit confused -- do other search engines provide video generation? Mentioning that sounds too out of place to me. Am I missing something?

Not sure about other folks, but I'd never trust a privacy-friendly tag on an indie software that's not open-source. Even for popular and trusted software (e.g., Obsidian) it gives me chills.
Re:Microservices? No, modularity is what matters on Monday November 10, 2025 @11:43AM (#45877751)
I recommend checking out concept design [0] from Daniel Jackson [1]. It provides a framework to enforce modularity while building meaningfully designed software.

I have done a bit of work implementing a prototype framework for coding concepts using TypeScript [2], and it has worked beautifully for the Software Design class at MIT Daniel teaches. I think the newest iteration of class this semester uses a different approach to code concepts, but it's still a research space.

[0] https://essenceofsoftware.com/tutorials/

[1] https://people.csail.mit.edu/dnj/

[2] https://61040-fa24.github.io/pages/concept-implementations.h...

Re:How a devboard works (and how to make your own) on Saturday November 08, 2025 @02:40AM (#45854906)
Not sure if it was due to higher load from HN or my IP location, but your website is inaccessible to me right now: "This deployment is temporarily paused."
Re:When O3 is 2x slower than O2 on Sunday November 02, 2025 @01:38PM (#45792376)
Nice read. Last week I wrote a blog post about two noteworthy cases of O3 being slower than O2 in C++: https://barish.me/blog/cpp-o3-slower/
I like the idea, but I have difficulty putting a lot of trust in projects with AI generated descriptions.
Re: on Sunday October 19, 2025 @09:17AM (#45633909)
Or keep playing "Where's Waldo Now?" with your computing.
Re:Wellness Ping on Wednesday October 15, 2025 @09:59AM (#45592687)
A simple dead man's switch service. Get pinged regularly to confirm you're okay. If you don't respond, your emergency contacts get alerted.

https://wellness-p.ing/

Re:Mathematical Patterns in Phone Numbers on Friday September 26, 2025 @02:59PM (#45389845)
I discovered that while telecoms charge premium prices for repetitive numbers like 777-7777, mathematically beautiful numbers (Fibonacci sequences, perfect squares, prime chains) are available at baseline prices, so I got myself a genuinely premium mathematical phone number :-)
I would guess that they found different ways to stay and work. I know that some companies send people to their office abroad (e.g., Canada or Europe) until there's a workaround by doing the green card process or applying H1B until it works out.

I did not end up using it, but I have personally "lost" the H1B lottery 3 times. I was also subject to the option above at some point.

> "For the first time I felt what it's really like to play Prince of Persia when you're not the author and don't already know by rote what's lurking around every corner."

This perfectly captures why code reviews by someone who didn't write the original are so valuable. You can't unsee your own assumptions.

I remember seeing the following short but extremely interesting documentary about makings of the game as well: https://youtu.be/sw0VfmXKq54?feature=shared - Essential viewing for anyone interested in game development history.

The most counterintuitive finding: cutting H-1B quotas didn't help American workers, but it did make the remaining H-1B pool less innovative. Employment losses were heaviest at both the lowest AND highest wage levels, filtering out the most exceptional talent while concentrating visas among mid-skill workers and Indian-born computer workers due to network effects.

Classic unintended consequence -- the policy achieved neither goal. Opponents didn't get more jobs for Americans, supporters lost the highest-impact innovators who drive patents and startups.

Re:ICPC 2025 World Finals Results on Thursday September 04, 2025 @04:57PM (#45132104)
I was onsite today watching the contest live, and great atmosphere all around. One surprising outcome: the team in 17th place solved the same number of problems as the team that won gold in 4th place. Hopefully that isn't too demotivating to any team and we can see better separation in the future. After all, it can only mean that the problemsetters underestimated the contestants ;)

Congratulations to all the teams!

The custom useFetch wrapper in Nuxt docs [1] will not allow autocomplete and type infers for APIs written with Nitro. I worked around it using type gymnastics.

[1] https://nuxt.com/docs/examples/advanced/use-custom-fetch-com...

Re:Majority of web apps could just run on a single server on Sunday March 24, 2024 @05:01PM (#39810497)
It was my reaction at first too. Luckily, I am not running anything super important or something requiring much privacy there (it's mostly computational services that don't store data). Since I am a student with no residence (and bad university network uptime), I can't self-host, but will do as soon as I move-in to my own place.
Re:Majority of web apps could just run on a single server on Sunday March 24, 2024 @04:29PM (#39810194)
I have been running multiple web apps with decent traffic (each ~10K requests per day) at no cost at all. Oracle Free Tier [1] for backends with Cloudflare tunneling [2] and pages [3] for frontend integration. Works fully seamless.

[1] https://www.oracle.com/cloud/free/ (4 cores, 24 GB ram for free; switch to PAYG to avoid idleness shut down, but you still pay nothing)

[2] https://www.cloudflare.com/products/tunnel/ (protects from attack and automatically connects your backend IP into your domain, e.g. https://domain.com/api will redirect to your backend)

[3] https://pages.cloudflare.com/ (easy static page hosting, very fast deploys)

GPT-4 supports images as input.