HNHacker News
TopNewBestAskShowJobs

diroussel

1,008 karma · joined May 26, 2009

hi!
submissionscomments
diroussel··on Why Rust strings seem hard
My understanding is that UTF-8 is not a good representation for non-european alphabets.

So do you think UTF-8 is always the best internal string representation? Or just for English speakers?

For Mandarine what would be optimal?

diroussel··on Obsolete German Units of Measurement
"practical for everyday life" involves cooking, and I encounter 0°C and 100°C regulary, with ice and boiling water.

To be honest, humans are likely able to adapt to scale when talking about the weather, or how hot the room is.

The reasons the US should move to metric are: - The rest of the world is on metric - It's better for science and engineering

I'm not suggested moving is easy, just that I for one would like it to be attempted.

diroussel··on BiDirectional WebDriver Protocol
It seems you would be able to subscribe to events in your browser, and they could be sent from the browser back to your webdriver client without polling.

This is already possible in the CDP (Chrome DevTools Protocol), so I guess it would help modernise webdriver, and allow other browsers to do similar things.

For instance I have a test (written in webdriver.io) that loads my SPA, and subscribes to network events in ChromeDev Tools (via CDP, via Puppet, via webdriver.io). This means I can assert that all .js and .css files on the page loaded successfully with 200 status codes.

At the moment I can only run this test in Chrome.

diroussel··on Ask HN: What to use instead of Bash / Sh for scripting?
I used “true” instead of “$True” in a power shell script. It didn’t error. It didn’t warn. It just evaluated to false.

So doesn’t behave like a strongly typed language to me.

diroussel··on uBlock Origin works best on Firefox
You can see the tab count without an addon. It's not pretty, but you can do it.

Go to: about:telemetry#scalars-tab

Then look at: browser.engagement.max_concurrent_tab_count

diroussel··on uBlock Origin works best on Firefox
Let's not forget Tree Style Tabs, no other browser can do it. Great for the tab hoarders amongst us.
diroussel··on AWS Lambda Edge changes duration billing granularity from 50ms down to 1ms
In AWS on the whole if there is any type of extension mechanism it's done via a lambda. Anything that needs an eval(), that is more than a regexp, is done via lambda.

This makes lambda's the glue of AWS. The input events are small json values, and the outputs are json values, and you can (mostly) use any language you want.

diroussel··on AWS Lambda Edge changes duration billing granularity from 50ms down to 1ms
As long as you can fit it in your 1MB zip file, for viewer-request events.

For origin-requests you get 50MB. See https://docs.aws.amazon.com/AmazonCloudFront/latest/Develope...

diroussel··on Commits are snapshots not diffs (2020)
The point of the article is not an analogy. Git is based on snapshots. Abs diffs are computed from snapshots as needed.

The snapshots are also de-duplicated and compressed, but that is not important.

The article is a good one. And if you spend the time to understand git it gets easier to use.

diroussel··on Fselect: Find files with SQL-like queries
This is very similar to fsql, which looks similary useful.

https://github.com/kashav/fsql

diroussel··on The Deno Company
Re: point 2

Yes to download each url and walk the tree is going to take time. But it can be cached. Not sure how long it can be cached for.

The important thing about url only imports is that it’s a consistent layer to build new tools on top of.

diroussel··on Male genitals are shrinking because of phthalates, warns Dr Shanna Swan
Not all negative feedback is stabilising.
diroussel··on The Modern Java Platform – 2021 Edition
Micronaut gives you that. Compile time validation of your bean wiring.
diroussel··on The Modern Java Platform – 2021 Edition
The simplest way to think of Graalvm is that it’s not a VM, it’s just a plungin replacement for Hotspot. Hotspot is written in C++ and hard to change. So once the java JIT is written in java it will be easier to innovate.

But then they took the base and used the java to machine code capabilities to be able to do ahead of time compilation to machine code.

But the most amazing part is that if you use the graal apis to define an interpreter for a language (any language) then graal can generate a compiler from that interpreter. It will compile all that is known at compile time and leave to runtime what needs to happen at runtime. So essentially it does partial compilation.

