HNHacker News
TopNewBestAskShowJobs

diroussel

1,008 karma · joined May 26, 2009

hi!
submissionscomments
diroussel··on Apple Lightning (2020)
There is wireless CarPlay now. But it does have higher latency.
diroussel··on Apple Lightning (2020)
When it was announced by apple they said the 30-pin connector has lasted a decade, and lightning was the connector for the next decade. That was September 2012.

The decade is up.

Personally I would be happy to keep lightning. It’s simple, it works. I have many lightning cables. If I see I lightning cable I know exactly what it’s for. With USB-C you can’t know the capability of the cable by looking at it.

But I suppose lightning has had it’s term in office and it’s time to move on.

diroussel··on Breaking up with JavaScript front ends
Not quite what I remember. XMLHttpRequest was invented by Microsoft and used in a outlook webaccess. This was only possible in IE6.

But Ajax is merely a pattern that was enabled by the ‘dynamic html’ that was made possible by having a DOM and JavaScript. It was possible in Netscape years before IE6. I did a production app with Ajax in 1999, using IE4. Before the term Ajax had been coined.

diroussel··on Tell HN: The ThinkPad X1 Carbon is an excellent MacBook replacement
That’s just peak performance, and ignoring the energy efficiency.
diroussel··on Typing with pleasure (2015) – typing latency measured
It's interesting how the text editor, the keyboard and the OS all come together to contribute to the typing latency. Whilst this is obvious to say, it it is interesting to see the meansurements presented in the article.
diroussel··on Keyboard Latency (2017)
Another great deep dive into latency of typing is this one [1] which considers input latency from the keyboard, the keyboard interface, the editor/IDE, and even the window manager.

Pavel found that Windoes Aero added 16.6ms extra latency (but this has probably been fixed by now).

[1] https://pavelfatin.com/typing-with-pleasure/

diroussel··on Beyond Meat is struggling, and the plant-based meat industry worries
I think GP didn’t provide citations as it’s a fairly well known and un-controversial opinion.

If this idea was new to you then maybe have a look at these sources, or do some other searches

https://www.health.harvard.edu/staying-healthy/red-and-proce...

https://www.hsph.harvard.edu/nutritionsource/processed-foods...

