skysight-inc/HackerNews huggingface dataset:
I really don't get the point the author is trying to make.

The fact that Babel is often used to transpile ES modules to CommonJS says nothing about whether ES modules are terrible; it mostly speaks to the state of the Node.js community, and perhaps the state of bundling applications for the web. It's possible to use pure ES modules today in Node.js, Deno, and in the browser; it just may mean that whatever Node.js package you want to use won't make that easy (without something like JSPM.io).

As far as lacking advantages over CommonJS, I don't know what he's talking about either. ESM is much more practical to statically analyze given that it's a language feature and not a function that just happens to be in the global scope. If ESM was more of a copy of CommonJS, the author would probably be complaining that it doesn't support static analysis or tree shaking.

Those aside, the use of the word "terrible" comes across as insincere. ES modules are not complicated. They have their own scope and they can have exports that can be imported elsewhere. If there's any other detail or behavior I didn't mention, my guess is that it's barely important. In my experience, modules work quite well and are an essential language feature. The fact that they have their own scope is particularly nice given that there are many other languages that don't give their modules their own scope by default.

The author wants import syntax to both support static analysis and call it as a function within any JavaScript expression, yet they provide no example of a hypothetical syntax that would make this possible. Those needs are necessarily in conflict. In other words, the author wants to eat their cake and have it too. As they point out, ESM does provide an import function that can be called this way, but the author is annoyed that it's async and may require parentheses (which they believe is a "weird hack" for some reason).

Making the `import` function async is a good design choice. In the browser, which is JavaScript's natural habitat, importing is necessarily async because other modules have to be fetched as separate files via HTTP. If it weren't async, we'd be stuck bundling "modules" together with Webpack, which goes against what the author actually seems to want, which is actual modules. In runtimes like Deno, being able to asynchronously import from URLs on the backend is pretty nice as well. CommonJS doesn't support this without something more akin to a "hack" than the parentheses "hack" the author complains about.

Also, there's some very foolish comments in that Gist. For one, you can't blame ESM because of Typescript. ES doesn't give a hoot about Typescript, nor should it. ES modules "[don't] work in the browser" because of performance? Nothing is stopping you from bundling parts of your application, ESM or not. It's as if http3+ isn't a thing either. In fairness, most JavaScript applications rely far too heavily on a bajillion 3rd party packages, and the answer is we should stop doing this as often or to such degrees.
Other topics _except_ IT-related stuff, I guess.
EU hits Google with fresh charges – Says forced sale only remedy
I hate to keep repeating this in this thread because I don't want to sound like a broken record, but it feels like you're engaging in a textbook example of the McNamara fallacy. It seems like the only thing you're able to measure is "number of bad guys", so that's the only metric for success/failure you have.

What if the more important metric for a good society was something else?

What if removing "the bad guys" from society makes them feel like they're not part of society and have nothing else left to lose so it actually pushes them to violence?

I'm not saying I have all of the answers here, but I do strongly think that your general approach here is ignoring the human side and focusing on the wrong metric for progress.
> If you're surprised to find occasional micro-aggressions in small towns, well... bless your heart.

There's reasons plenty of people prefer cities over large towns. At least in the city, people will have the decency to just directly tell you to go fuck yourself. Saves time.
Every year or so, someone shows off a feature of Altium that makes me want to take a closer look, but it's hard for me to let of those text file formats.
You'd think as such if you're observing the EU. They happily encourage monopolies that they profit from like LVMH and Luxottica.
I need advice on how to finish your article :)
To me the strangest thing was that she rolled back the change, but somehow not with cicd. Meaning it's going to blow up again on next deploy.
Wouldn’t this come with a crash as a payback?
The Martian Chronicles – Simulated Mars in X-Plane (2000)
Even before it's full, an open addressing hash table (also called closed hashing - confusing names!) becomes very slow as it gets close to full, because most of the table needs to be scanned on inserts, and on queries for the recently inserted vales.

When it's full, insertion requires rehashing into a bigger table. (Or you can use an overflow list when the table is full or nearly full, if you don't want to rehash and prefer to treat this case as rare and ok to be slow.)

So for a general purpose open addressing / closed hashing hash table where you don't know the number of items in advance, rehashing to a bigger table is done at some threshold before it's actually full.

As long as you do rehashing using a multiplier, for example doubling the size at 50% full (as opposed to adding a fixed amount to the size), it stays fast on average, but the rehashing operations are of course individually slow. They just don't happen often, so the average stays at O(1) time. This is called amortised O(1) time complexity. The ideal threshold for resizing depends on the probing type.