diroussel··on The Modern Java Platform – 2021 Edition
Even servlet containers are the wrong approach. I have from experience it’s best to stick to libraries. You know where you are when you call a function. The Servlet spec now includes annotation scanning by default now, which is unnecessarily complicated and slows down start up.
diroussel··on The Modern Java Platform – 2021 Edition
The real thing that is missing is a runtime annotation scanning API.

Spring does this my examining the class path, casting it to a urlclasspath, finding all the zip/jar files, unzipping them and then parsing the byte code.

Interestingly the set let spec added annotation scanning too. And now if your not careful you jar files get extracted three times. The JVM, the server conteainer and spring all repeating the same work.

No wonder people think java is slow to start up.

diroussel··on When Sick Cows Can't Be Culled
The most poor people can not afford meat. Or if they can, access to meat is not required to treat malnutrition. Meat is also unhygienic without refrigeration, and the source of parasites in many hotter climates.

Edit: sorry I see now you didn’t mean for eating. But for dairy. Yes, access to a cow for dairy is definitely a good thing. :-)

diroussel··on Rethinking the Progress Bar (2007) [pdf]
Usually by the time your software knows fully all the things that need to be done, then you are almost done anyway.

One approach is to remember how long a similar task took, and present progress based on the expected time will be similar.

diroussel··on Imaginary Numbers May Be Essential for Describing Reality
Are there any integers in the physical world? To me they all seem in my head.

If I have 3 match sticks, they are each made of billions of molecules, atoms, electrons, quarks, gluons, etc. So there is no integer count, just in my perception.

diroussel··on Modules, Monoliths, and Microservices
I was definitely contemplating the definition of microservices back in 2012. I think Netflix had been blogging about it then, or just before.
diroussel··on Nvidia Limits RTX 3060 Hash Rate
No matter how much faster and more efficient the mining becomes, the hash rate will adjust. It’s a self balancing system.
diroussel··on What is the fuss over central-bank digital currencies?
There are a lot of cost savings to be made in a move to a national digital currency. Just settlement alone could be made way cheaper. Swift could be cut out as the middleman. It would be a good cost saving innovation.
diroussel··on Monolith First (2015)
I'm not sure why you are being down voted. In context of calling business logic we have moved away from linking.

I guess the context is only implelied in your parent post.

The rise of the network API in the last 20 years has proven it's own benefits. Whether you are calling a monolith of a microservice, it's easier to upgrade the logic without recompiling and re-linking all dependencies.

diroussel··on Monolith First (2015)
But is linking the right way to couple business logic from two different organisational units?

That is the question being discussed.

diroussel··on Tagged Unions Are Overrated
But it would be interesting to those of us that build web pages why this one works this way.

This is not just bad formatting, it’s a deeper mystery.

diroussel··on Amsterdam displaces London as Europe's top stocks centre after Brexit
French, Spanish and italian speakers find it hard to pronounce English words as English contains sounds not present in their languages. But Flemish/Dutch languages have a superset of the English sounds. So it’s hard for an English speaker to pronounce Flemish sounds, but easy for Flemish/Dutch speakers to pronounce English words.

So they start from a position of strength, and then there is plentiful expose to English from a young age as a bonus.

diroussel··on Cambridge Bitcoin Electricity Consumption Index
Sometimes you want to trust and verify.
diroussel··on Block Facebook Servers
EU Regulations and Decisions directly affect member states. Whereas EU Directives require member states to enact new laws.

As the GDPR is a regulation, it directly applied to member states.

When the UK left the EU they made a paralled law

> The GDPR has been incorporated into UK data protection law as the UK GDPR see: https://ico.org.uk/for-organisations/dp-at-the-end-of-the-tr...

diroussel··on PyCharm's Transition to Apple Silicon
IntelliJ had been based on java for twenty years. It has worked well as a mainstream cross platform application that has been around before, and outlived, other approaches.

Moving to another language would surely be many more orders of magnitude than plugging in a new JIT?

diroussel··on Java 1.0 Turns 25
There is no magic. You have source code and when you compile you get byte code.

In the early versions of Lombok it was a bit dodgy as it used private APIs, but now the compiler has the public hooks and its all good honest compiler plugins.

← PreviousPage 8 of 18Next →