HNHacker News
TopNewBestAskShowJobs

ggregoire

4,955 karma · joined October 31, 2012

submissionscomments
ggregoire··on Denmark to raise retirement age to 70
From what I understand if you retire early you must fund your retirement until the end. So you either work until the requested age and get something, or you don't and don't get anything. You can't just stop at 60, fund your retirement from 60 to 70, and then expect the gov to pay for your retirement from 70 to the end. Maybe I'm wrong tho.
ggregoire··on Grok answers unrelated queries with long paragraphs about "white genocide"
> I keep a list of recent falsely flagged HN stories in my favorites.

Someone should make an alternative HN frontpage listing only the flagged discussions, ordered by upvotes/comments.

ggregoire··on XAI's Grok suddenly can't stop bringing up "white genocide" in South Africa
The other discussion is flagged too.

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

ggregoire··on Ask HN: Do you still use search engines?
Yes I use google. I haven't tried chatGPT yet.
ggregoire··on Qwen2.5-VL-32B: Smarter and Lighter
We were using Llama vision 3.2 a few months back and were very frustrated with it (both in term of speed and results quality). Some day we were looking for alternatives on Hugging Face and eventually stumbled upon Qwen. The difference in accuracy and speed absolutely blew our mind. We ask it to find something in an image and we get a response in like half a second with a 4090 and it's most of the time correct. What's even more mind blowing is that when we ask it to extract any entity name from the image, and the entity name is truncated, it gives us the complete name without even having to ask for it (e.g. "Coca-C" is barely visible in the background, it will return "Coca-Cola" on its own). And it does it with entities not as well known as Coca-Cola, and with entities only known in some very specific regions too. Haven't looked back to Llama or any other vision models since we tried Qwen.
ggregoire··on A 10x Faster TypeScript
I prefer having all my apps in the browser.
ggregoire··on PgAssistant: OSS tool to help devs understand and optimize PG performance
> OpenAI helper: If you have an OpenAI account, the interface can query OpenAI to help you understand your query plan and optimize your SQL queries

How good are LLMs at optimizing queries? Do they just give basic advices like "try adding an index there" or can they do more?

I guess it would need to cross the results of the explain analyze with at least the DDLs of the table (including partitions, indexes, triggers, etc), and like the sizes of the tables and the rate of reads/writes of the tables in some cases, to be able to "understand" and "reason" about what's going on and offer meaningful advices (e.g. proposing design changes for the tables).

I don't see how a generic LLM would be able to do that, but maybe another type of model trained for this task and with access to all the information it needs?

ggregoire··on Leaking the email of any YouTube user for $10,000
Bottom of the article:

> Timeline

> 05/11/24 - Panel awards $3,133.

> 12/12/24 - Panel awards an additional $7,500.

ggregoire··on Beej's Guide to Git
I can make a 5 line HN comment explaining how to use git:

1. git clone

2. git checkout

3. git pull

4. git add + commit + push

5. git reset / rebase

ggregoire··on How I use LLMs as a staff engineer
Don't people actually enjoy writing code and solving problems on their own?

I would be so bored if my job consisted of writing prompts all day long.

ggregoire··on Apple Invites
they don't use Whatsapp in the US
ggregoire··on MySQL at Uber
Another interesting one about their Storage Platform (which includes MySQL): https://www.uber.com/blog/odin-stateful-platform

> The [Odin] platform supports 23 technologies, ranging from traditional online databases such as MySQL® and Cassandra® to advanced data platform technologies, including HDFS™, Presto™, and Kafka®.

ggregoire··on JavaScript Temporal is coming
Anyone knows how the data about each timezone stays updated within Temporal? Does the TC39 update the data somewhere, then each browser copies that data internally and releases a new version of the browser? If a user visits my website and this user has not updated their browser with the new data, will they see incorrect hours?

For example Mexico removed DST in 2022 [1]. When using third party libraries like pytz or moment-timezone, you just update the library on your side with the updated data for Mexico. Or bump the language if it's handled in the standard library. What about Temporal and my visitors' browser?

[1] https://en.wikipedia.org/wiki/Time_in_Mexico

ggregoire··on 1,156 Questions Censored by DeepSeek
I've been trying this week to summarize transcripts from Fox News with llama3.1 and half the time it tells me it can't because this is too sensitive…
ggregoire··on Svelte 5 and the Future of Frameworks: A Chat with Rich Harris
I've yet to find a problem with React that would justify learning one of those new frameworks. I know it's popular to say React is bad on the internet, but have been using it for 10 years now and it's still going strong in my opinion.

(For some background, I used to code SPAs from scratch with vanilla JS and jQuery in the 2000s, then switched to backbone.js then Angular, before picking up React that solved all the design issues of Angular)

ggregoire··on Ask HN: Moving a not-for-profit web app off AWS
First line in the article: "Providing up to $5,000 in AWS Promotional Credit to nonprofits around the world"
ggregoire··on Modern JavaScript for Django developers
Doesn't seem impossible to make it work with Django, but I doubt you can reuse Django Auth.

