skysight-inc/HackerNews huggingface dataset:
> The only thing that's different is that you get a single value you have to check for errors rather than a separate value..

The type system confines you to a set of reasonable cases that allow a caller to reason about the state of the program. This has two benefits for the caller:

1. It is required that the caller check whether a return value is success or failure in order to access the value they want. There is no possibility to mistake one case for another.

2. In the space of valid return values for idiomatic Go function signatures, 50% of them are unidiomatic and end up being ignored. It is far clearer for a caller to understand what is expected of them when valid values exactly overlap with the space. It is far clearer for an author to convey expectations to a caller for the same reason.

Now I must admit, good conventions and tooling in Go account for the vast majority of cases and I don't personally mind that much, but that's a different conversation than API design.
Couple more things.

Don’t abuse LINQ. It’s awesome, but I can only recommend for simple use cases. For advanced ones, too easy to screw up, and too hard to debug. When that’s the case, I’m usually writing a foreach loop instead, and/or generator methods. Also, when I do use LINQ I prefer the C# syntax like `seq.Select( x => x.something )` instead of the SQL syntax `select something from seq`. It’s a matter of taste but IMO compiler is doing too much magic with the SQL syntax.

A few years ago, .NET finally got what MS calls string interpolation. Good stuff, can recommend, I think Python has an equivalent for a decade: https://docs.microsoft.com/en-us/dotnet/csharp/language-refe...

Most articles on the internets view C# as an object-oriented language. That’s only part of the story. In the typical code I’m writing, at least 50% of code is pure functions (in FP sense) in static classes. And at least 50% of non-static classes are structures (these are value types, an array or List<> of them will keep items at sequential memory addresses, good for performance) with all the fields marked readonly, i.e. immutable types. .NET 6.0 even has record structs now, with automatic readonly.
I think you should be able to do something similar to the webpack config that Vue ships would be to use https://github.com/igoradamenko/esbuild-plugin-alias and pass in a similar `runtimeCompiler` option to your build script.
We live in a world where any compelling title is accused of being clickbait.
It isn't unexpected perhaps, but still disappointing. Many want to turn times back to carefully curated content.

That isn't even a senseless wish when people of all ages use the internet, but that is a parenting issue and not solvable by censorship.
I've recently being helping a friend who is starting with Node.js, and I strongly recommended him (and anyone else getting started now) to use all `import` instead of `require`.

I would say it takes a bit more of work because the tutorials are normally written on commonJS (require), but otherwise it's just a different kind of work. Both of them have their peculiarities and issues, and CommonJS might also bite you big time. So if you have to choose, and both give you a bit of pain (for now), I'd suggest to choose the one that is more future-proof.

About the article on Esbuild and ESM vs CommonJS, some other personal notes:

- Node.js' `import` is more strict than frontend tools' `import`. You can do `import myfile from './myfile'` on the front-end but you need to specify the ".js" on the backend.

- You can no longer use __dirname with ES6 modules. That's a feature, and I found that I normally have enough control over where the script is run from that I just prefer write all relative paths instead of bothering shiming it.

- The Esbuild from the author is great and I use something similar for simpler projects and libraries I develop. However for making WebApps, I prefer to also have Hot Module Reload. It's like Prettier, at the beginning it feels unnatural and overbearing, but after you get used to it you realize what a huge order of improvement it is vs the way you were used to.
> It's kind of more akin to ownering a limited edition print.

It's more like owning a receipt for a limited edition print. You have no rights to the print itself, but you do have distributed proof that you paid for a receipt with a URL that references said print.

With the added downside that you have no control over what the URL will point to in the future.
Pretty sure you will be able to opt out via group policy. If you control your network so hard that you can accept CSRF, it even makes sense. But would you swear that none of your smart devices are terribly insecure and incapable of even updating at all? You’ll have my utmost admiration if you can.
Obviosly you are trying to take something that is not yours.