Linked list hash tables, (also called closed addressing or open hashing - I think linked list is a clearer name) don't suffer from catastrophic slowdown with size in the same way as the open addressing / closed hashing type. Nor abrupt failure when full, because they're never full. These can still be resized and this is required if O(1) time is required to arbitrary numbers of items, but the resizing threshold is not as critical. If not resized they gradually degrade to O(N) time performance when filled too much. Many applications use fixed size linked list hash tables safely because of this.

Array-of-arrays hash tables behave similarly to linked list hash tables.
Love it when it's an "expat" when from the US or the UK, but an immigrant for all other countries.
This article mostly rehashes what others have said about deliberate practice spending 80% on describing what it is and not how to do it.

The final 20% is just do spaced repetition and something about 10,000 hours by Gladwell.

There doesn’t seem to be anything of value here that hasn’t already been said.

I was waiting for the “how” the whole time.

So, dear reader, how do you do deliberate practice?
That sounds like a problem for Google to solve, not the public. "We setup our business so that it's too difficult to comply with the law" isn't an excuse in any context.
There’s a UI for it in Cloudflare once you have a domain. Seems to work pretty well - emails from my new domain go to directly into inboxes, no spam markers I’ve heard of.

https://developers.cloudflare.com/pages/platform/functions/p...
But the point is that Ireland does not really benefit from this money - it is only an accounting trick. Google funnels money through Ireland, but does not employ many people in Ireland, and does not pay much taxes there. In the end, the living standard of typical Irishman is closer to countries with $40-45k GDP, such as Italy or France, than to countries with $100k GDP, such as Norway or Switzerland.
> protect the integrity of advertising?

What does this mean? Advertising generally corrupts ad supported platforms. We saw this in newspapers when papers would spike stories unfavorable to advertisers. We saw this in "malvertising", when web ads distributed malware. Ads are often over the truth line and into lie territory.

So what does integrity mean here?
I've watched that one too. That one has a sort of resigned feeling to it. Situations are over, but nothing is really resolved. It's kind of like a serious version of Burn After Reading. Here are these various lives and stories and the situation that has intertwined them. Once the situation is has passed, everyone is affected in different ways, but nothing really ends.
I'd suggest a different explanation.

Think about what OP said here for a second:

>every time I can’t find something I switch to Google and find the answer right away

If you assume both Google and Bing to be similarly good but not the same, then you would expect this to happen.

Say there are two sets of websites, the ones that Bing finds (B+) and some that it doesn't (B-).

The same would hold for Google, there would be G+ and G-.

Now if you search on Bing first, and find what you need, you stop. This is a result in B+.

If you don't find it, your result is in B-. Then you search in Google and maybe get a G+ result, since they have different sets of websites they find.

You might also not find it (G-) but in the end both search engines aren't that bad, so this rarely happens.

Now you might find the same result if you start on Google instead, and aren't lucky in the first go, and then try Bing.
Show HN: Superpowered (YC W21) – The AI copilot for your meetings
Hey y’all,