PostgREST uses the roles and privileges of PostgreSQL to verify if a request is allowed. So, while you can indeed add a PostgREST on top of the schemas generated by Django ORM, you would still have to manually create those roles, grant them some privileges and them assign those roles to your existing users (I'm not familiar with Django but, I guess, that would mean adding a field "role" to the Django model, applying the migration and then manually filling the column "role" in DB with the role you wanna give to each user). And then you would need a login endpoint that returns a JWT token containing the role assigned to this user, and then use this JWT token for all your requests. That's how auth and permissions work in PostgREST and it's one of the big benefits of using it IMO.

Also, I personally like to make views and expose those views to the PostgREST API, instead of exposing directly the tables. But exposing the tables generated by Django ORM would work too.

ggregoire··on Ropey – A UTF8 text rope for manipulating and editing large text
Didn't know about this data structure. What are some use cases other than text editors? The article on wikipedia [1] doesn't expand much on this.

[1] https://en.wikipedia.org/wiki/Rope_(data_structure)

ggregoire··on Modern JavaScript for Django developers
I used to make my APIs with Starlette/FastAPI, didn't know it was the same author!

Nowadays I just use PostgREST for all my new APIs. It's a phenomenal piece of software, save me so much time.

ggregoire··on Modern JavaScript for Django developers
I've seen some companies using React with Django REST Framework [1], to keep the benefits of Django while having a strong separation between front and back (separate projects, teams, deploys, etc).

[1] https://www.django-rest-framework.org

ggregoire··on Nvidia announces next-gen RTX 5090 and RTX 5080 GPUs
I read your question and thought to myself "why is it so hard to buy a Steamdeck"? Available only in like 10 countries. Seems like the opposite problem, Valve doesn't use resellers but they can't handle international manufacturing/shipping themselves? At least I can get a Nvidia GPU anytime I want from Amazon, BestBuy or whatever.
ggregoire··on Nvidia announces next-gen RTX 5090 and RTX 5080 GPUs
I watched the same video you talking about [1], where he's trying the PG27UCDM (new 27" 4K 240Hz OLED "gaming monitor" [2]) and his first impressions are "it's so clean and sharp", then he starts Doom Eternal and after a few seconds he says "It's insane [...] It looks perfect".

[1] https://www.youtube.com/watch?v=iQ404RCyqhk

[2] https://rog.asus.com/monitors/27-to-31-5-inches/rog-swift-ol...

ggregoire··on The Future of Htmx
> But it would seem that a hacker news front page would be a great opportunity to let more people know about your product.

It's on the front page every other week…

https://hn.algolia.com/?query=htmx

ggregoire··on iTerm2 critical security release
I was gonna ask if Terminal never had any security issues, then tried to find a page with its release notes, and unfortunately couldn't find anything.

I also tried different macOS release notes [1][2][3][4], doing ctrl F "terminal" and could't find anything either.

Does anyone know where this is published? Is it not publicly available?

[1] https://developer.apple.com/documentation/macos-release-note...

[2] https://support.apple.com/en-us/120283

[3] https://support.apple.com/en-in/109035

[4] https://support.apple.com/en-us/106337

ggregoire··on You don't need Next.js – Why we migrated from Next to React
Most users don't need anything else than React with React-Router, a tool like Vite or similar for hot reload in dev and make the build, and a static hosting solution like S3 and CloudFront to host the app for peanuts.
ggregoire··on You don't need Next.js – Why we migrated from Next to React
> i hate about react.js is that if you have like a big app, the routes definitions will be a nightmare

I'm curious how you define your routes cause I've got several big apps with lot of routes, nested routes and complex access permissions for each route and it never entered in my mind that there was anything complicated about it.

ggregoire··on Intel announces Arc B-series "Battlemage" discrete graphics with Linux support
> 12GB max is a non-starter for ML work now.

Can you even do ML work with a GPU not compatible with CUDA? (genuine question)

A quick search showed me the equivalence to CUDA in the Intel world is oneAPI, but in practice, are the major Python libraries used for ML compatible with oneAPI? (Was also gonna ask if oneAPI can run inside Docker but apparently it does [1])

[1] https://hub.docker.com/r/intel/oneapi

ggregoire··on Dependency management fatigue, or why I ditched React for Go+HTMX+Templ
Tanner never worked on react-router: https://github.com/remix-run/react-router/commits/main/?auth...
ggregoire··on Dependency management fatigue, or why I ditched React for Go+HTMX+Templ
The developer making react-query (one of the libraries mentioned in the article).

https://tanstack.com/query/latest/docs

ggregoire··on Dependency management fatigue, or why I forever ditched React for Go+Htmx+Templ
I've been using react-router for almost a decade without any issue. I deploy the apps as static websites on S3.
← PreviousPage 3 of 33Next →