HNHacker News
TopNewBestAskShowJobs

diroussel

1,008 karma · joined May 26, 2009

hi!
submissionscomments
diroussel··on C stdlib isn't threadsafe and even safe Rust didn't save us
Indeed, environment variables should be used to configure child processes, not to configure the current process, for non-shell programs, IMHO.

Note that Java, and the JVM, doesn't allow changing environment variables. It was the right choice, even if painful at times.

diroussel··on Octopus overtakes British Gas as Britain's largest household energy supplier
So the story goes (I'm probably just regurgitating some marketing)...

The founder has a software background, and built out a software service to track energy usage and deliver data-driven pricing plans. But when he tried to sell it to the energy companies, it didn't find much demand for the software. So they setup their own energy supplier to prove how good it was. They now sell their software in mulitple countries.

As a customer, not only can I get an API key and retrive usage data. But I can also use an API to see what other pricing plans are available. And in the mobile app I get to the minute usage reporting.

diroussel··on How bloom filters made SQLite 10x faster
Is there any advantage to this approach over Postgres native uuid support which should store the same number of bits?
diroussel··on Should you ditch Spark for DuckDB or Polars?
Thanks, I'll give that a listen. Here is the Apple Podcast link to the same episode: https://podcasts.apple.com/gb/podcast/the-joe-reis-show/id16...

I've also experimented with duckdb whilst on a databricks project, and did also think "we could do this whole thing with duckdb and a large EC2 instance spun up for an few hours a week".

But of course duckdb was new then, and you can't re-architect on a hunch. Thanks for the aricle.

diroussel··on Vercel/fun: ƒun – Local serverless function λ development runtime
I could have done with this a while back. Seems much nicer than serverless framework.
diroussel··on Next-level frosted glass with backdrop-filter
How did you come to that conclusion? I inspected the bold cursive text, and Firefox dev tools tell me it's "Sriracha".

https://fonts.google.com/specimen/Sriracha?query=Sriracha

diroussel··on What sank the Bayesian superyacht in Italy?
The issue with maritime insurance, is that ocean going vessels spend a great deal of time in other countries from where the owner registers the ship, and also time in international waters, which are not governed by the laws of any country.

So you average insurance company is not interested in providing insurance.

If you want to read more about the history of martime insurance, you could start with the history of Lloyds of London.

https://en.wikipedia.org/wiki/Lloyd%27s_of_London

diroussel··on WebSockets cost us $1M on our AWS bill
Sometimes it is more important to work on proving you have a viable product and market to sell it in before you optimise.

On the outside we can’t be sure. But it’s possible that they took the right decision to go with a naïve implementation first. Then profile, measure and improve later.

But yes the hole idea of running a headless web browser to get run JavaScript to get access to a video stream is a bit crazy. But I guess that’s just the world we are in.

diroussel··on What sank the Bayesian superyacht in Italy?
Insurance is by contract and either side can take claims to court if the contract is not upheld. I wouldn’t call that a gentleman’s agreement.

The maritime system is complex. But it wasn’t just made up by a few people. It’s evolved continuously, internationally, for generations.

diroussel··on MVCC – the part of PostgreSQL we hate the most (2023)
It would be quite nice to have some of the S3 semantics on local files. Like no one else can the see the file until after you’ve finished writing the file and committed it. And being able to put almost any chara in the file name (key). That is quite nice in S3
diroussel··on 1913: When Hitler, Trotsky, Tito, Freud and Stalin all lived in the same place
I suspect the China issue was a carve out in the comment you replied too. Since they were referring to the west.

As for Rome, it was never a Nation in the modern sense. It started as a city state and became an empire.

My understanding is that nation states (where the rule and the border were defined nationality of the population) were born as a reaction against empire. Starting with the French Revolution, where the desire for the French to be ruled by French in France was new concept.

diroussel··on Nasir Ahmed's digital-compression breakthrough helped make JPEGs/MPEGs possible
Most engineering (certainly that I know) is based on linear algebra. But of course there is a lot to learn in that field, but covering the basics can help understand a lot of engineering maths.

Equations, differentiation, integration, partial equations, complex numbers, matrices, eigen vectors, correlation, Fourier transform, laplace transform. And probably others.

diroussel··on Zed AI
Cursor is electron/vscode based. Zed uses a custom built rust UI and editor model that gives 120fps rendering. (Or was it 60fps)

It is really smooth on a Mac with ProMotion.

diroussel··on Can ketones enhance cognitive function and protect brain networks?
Interestingly I was just watching talk from Nick Lane, presented at the Royal Institution about mitochondria and respiration. What is amazing to me is that respiration isn’t just burning glucose to make ATP, it also makes many other essential building blocks needed for health cells.

https://youtu.be/vBiIDwBOqQA

diroussel··on What We're Working on in Firefox
I would prefer it if Mozilla continued is great rust rewrite, and innovate the core technologies. Just adopting Chrome's crumbs will mean giving up control and voice in stearing the web technologies.
diroussel··on What We're Working on in Firefox
I have the same problem in Safari with Wipr, and iCloud Private relay. But I still have it as my default browser.

Firefox with uBlock origin works much better, and I use for most reading, research, coding related things.

Arc for hacker news.

Then I only use Chrome when the above don't work. Which is very rare.

diroussel··on What We're Working on in Firefox
Try TreeStyleTabs plugin, it's great. It also works well with Firefox Multi Account Containers, so you can keep peronal, work, research, shopping in different containers, so cookies aren't shared.

I love that I can start a web search open a bunch of links, each in a new tab, then once I have what I need, I can close the parent tab and all the child tabs are closed automatically.

diroussel··on Making EC2 boot time faster
Faster feedback is the shortcut. And it always works. Faster boot time is lower latency to serve the queue. Faster feedback is stabilising.
diroussel··on Number 16 (spider)
Carl Jung held this view too. And he knew his teacher Freud disagreed. For instance a Carl Jung thought a humans fear of spiders in innate, and not learnt.

The same as how a bird can be scared on snakes. Interestingly native birds in Australia aren’t scared of humans.

diroussel··on Tesla conducting more layoffs, including entire Supercharger team
So should you be able to terminate any contract for no reason and no notice whenever you want?

Or should you be able to go to court and sue for breach of contract?

diroussel··on Recreating the Flying Toasters screen saver for the Vision Pro
A missing feature of the App Store is that it does not support screen savers. You can only download an app that spits out a screen saver. I would love the ability to download free and paid screensavers from the App Store that are sandboxed and would update automatically.

How can it be that apple makes its own screen savers so prominent each year, yet doesn’t support screen savers in the App Store?

diroussel··on Researchers, please replace SQLite with DuckDB now
That’s not how most apps work. They tend to allocate memory for specific purposes and free it when done. Only more heavy apps will retain large buffer pools, like databases but they are usually tunable. And apps themselves don’t page to disk, usually. The OS does that. Before we had MMUs apps like photoshop used to manage the page file manually. But again an app doing that is doing that for a specific purpose, not just to be greedy.

Is there some specific software you are referring to?

diroussel··on The Bun Shell
Yes 60m downloads is a lot of downloads. But it’s not 60m developers manually clicking the download link every week. Not is it 60m times that “npm install rimraf” has been called. What is happening is that many projects, some big some just hello world tutorials, have listed rimraf in the package.json file for that project. Then when “npm install” is run, all the packages get downloaded. And what is more, many people build their software in CI builds, like travisci, circleci, or GitHub actions. The build scripts will also then downloaded everything listed in package.json. And if you do multiple builds a day, then that’s multiple downloads each day.

Is it very inefficient? Yes it is. And npmjs.com will block your IP if you do too many downloads in on day.

Actually is says 86m a week here: https://www.npmjs.com/package/rimraf

diroussel··on "Such signal, much wow": Starlink's first texts via "cellphone towers in space"
If you turn off the cell radio on your phone then it won’t emit cell phone signals. Apart from that you must send a signal to be able to receive calls and data packets. And that signal encodes your location.
diroussel··on What should we know about APFS special files?
Use pnpm, it hard likes the files in node_modules to a content addressable ‘store’. It makes ‘pnpm install’ pretty fast.
diroussel··on Bluetooth keystroke-injection in Android, Linux, macOS and iOS
The toggle in control centre does not disable Bluetooth. It disconnects Bluetooth until tomorrow. It even says that in control centre when you tap on the toggle.
diroussel··on NetworkX – Network Analysis in Python
Yes. It’s generally stable in most localities. “Instabilities” in this system are browns outs power failures and other events. There are stabilising features within most electricity grids, but they can only cope so much. In general forward planning is down so the amount of dynamic adjustment needed is within allowable range.

But to be honest i don’t know how modern grids have adapted with many more micro generators than in the old days.

diroussel··on Switch off bad TV settings
From my previous reading on the subject, HDMI comes from the TV world, and DVI comes from the computer monitor world.

On a computer display, you want each pixel to be square and to be visible on the screen, a border around all the pixles doesn't matter.

On a TV, historically, pixels didn't exist, and the nearest concept to a pixel (I forget the term) wasn't square, it was rectangular. Showing a border around the content is not acceptable, and it should go right up to the very edge. Also in the TV world, the most important thing in the image, not the pixels.

So it's this philosophical difference, and separate histories, which means you should never try to get a TV to be a monitor, or a monitor to be a TV. Of course I only learnt this after buying a device which said it could be both.

diroussel··on Infants understand language via rhythm and tone rather than individual sounds
Each parent supplies half the genetic material. But each sperm and each egg have a randomly different set of one half of each chromosomes. So if you have 10 children chances are they each have a unique set of chromosomes.
diroussel··on 'How do you reduce a national dish to a powder?': the world of crisp flavours
Adding paprika to ready salted crisps is pretty effective. I bet it would work with other spices too. The thing is that you can buy one big bag, and then tune the flavours, for example if one person doesn’t like paprika.
← PreviousPage 2 of 18Next →