I’m Nikhil from Superpowered (https://superpowered.me), here with my cofounders Jordan and Ibrahim. We’re launching an AI tool that we’ve built.

We got destroyed last time we launched on HN over 2 years ago. https://news.ycombinator.com/item?id=26425318.

We went through many product pivots since then and things got weird. At one point, we tried to train a neural net to predict the next app you'll use, lol. But, we’re a lot happier where we find ourselves now: AI copilot for your meetings.

We don’t send any bots to your meetings, we don’t keep any recordings, we just give you really good notes. Check out https://superpowered.me.

You’re likely thinking of your next savage comment. “Here comes another thin wrapper over OpenAI”. And, you’re likely funny and correct.

But, before you dismiss us, please consider what we're hearing from our users:

- “What can I say—I'm amazed! I've only really been using the notes today and I'm stunned by how helpful they are. I legit ran downstairs to show my wife what Superpowered is able to do. She's going to sign up now!”

- “AI notes in Superpowered are the best thing to come out of AI thus far.”

Anyways, don't knock it until you try it. Thanks. Looking forward to hearing your thoughts.

Nikhil

P.S. Jordan recorded a great video of our journey. There is an abbreviated version on Product Hunt. But, here's the full version for y'all: https://youtu.be/Zo16RzvtiKk

P.P.S We're live on PH: https://www.producthunt.com/posts/superpowered-3. Would appreciate any support.
German TV really is quite bad on average. You have publicly funded stations with an average viewer age around 60 and private TV stations producing scripted reality trash.
The amazing thing about tech-people and especially developer and related is that they are expected to and required to grasp an understanding of other people’s professions in order provide products/services. So I would actually expect tech-people to be able to talk reasonably about non -tech areas and to be quite happy to be corrected when they are way off the track..
Example?

Looking at the comments in this thread it doesn't feel like a democratic decision: https://old.reddit.com/r/StarWars/comments/148xygd/rstarwars...
If I’m serious about shipping some production app/page, I want complete control over all of this anyways. I never want to require/import an entire .min.js file. I want to tree shake the 15% of it I need.
The commenter explains why that is and instead of reacting to his argument you are implying that it is just Europens who want to regulzte Americans while it is clearly not the case.

Not every monopoly is created equal and if you can not acknowledge that you are not arguing in good faith.

Edit: also I am looking into De Beers a bit more and it seems the EU has made steps to improve competition in the past.

Also if you want to argue that LVMH is a monopoly and that it has a bad impact, go ahead. I just think that since this is HN it is natural that most people do not feel the impact and do not really care. I do not know exactly how monopolistic they are and what the bad impact of that is but feel free to enlighten me.
Not really though. They're controlled by their executives, who can theoretically be removed by their boards, but often with significant difficulty. And the connection between the board and the shareholders at large is also more tenuous than I once thought.

It's true that a dropping stock price can lead to a takeover and new management, but again, that could happen to both a well managed financially strong business that has just lost the narrative game.

That's the only point I'm trying to make, that in theory stock prices are driven by financials, but in practice it's a mix between financials and narrative, and I think narrative dominates more than I was taught back in economics classes.
A built-in parallel foreach can't guarantee better performance because the hardware isn't there. The parallel part is scheduled on normal threads by the kernel and this is too unpredictable.

But if each OS-scheduled CPU was really a cluster of for instance 1 fast + 64 slow cores then it could have special instructions to split a low-level loop on these slow cores and to facilitate blocking and rejoining back into a single stream. A 'parallel branch' instruction could take index, limit, and estimated instruction count and the CPU itself could decide whether to run it in a single fast stream or in parallel on slow cores.

There's some technical challenges like the size of a register file (so probably uninterruptible), but this may be where we're going since there's diminishing returns from making a single CPU faster and there's lots of opportunity for parallel processing that GPUs are too clumsy for.
Parallelism is only about performance, that's it. If you need something to go faster, parallelism is an option.

Looking into the future, parallelism is one of the only remaining techniques for scaling classical computing. Processors have stopped getting faster. Instead, they're getting fatter (more cores).
In a recent announcement on YouTube, they confirmed that the stories section will be removed soon.
> A hands down amazing feature, something I was pining for for so long and it is finally here. Performance? Sure, if you are building high traffic sites, you will still reach for a bundler, but browser ESM without a build step will allow many intranet and low traffic Internet development teams to ship much nicer code than they do now after buying into bundle-everytime voodoo. If this existed before WebPack, so much spaghetti code could have been avoided.

Before or around the same time CommonJS appeared there was another module system before Webpack existed, I think it was called Async JS. It was browser-first and allowed you to do JS development in the manner which you describe. It was also supported by Webpack's bundler. A bit surprising to see this piece of history getting memory holed.

Edit: I think it was called RequireJS? You would give it an array of dependency paths and a callback function to get executed once everything was loaded.
The EU doesn't want to talk about it's own monopolies.

ASML is a funny one too, the EU gets to "have it", but the US gets to use sanctions to control it.
I was deep into OS explorations in this period. I ran BeOS, Yellow Dog linux on PowerPC, had all flavors of NT, etc.

My feeling about OS X at this time was that it was the right choice but that it was "too late" and that Apple took too long and the window of opportunity had passed.

I take that now as startup advice: It isn't too late!
There is a drug already for that. Catnip.
Boring, perhaps. But definitely not harder to read. The old styles with text against textured backgrounds (for example, the pinstriped menu bars) detracted from readability. Current design is significantly better, especially dark mode, although lately there is a trend towards low-contrast UI (text against similarly-coloured backgrounds) in recent versions of iOS and macOS which is also detracting from readability, IMO.
Yeah, Google is worse
Yes, exactly. How to design such training for some specific area, that's still an uncovered topic.
Heard an opinion that people cover up depression with a sense of humor though...
Boohoo...

Not belonging is very much the experience any immigrant faces. Immigrants into the US are no exception.

And if she's complaining about not belonging for her looks, ask how Muslim Americans and Muslim Canadians feel in the early 2000s, or how a lot of Asian Americans and Canadians feel currently with the geopolitics riling up the racists.
Eltanin – An OS project and a Linux distro (Glacies)
Windows 2000 predated XP by almost two years.
FWIW, "Pricing Update" is literally the subject of the email they sent today.
If you don't want to send your money to the Bahamas, you have the choice as a consumer to use a regulated US-based exchange instead. You don't have to be ultra-savvy to read wikipedia and learn about a company before doing business with them.

With Google, you're spending money in a completely opaque marketplace with 0 visibility or transparency, and no choice as a consumer to mitigate that.
How did you look for tea rooms? I checked tabelog and found a couple that were very nice and not tourist traps.
San Francisco is a city, so no.
> It appears to have all the basic functionality expected from a modern operating system

The truth is, for the most part operating systems haven't really advanced that much, at least from a ux standpoint. Speaking as someone who started using computers in 1997 on windows 95 and a 133mhz pentium. All the basic metaphors and mechanisms have stayed the same. Tabs in browsers were considered like a huge leap (I know it's not strictly an OS thing), and that was almost 20 years ago.
Really? I remember using the commonjs module pattern even before nodejs. It basically just felt like it was a way to write javascript to a standard of quality more than anything in those times. Lots of closure enforcement, and everything wrapped in a top-level function - The module imports were just a side effect. "require" is just a top-level first-class function call. I believe I was using it to build crossplatform mobile applications at one point, and there was absolutely no nodejs involved in that.