Getting a five finger discount to get (unilaterally) open relationship at a cost of regular one.
Not only those things aren't gated, they are the modern APIs on Windows since Longhorn, they are only irrelevant if you are stuck on Windows XP.
> As a resident of France

Yet your keyboard layout does not allow to type the characters needed for all the languages of France. For example, in Catalan we need "í". Unless you add all possible combinations of accent+letter, the asymmetry between the characters that are already composed and the ones that need AltGR is annoying.

I write regularly in many languages, mostly French, and I hate the AZERTY layout, mainly due to it having (some) already composed accented characters.
I like the idea, but as someone who might use this type of tool, you need to say somewhere fairly early on that there is a way for me to download my "paper" and host it myself.

I'd never start putting significant work into writing a paper, or book, on a platform which might close and take all my work & animations with it.
Addressed in TFA:

> But I stopped using those tools and went back to my old <script src="script.js"> system because I don’t understand what those vue-cli-service and vite are doing and I didn’t feel confident that I could fix them when they break. So I’d rather stick to a setup that I actually understand.
I don't understand the point of vite. I tried using it and the "build" took over 30 seconds. esbuilds takes less than 1 second for the same project.

> esbuild is not featureful enough for a lot of production use cases

What makes you say that? I keep hearing people say this, but I haven't run into any problem that make esbuild not ready for production.
> In the 1950s, the average house was still ~3 years of average income.

Today you'd be lucky if that's 10 years; most likely very well paid too. For most people with well-paid jobs it's 15, and for everybody else it's a lifetime endeavour (20-30).

Not sure how you're contradicting me exactly with this.

I guess we are both showing bias and filter bubble effects. I live in a poor country and even if I am not poor myself, how almost everybody around me lives is sadly too visible.
Introverts handle social events perfectly well. Being an introvert means you find social situations incredibly tiring and need to spend time alone to recover; it doesn't mean you don't engage with them when you're there. The book "Quiet" by Susan Cains is a very good explanation of how introverts, extroverts and ambiverts work on a psychological basis.

If you find social situations difficult then you're probably just anti-social. I don't mean that as an insult, simply as a statement of fact. Some people don't enjoy socializing, especially in a 'work' context. If that's you then either don't do it, or learn how to do it better. It's a skill like any other. Join groups that are designed to improve your social skills. Believe it or not, there are courses you can buy about getting better at networking.

But remember that introverts can enjoy a party, and socializing, as much as anyone else. They just need time on their own to recover afterwards. Just as extroverts need a party to recover from time on their own.
Totally irrelevant and no Ad Hominem please.

FYI, D.L.Parnas and Barry Boehm defined the field of Software Engineering. Almost all Govt./DoD standards are based on their research and writings.
This may become very useful! I will definitely check it out.
Out of curiosity, have you also tried moving your hand and using the whole keyboard in a hunt-and-peck-ish manner? Or was the mirroring thing your first go-to option? Because I can't imagine something like that being my first go-to option.
Yeah, like in the bitcoin one it's a bit too much - like if I am reading at a normal rate the diagrams are just freaking out to the right.

And I would normally scroll to the full next page rather than scroll to each paragraph, which also then means you skip the animations.

Also the text is really weirdly formatted in the bitcoin paper - like lots of paragraphs that are only half a sentence.

Also a lot of the diagrams don't mean much, like the bitcoin one has "1 CPU is 1 vote" in the text, and then the diagram is an image of a CPU and an arrow to some text that says 1 vote. For me, the diagrams are supposed to add something, and this just says the same thing twice.

Apologies if this is a bit critical as the tool looks like a lot of thought has gone into it, but the examples given don't give me a good reading experience in the style that I personally read. For examples of this done well, there is this site: https://distill.pub/2020/communicating-with-interactive-arti... but the common thread here is that the diagrams and images add to the text rather than repeat it.
I like GNOME 3.

Stuck with the need to install an OS, a somewhat terrible internet connection, and a desire to avoid as much of anything that was unnecessary as possible, I downloaded the minimum install of Ubuntu [1] which at less than 50MB seemed perfect.

