Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
271.
▲
by
mg
2y ago
The brain uses 20% of the human body's energy. As machines become intelligent, maybe AI will account for 20% of global energy consumption?
272.
▲
by
mg
2y ago
How long is a while and what is it, that most people do all day? A quick Google search for "most common job" came back with Cashier A cashier works in a retail environment and processes transactions for a customer&#
273.
▲
by
mg
2y ago
I guess the "deep transformation of how we work" part is what I don't really understand. At the moment, it looks like we'll either become completely obsolete in the context of work, or we'll morph into
274.
▲
by
mg
2y ago
I'm not advocating, just trying to look into the future. Superhuman AI seems to be a building block of it. And deep transformation of how we work will come with it. So I raised the question of the timeline. That's all.
275.
▲
by
mg
2y ago
The question is how fast. I remember in the late 90s, me and some friends discovered the internet and went "Woah! Letters, books, shops, work, study, gaming ... pretty much everything will take place in this virtual realm soon!".
276.
▲
by
mg
2y ago
In my experience: PHP is always blazing fast, with no additional setup to make "Reload page, see results" work. Python needs additional setup. Either by monitoring the filesystem and pessimistically recompiling the application eve
277.
▲
by
mg
2y ago
There are of course ways to get "reload page, see results" to work even with Python. After all, computers are touring complete. But in PHP you have it out of the box. Faster, with less complexity and less resource consumption. And
278.
▲
by
mg
2y ago
To get to know Laravel, I forced myself to build a project with it for a few weeks and I did not like it. I found myself getting sucked in into a complex project structure and dealing with all kinds of strangeness like "artisan command
279.
▲
by
mg
2y ago
These days, I am super torn about what language to use for new web projects. PHP: - Easy to deploy: Upload files, done. - Easy to develop: Reload page, see changes. - Lots of HTTP tooling built in. - Fast. Python:
280.
▲
by
mg
2y ago
Hetzner seems unaffected? ping hel1-speed.hetzner.com Gives me 52ms from Germany which should be about normal?
281.
▲
by
mg
2y ago
Is there a metric which lets us track how far/close we are to do something useful with quantum computers? And when we look at that metric and extrapolate its progression over the last years, when do we expect QCs to hit datacenters?
282.
▲
by
mg
2y ago
I guess blurring it is similar to reducing the resolution or to looking at the image from further away. It's interesting that the neural net figures out the circles, but not the words. Because the circles are also not so easily apparen
283.
▲
by
mg
2y ago
I gave it a sentence, which I created by placing 500 circles via a genetic algorithm to form a sentence. And then drew with an actual physical circle: https://www.instagram.com/marekgibney/p/BiFNyYBhvGr/ Inte
284.
▲
by
mg
2y ago
You could also use vim in a loop. Say you want to replace "hello" in all files in the current dir with "world" and confirm every replace, then you would do: for f in $(grep -l 'hello' *); do vim -c '
285.
▲
by
mg
2y ago
which costs time No sure this holds true anymore. When you go to a site like reddit.com which uses HTTP/2, you see a gazillion of requests for JS files, many starting at the same time and ending at the same time. I think that
286.
▲
by
mg
2y ago
From my perspective, the biggest flaw in FireFox is that it does not support the File System Access API. Because with it, we can offer users to hold their data natively on their devices. Instead of storing everything in the cloud. Chrome on
287.
▲
by
mg
2y ago
Couldn't the browser simply internally turn this: function f1() { x = await fetch('something'); ... } Into this: function f1() { fetch('something').then(x => {
288.
▲
by
mg
2y ago
The difference would be that you still can call the function without await. So this would be possible: async function f1() { f2(); } function f2() { await fetch('something'); ... } Ins
289.
▲
by
mg
2y ago
What problem would arise if synchronous functions could use await?
290.
▲
by
mg
2y ago
A quick fix to the problem would be to allow synchronous functions to use await.
291.
▲
by
mg
2y ago
Linux, Apache, MariaDB, PHP, Python, HTML, CSS, JavaScript. Some pages still use JQuery, but I wouldn't use it in new projects. Browsers are a joy to work with these days, no more need for any libraries.
292.
▲
by
mg
2y ago
Yes, Linux, Apache, MariaDB and PHP or Python are pretty good choices I would say. For a large project (with years of manpower baked in) I would expect about a day of maintenance work per year. Assuming you have good test coverage.
293.
▲
by
mg
2y ago
WordPress might indeed be a good choice for a CMS. How well does self-hosted WordPress (without plugins) behave when updating? I would think that even major releases can be updated with a simple click and don't break anything?
294.
▲
by
mg
2y ago
The one thing I learned from running https://www.gnod.com (20 years) and https://www.productchart.com (10 years): Keep your stack flat. Most projects of my web developer friends died after months or a few years. None
295.
▲
by
mg
2y ago
I doubt that people will know what to do with the "2D barcode" in 100 years. Someone who is willing to investigate will figure it out. But it is not something that will be convenient. I for example wouldn't know what to do wi
296.
▲
by
mg
2y ago
Without clothes, houses, heating and running water, fertilizers, tractors and specially bred crops, Earth would be pretty alien to us today. I wonder what technologies we will have at our disposal in 500 years.
297.
▲
by
mg
2y ago
Depends on the import tree. The way I understand it, this: import { x } from '/a.js'; import { y } from '/b.js'; Does not take longer than this: import { x } from '/a.js'; B
298.
▲
by
mg
2y ago
Good point! I wonder what I would have to look for in my codebase in terms of what could break when dqsA starts returning an array instead of a NodeList?
299.
▲
by
mg
2y ago
AFAIK modern HTTP versions like HTTP/3 can request multiple files in a single network packet. So it is basically free to do "another request". As the data request goes out and the data comes in in packets with other "req
300.
▲
by
mg
2y ago
Browsers have become so nice to work with, that these days, I get away with just the following two lines of code to simplify DOM manipulation: dqs = document.querySelector.bind(document); dqsA = document.querySelectorAll.bind(doc
More ›