diroussel··on macOS Ventura is now available

  Cmd-Tab -> switch apps, in most recently used order, keep Cmd held down and repeatedly tap Tab to cycle though the switcher bar
  Cmd-` -> switch windows of current app
  Cmd-H -> hide current app
  Cmd-Opt-H -> hide other apps

They all work very fast

If you want more options, try Alt-Tab app: https://alt-tab-macos.netlify.app/

diroussel··on Technical milestone reached: global earth system simulations with 1.2 km resoln
Here is a very brief and basic introduction to numerical simulation:

Simulation of dynamic systems is a big deep area. In general you use what is called numerical simulation where you have a model describing your system, in the form of a partial differential equal equations.

You start with the chosen initial conditions, choose a delta-t as your time increment, and solve the equation for those inputs. That result is the input to the next iteration.

The most basic algorithm to solve such an equation is “Newton’s method” but no one actually uses that, they use many more advanced methods. But if you are learning that is where you start.

This approach has advanced greatly over the last 70 years. Doing numerical simulation is why early computing work got funding, to simulated nuclear reaction inside bombs.

Now numerical simulation is the occupation of all the worlds top super computers. It’s used for climate simulation, bridge strength, how sky scrapers flex in the wind, testing car crashes or even simulating the strength of ceramics. Oh and it used a lot in financial simulations to model risk and calculate the price of assets.

diroussel··on The Future of the Web Is on the Edge
Cloud flare made a blog post about this. I tried to find it but I couldn’t. The general idea was that in a post GDPR world as more and more countries put legal limits on the movement of data about their citizens, it gets harder and harder to serve these users with classic web tech. However, they say, that cloudflare workers and durable objects the user data is kept in region and thus you have a clean scalable architecture without legal worries about data jurisdiction.
diroussel··on Why to not use JWT (2021)
Maybe you are thinking of JWE?

If the signing of the JWT wasn’t deterministic, then it would be hard to verify.

diroussel··on Why to not use JWT (2021)
You only need a cryptographically secure RNG to generate a key pair. Assuming asymetric keys. That private key can then be used to sign many many JWTS.

Whereas generating new session ids will always need fresh entropy.

diroussel··on Check Your IP Reputation Score
I did some testing on 35.214.66.222, it says this could be an attacker because it's on the wikimedia blocklist. But it's on the wikimedia blocklist because it's an IP block owned by google, and wikimedia doesn't want google creating accounts.

That doesn't make a website server from this IP an attacker!

diroussel··on MinIO passes 1B cumulative Docker Pulls
In my current app, we use cloudfront to serve browser requests. So it’s cloudfront that talks to S3 and deals with authentication, buckets etc. The requests from the web browser don’t know about the bucket.

S3 is designed for API access, not as a website.

diroussel··on MinIO passes 1B cumulative Docker Pulls
It won because it was the first, but also because it’s API was designed to be cloned. Being cloned was a success criteria for the the S3 team.

I read that somewhere recently. I don’t have a source to hand.

Personally I this the API is ok, but if they did designer it to be cloned, they could have done it slightly better.

diroussel··on MinIO passes 1B cumulative Docker Pulls
In what way do you think it’s over complicated? Genuinely interested.

Not sure about Minio, but most S3 clones don’t clone all API operations, just the ones they and their customers/users need.

diroussel··on AWS vs. GCP reliability is wildly different
Scaling to zero means zero cost when there is zero work. If you have a buffer pool, how long do you keep it populated when you have no work?

Maintaining a buffer pool is hard. You need to maintain state, have a prediction function, track usage through time, etc. just spinning up new nodes for new work is substantially easier.

And the author said he could spin up new nodes in 15 seconds, that’s pretty quick.

diroussel··on Check Your IP Reputation Score
It’s an HTTP proxy. Two layers of proxy.

I was just assuming that paying iCloud users might be less likely to launch bot attacks. But on reflection I guess that is just bias.

diroussel··on Daily 'breath training' works as well as medicine to reduce high blood pressure
As well as strengthening your breathing muscles (there are very many I guess) restringing air flow on an in breath, like in Ujjayi Breathing, brings more blood into the alveoli because of the low pressure in the lungs. I guess this would have some effect like enhanced gas exchange.
diroussel··on Daily 'breath training' works as well as medicine to reduce high blood pressure
You have this device built in to you body already.

In yoga there is a practice called Ujjayi Breathing where you restrict airflow in and out of the lungs via the the throat, making a soft sound. This is often combined with meditation or sometimes uses in very energetic situations to calm the breath.

diroussel··on Check Your IP Reputation Score
If you wanted to send spam, or run an attack, you’d want to run your traffico via tor or a vpn to hide your home or office IP.

Not sure why iCloud relay would be a problem.

diroussel··on Learn how to unleash the full potential of the type system of TypeScript
I get this question sometimes from a developer new to my team asking if it’s ok to add OOP code since most of the existing code is just functions.

My view on that is that it’s ok to use OOP and define classes if you are really defining an OOP style object. Back in the 90s is was taught that an object has identify, state and behaviour. So you you don’t have all three, it’s not really an object in the OOP style.

Looking at it through this lens helps make it clearer when you should add classes or just stick to function and closures.

diroussel··on Learn how to unleash the full potential of the type system of TypeScript
Yea, because typescript is trying to model what can be done in JavaScript, which is a very permisssive runtime.
diroussel··on I wish I was a little bit taller
5'11" is ideal, taller than average, but not so tall you continually bump your head. Budget airlines are still a bit of a squeeze.
diroussel··on When to use Bazel?
There was a HN post a while back where a MS engineer was explaining why windows file system access will never be as fast as Linux.
diroussel··on Saturated fat: villain and bogeyman in development of cardiovascular disease?
When a potato is eaten, the amylase in the saliva mixes with the potato starch and starts breaking it down into sugars, some wil be glucose acording to [1].

You can test this yourself by eating a plain cracker. A plain cracker doesn't contain any sugar, but if you keep chewing it you will notice a sweet taste in the mouth. This is from the sugars released by amylase.

There is no mention of fructose on the amylase wikipedia page. So maybe you are right.

[1] - https://en.wikipedia.org/wiki/Amylase

diroussel··on “Secrets” about the consumer audio business you may find interesting
If you look at measured frequency response of any audio equipment then you never see a truly flat response. At least I haven’t. And the phase shift of often far from flat.

So if you have two systems that have near flat responses it’s possible that one sounds better for certain inputs.

Also Bose plot (frequency and phase plot) is a type of analysis that assumes the system is linear. If the system is not linear, what is the plot showing you? I imagine many systems are very close to linear, but at the edges of dynamic range they can’t be.

diroussel··on A serverless architecture for high performance financial modelling
Yes that’s what serverless is. It’s running compute jobs via a scheduling layer. That’s all it is.
diroussel··on Roy Harper’s Stormcock (2020)
Folkjokeopus is such a lovely album.
diroussel··on A serverless architecture for high performance financial modelling
I suppose the authors assumed the reader is familiar with the benefits of the serverless model.

When running functions as a service, you don't have to administer the OS, you just request the computation, provide an input event, and wait for the results to be computed.

If you use EC2 you need to handle the work submission, the scaling and registration of the workers, and the security and life-cycle of the OS yourself.

It seems to me they didn't get all the benefits of serverless, because they had to write thier own custom workload management code. But probably it would still be simpler than managing the workload across thousands of EC2 instances.

← PreviousPage 4 of 18Next →