It turned out a window manager was not included, so I opted for Gnome 3. Previously I'd mainly been Gnome 2 and occasionally KDE. Nothing particularly Ubuntu flavourful added. It was different. It was quite easy to work with but did not have the feel a familiar piece of clothing, for all it's worts and ripped seams and buttons and button holes in slightly ill-fitting place at least they were in a known ill-fitting place.

There were now no button holes. I found my workflow had significantly changed to focus on one and only one application while open, these apps mainly being Sublime Text, and Firefox, plus a Terminal, all themselves tabbed, and email / office uses focused at a different time. This is in contrast where I'd previously switch more. I also mainly only use one monitor on a laptop, second monitor replaced by a projector for video or 'thinking'. Using KDE or Windows today is a 'noisy' experience.

Some small changes adapted from default, which I think only enhance this one-thing-at-a-screen workflow, are plank and albert. Would this have been possible before? Sure. Window managers are what you make them. This being the default forced me into a new paradigm that I like, so thanks Gnome people for that.
Why would you disallow a powerful and useful language feature?

It's better to be practical than dogmatic.
That was the glory of the good ole Gannt Chart in what I might call Microsoft Project Based Project Management.

If you set your dependencies right, the dates would just slip by themselves, and it was easy to tell the bosses what slipped. Required a lot of printing and taping every week, and caused a ton of headache whenever people lied about their progress, and didn’t really work without a FTE project manager, but I have yet to see a supposedly better system actually work better on big projects.
So in Java we know a few things about the stack that are not true for other languages. We know nothing on the stack is a pointer into a Java stack frame, and nothing on the heap points into a Java stack frame. These facts allow us to mount virtual threads onto carrier threads by copying portions of the stack to and from the heap. This is normally less memory than you’d expect because although you might have a pretty deep stack most of the work will happen in just a few stack frames, so the rest can be left on the heap until the stack unwinds to that point.