All of that said I'm super happy I moved away from mobile/frontend into backend. Way less annoyances.
Counterpoint: Babel and Webpack are the problem.

I've long dreaded touching the JS ecosystem but recently I published a package on NPM using ESM + esbuild to bundle it and it was--dare I say--pleasant. Top level await is a killer feature, too. Finally we get a real spec for modules instead of some ad-hoc thing that we twist and turn to get running on browsers.

Recently there is a movement in the JS ecosystem to rally around browser APIs, as you can see in edge computing services like Cloudflare Workers and Deno. Modules are a big part of that and one I am quite grateful for. Soon enough Babel will be thought of like Grunt and Gulp and all of the other JS churn.

Edit: originally I borrowed the "is terrible" language from the article but honestly I feel kind of bad about that. They're both projects worthy of respect, but I don't think they should remain as "the status quo".
That's not a pun, that's just the definition of 'functional'.
I usually don't remember my dreams (and if I do, memories are usually very vague). However, I still have a sense of time passing when I sleep - ie: I wake up in the morning and I feel like some number of hours have passed since I went to sleep, even if I can't remember what happened during those hours.

I've been under general anaesthesia once, and there was no sense of time passing. One instant I was in the OR, the next I was in the PACU. If you'd asked me, I'd have had no way of telling you if I'd been out for 20 minutes or 8 hours (I was out for about three).
Inflation rate targets can’t be higher than the storage cost of commodities. If the inflation target starts to exceed those costs people will transfer savings into commodities. As people start to hoard commodities prices begin to rise which drives more inflation and more people to hoard commodities and eventually the economy stops functioning.

At some point it makes more sense for commodity producers to leave the oil or copper in the ground because the commodity in the ground is more valuable than what can be earned digging it up, converting it to cash and the losses of holding the cash relative to inflation and taxes.

When things reach that point nations typically have enforced capital controls, fixed exchange rates, and then will nationalize commodity producers and will attempt to implement some form of commodity price controls. Production drops to nothing and the end result is usually a concentration of wealth and power in a small percentage of well connected individuals who strip the country of wealth. This leads to entrenched strong men and oligarchs (Russia, Venezula, Zimbabwe).

The best part is that initially the middle class cheers inflation with rising property values and wages. As the inevitable enshittification and looting of the economy ensues it isn’t obvious that a choice was made and who is to blame. The misery is blamed on foreign powers, the political opposition, and the poor while power and wealth end up in the hands of a few.
Also this is appears to be the optical resolution, unrelated to an elevation model.
It’s possible to write OOP code where each object stands alone in its own file and just passes messages to other objects. Breaking things up is supposed to make things easier and it usually does.
HTTP/2 Server Push is dead, and Chromium dropped support in 106: https://developer.chrome.com/blog/removing-push/
Dear fellow founders,

We're excited to announce the launch of a tool designed to elevate your preparation for YC interviews.

We understand the challenges and pressure that come with the YC interview process, which is why we have poured our expertise into developing this invaluable resource. It is meticulously designed to provide you with a comprehensive and immersive practice experience, equipping you with the confidence and readiness you need to excel in your YC interviews.

https://www.producthunt.com/posts/y-combinator-interview-pra...
Automating DataScience Using LLMs