The big advantage of this over CSP is that you can take existing blocking code and run it on a virtual thread and get all the advantages, there is no function colouring limiting what you can call (give or take a couple of restrictions related to calling native code).
Fixed, thanks for the feedback!
My perspective is from the Banks, manufacturing companies, telephone companies, places that decided to call up IBM or Accenture (they already existed in 1990's).
All the hardware we have now would just get more valuable, and better cared for as it became rarer. Laptops can run for almost a working day on a charge now, so you don't need reliable power 24x7 to use them, only occasional power.
At least on Linux Swiss Standard layout you'll get all of those if you know the right keys. You basically choose the accent, then the letter and get what you want.

I wasn't even aware that this seems to be a common problem in other layouts / oses
> instead of hand rolling your build commands and configs, just use Vite[1] already.

For greenfield projects? Certainly. For existing projects? Oh, you're in for a world of pain.

I'm all for breaking with the old and ushering the new era in, but there should be an upgrade path for as many possible combinations of the old as possible.

As luck would have it I decided to convert our project to vite to see if it's feasible.

So far it's:

- Absolute imports don't work and are broken in any number of subtle ways

We use typescript with a setup that resolves `/our-stuff` to `./src`.

Also this is served from `http://our-server/our-stuff` because we're a part of a larger app.

Good luck making this work with vite. Somehow it insists that you should replace all absolute imports with `/@/` and setup an alias for that. All other options (like using vite-tsconfig-paths) will not work because vite's `base` config will break this.

I "solved" it by listing all directories in `src` and converting them into vite aliases.

- Now I'm stuck with `[vite] Internal server error: failed to resolve "extends":"../../tsconfig.json" in <some-path>/mui-theme/tsconfig.json`

How to fix it? Hell if I know.

At this point I'm just giving up, and looking into how to maybe upgrade to webpack 5.
I don't think that was an option. Kernel size limitations prevented Blender from ever supporting OpenCL well. Not to mention Apple dropping official support for it years ago.
When it comes to abortion law it seems dependent upon state,
An extreme example right now is TX.
(I think that will be overturned soon but it is still there for now.)

For the rest of the states some are some are not.

States
https://www.guttmacher.org/state-policy/explore/overview-abo...

vs

Norway
https://lovdata.no/dokument/NL/lov/1975-06-13-50

For immigration, the US has much higher figured if you add it all together. US also offers many more way to move there.

If you look at asylum however the US takes in 0.02% per population per year. Whereas Norway has taken over 0.7% per year.

The US population is made up of 14% vs Norway at 15% immigrants
The immigrant population in Norway is far more diverse than it is to the US.

https://www.faktisk.no/artikler/z4nyj/norge-er-et-av-landene...
https://en.wikipedia.org/wiki/Immigration_to_the_United_Stat...
https://www.faktisk.no/artikler/z4nyj/norge-er-et-av-landene...
https://www.imdi.no/tall-og-statistikk/

Minimum wage is true, in that the US has one and Norway does not.
However the negotiated wages between the unions and the business sector have been "almengjøring" which means they dictate what wages need to be, even when the company you work for is not a direct part and even if you as an employee do not belong to a union.
That is backed by Norwegian law

This is per sector. Most sectors now have it
Some dont.
Where it does exist, it is far higher than the US minimum wage.
You cannot live on minimum wage in the US.
So it is below what is reasonable and humane.

A big problem is in the construction business were the builders love to hire Eastern European migrants for a lot less than what the law dictators. This is illegal but very common

As far as taxation goes I dont have time right now to really dig into it. I know I pay about 42% taxes on my income.
25% VAT on most things, but there are exceptions, for healthy food and many other things.

I paid a lot less in the US :)
Such statistics are misleading and it's a pet peeve when they are pulled out in discussions. You can't predict a child's outcome so simply. Both Obama and Clinton were raised by single parents. Such statistics are only on average. Yet so many conservatives use these kinds of statistics to shame and guilt single parents, and try to justify policies of discrimination against non traditional family structures.
I don't use Twitter these days. It has become too commercial, so to speak. If you really want a progressive platform, try to look at Spotify. It has a big potential. You can boost your start by using https://spotistar.com/ intellectual marketing for your account. It will help you to gain natural views afterwards too.
>Mainstream consumers have zero interest in curating content.

The very fact that some people often do it for free when the value is mostly captured and extracted by mainstream corporations suggests otherwise.

Those same corporations have a strong preference for passivity, exhibited by their preference for the term "consumer".

I thought the most hilarious demonstration of this tendency to try and train users in to passivity was exhibited by the flamboyant VC-inspired suicide of Digg.
Python: Please stop screwing over Linux distros
People tend to think migrating an application is all about rewriting the program itself. But actually rewriting is only a small fragment of efforts needed. For some large organizations the legacy code base is so large that it would be crazy to rewrite them in a different language in the first place. This does not event mention the effort to test or validate if the new application works as expected. Put those thing aside, building a new infrastructure with PC servers and hire/retrain the operations would almost much larger than anticipated by most of the people. After evaluating all the options, scale up/out with MFs would be the cheapest and most reliable solution to provide more capacity for a perfectly working application. IBM has done a decent job on keeping MF backward compatible. There are lots of core banking systems running S360 Assembly applications on latest MFs today, in comparison, COBOL is not that old at all.
Among other things: C++ on the GPU, with lots of common code between the two worlds.

It’s one of the core reasons why CUDA took off. You could adapt your code instead of a full rewrite, even mixing code within the same file. Types are checked at compile time too.
Tesla starts deploying Starlink internet at Supercharger stations
How to Optimize Your Team for Productivity
Any compelling title is by definition clickbait. Compelling you to click is what clickbait does.

A non-clickbait title simply and directly describes the thesis of the article. In this case, something like "Simulation of the Earth/Moon collision scenario in the novel Seveneves."
From memory (my last use of Android it was a long time ago!) it was a combination of two factors:

1) Android's system relied on icons appearing on the bar at the top of the screen (e.g. a mail icon for mail, or a message icon for a text, etc.) - which was both unintrusive, and very quick and practical to check. To check a message, you'd just pull down the menu from that bar, and you'd see your different notifications in more detail, most recent first, and a tap would take you to the app. It was a lovely holistic concept. In contrast, iOS has some aspects of this, but it's not holistic:

* Red dots on icons indicate waiting content, but don't reflect when the content is from (unless you're obsessed with clearing all of your red dots - which would be a problem in itself)

* The notification center offers a list of notifications, but it's not linked to a visual reminder - you have to remember to check it.

* The notification center is shown on the lock screen, but IME it's buggy, not always responsive, and sometimes disappears confusingly.

* There are also banners which pop up (and there used to be alerts?) but these aren't connected with the other approaches.

TL;DR: Android had a single holistic approach; iOS has a variety of apparently unrelated approaches.

2) When you're using your phone or computer (it happens on MacOS too) many of Apple's notifications distract you and demand your attention or action. This would include banners which hang around obstructing part of your screen and need a swipe to remove them, or alerts which must be interacted with before you can do anything else. I find this a fundamentally user-unfriendly paradigm.
Huh, I feel somewhat old: https://github.com/AlDanial/cloc
Beyond 10×
An announcement that you are going private is a corporate action and triggers an adjustment of the warrant.

> the announcement
by the Issuer of any intention to enter into a Merger Event or Tender Offer

As to the validity of a tweet being a public statement: prior art is Tesla themself

> In a Form 8-K filed on November 5, 2013, Tesla had
identified Mr. Musk’s personal Twitter account as a source of material public information about
the company and encouraged investors to review that account.

The adjustments happened both ways, for the announcement of going private and them abandoning going private.
Before We Go Blog
> 3. Searchable Apps that only search Apps

macOS' Launchpad (the Gnome-like fullscreen app matrix thingy) allows you to only search apps, unlike Spotlight (the general search thingy).
We all know how this ended in Brazil. Buying land and managing it as private reserves, Wildlife Trust style, would produce much better results.
Before We Go Blog is a collective of Fantasy, Sci-Fi and Graphic Novel fans from around the world, passionate about providing awesome, enjoyable reviews for anyone who loves a good book!
Let's Encrypt needs internet access, something I prefer not to have for various (rather dated) systems on my network. Worse several things that ran on file:// in the past have been blocked by most browsers so even having to set up a server that then needs a valid cert is a painful complication over just clicking index.html and letting the browser handle every request locally.
Inverted pyramid, I think I remember it being called when I was in school. I even remember some newspaper articles that clearly followed the principle. They are very rare now.
You all somehow always make happiness about "just be happy, man". No offense to you or the other commenters, I simply can't take people like that seriously, hard as I try.

If the advice is more nuanced and has more details, then I absolutely can respect it and engage with it in an interesting discussion. But when it's framed as "live in the moment" then I can only roll my eyes.
It's not like they're sending up a new satellite just to blow up...

From Wikipedia:

> Kosmos 1408 was a Soviet Union ELINT (Electronic and Signals Intelligence) satellite launched into low Earth orbit on 16 September 1982. It replaced Kosmos 1378.

> On 15 November 2021, it was destroyed during an anti-satellite weapons test, resulting in over 1500 pieces of debris that subsequently risked collision with the International Space Station (ISS).

I'd say this is not that much different from something like Operation Crossroads where a bunch of decommissioned (old & captured) warships are blown up to "test what would happen if you nuked a warship"...
Do you have any information on how to do this? I've done a quick search but I wasn't able to find any relevant results.

EDIT: think I found it https://github.com/webpack-contrib/terser-webpack-plugin

Unfortunately, my project is still on webpack v4 so I cannot use this until I update.
1632 by Eric Flint (2000)