skysight-inc/HackerNews huggingface dataset:
Ive been writing compiler in C# and I dont see anything fancy here except union type

Ive personally decided to avoid visitor pattern bloat and Im waiting for closed enum feature in order to have compile time exhaustive check
My web client was behaving waaay better than my desktop client on this issue.
Where can I read more about Japan's experience at that time?
Good one but I want it to tune the DB automatically depending on the server configuration and the load.
maybe a better anology would be using the wrong tool to get something done. like you could use a high quality hammer to hammer a high quality screw into two pieces of wood, and it would probably hold them together, but you shouldn't.
you could build an entire SPA in pure JavaScript...
Micro? really? a 11MB binary?
They lost because they were ahead of their times -- the rest of the web tech were way behind and the best one could do was to put a canvas and render real interactive content there. In the meanwhile, web tech has improved considerably so now you don't have to manually render to a canvas, the DOM is expressive enough for many things, so integrating with JS instead of wholesale replacing it makes much more sense. But besides starting from a clean slate, escaping a few historical warts (e.g. 32bit types would not have that big of a support in a newly planned JVM simply due to hardware advancements), there is nothing significantly better or novel about it, in my opinion -- maybe with the exception of its history: it being closely related to asm.js is imo a very interesting tidbit.
>compiler can't prove the above code is exhaustive because no proper sum types

Thats because c#s enum is not "closed"

https://github.com/dotnet/csharplang/issues/3179
> Suse turning to the dark side

... because they are not going to be publically traded?? In that case Debian has been on the dark side forever.
Very cool - I assume most of the data is gathered through scraping? Quite a few of the sources you're pulling from don't look like they have APIs available.
The fallacy here is assuming this is a necessary trade off. You can have good single threaded performance without a GIL. Rust has this notion of zero cost abstractions. It does Threads just fine. Java does single threaded stuff just fine as well. Lots of other languages do. This is not science fiction. The locking gets optimized away. Or you can choose to have code without locks at all. Or fine-grained/structured concurrency. Something being thread safe or not is basically just an API contract. And of course optimistic locking is also a thing. There are no good reasons why python wouldn't be able to do similar things. But you need to get rid of the GIL first.

A lot of the performance reduction in python without the Gil is basically just unaddressed technical debt. That should be fixable over time. Adding a lot of locks is a stop gap solution. That indeed makes things slower. But the proper fix is probably rethinking how that stuff works internally in a lot of places or having API contracts that document the thread safety or lack thereof.

And also having faster python runtimes and compilers actually enables re-implementing a lot of things that currently depend on native libraries in python. A lot of native code interactions are precisely where you need locks. Unless you change how that works. The point of removing the GIL is getting systematic about finding and fixing those things. It will get better over time.
I want to see python with automatic and transparent concurrency.

Ie. The programmer writes:

for file in glob.glob('*.jpg'):
data.append(load_file(file))

Then python itself parallelizes that work. It should do that by identifying loops of pure functions and pushing them off to other threads. One should also be able to mark a function as pure. Python itself would be responsible for making everything appear as if the code ran serially - for example by buffering/reordering log statements.

Rationale: Python is designed to be easy and simple. Concurrency in general is not that. Python should do only do concurrency in a way that can be made easy and simple.
Emulating the 6502 CPU in C++ (2021) [video]
Hey HN Community,

Founder here, ask me anything
Try it, I was once invited to a club I wasn't interested in going to, so I got a fancy haircut and dressed up for the occasion. I got to experience a bit of what it's like to be a celebrity, with people approaching me, buying me drinks and inviting me places, and more...

I've since then done something similar a couple of times, it's like being in Quantum Leap.
I agree with pretty much everything you said. I'm trying to convince my own aging parents to downsize. They're already running into physical issues getting around their house, let alone trying to keep it clean, organized, and maintained.
Indeed. I haven't checked the implementation, but I suspect that "don't spin up a separate process for every file" is an idea that has probably already occurred to them :D
> employees commute from France

What does this imply?
>Also, HDMI seems to lag DisplayPort capabilities when it comes to higher resolutions and refresh rates.

I think that one very much depends on when you chose to look at it. HDMI 2.1 has more bandwidth than DisplayPort 1.4, enough to do 4k@120 which DP1.4 wouldn't be able to do it without dropping color down to 4:2:0. DisplayPort 2.0 devices are starting to come out, but even Nvidia's RTX 4000 series still do not have DisplayPort 2.0 (but do have HDMI 2.1). While TV started supporting HDMI 2.1 around 2019, with the PS5 and Xbox Series X having HDMI 2.1 ports.

So while DisplayPort may be ahead now with DisplayPort 2.0, HDMI was ahead for at least 4 years with HDMI 2.1
Bankruptcy is just you admitting to the court/gov you're not going to pay your creditors, and you're ready to face the legal consequence (like reconstruction).

They filed bankruptcy in Manhattan because they are not going to pay their creditors in the US. That's it.
Still, human history shows us that money always wins. People have natural instinct to acquire wealth. No political regime has remained viable for a long time if it tried to go against this instinct. Authoritarianism works fine; in fact i am even in a bit of doubt about democracy being the better social order, in any case our empirical data to confirm that is insufficient - but even authoritarian society should exploit, rather that try to suppress, this basic motivator of the people.

So far we can't see CCP making this mistake - which sort of confirms that Party has a healthy self-preservation instinct. Let's say, they are trying to do everything to avoid collapse of real estate prices because that will hit retirement savings of too many people, and they seem to accept lower rates of economic growth if that will be necessary to achieve that.
How does this make code easier to read and maintain? It all looks like gibberish to me.
Their problems always seem to look worse than it should be but functions better than expected.
And you know how to find out what you don't know

...that said, functional programming and the university level words associated with it intimidate me and quickly go over my head. Mainly because I haven't got a practical application for it, and they're more abstract concepts. A railway switch? Sure, I can understand that. A monad? What? Why are you making up words?

(tongue in cheek, I've had a stint of Scala so I can sort of apply some of these things in practice. I just don't have the vocabulary, educational background, or practical applications)
I can't tell you who they are as individuals, but I can tell you I bought a Starbook from them in late 2021 and I love it. No problems whatsoever with performance, stability, anything.

(No affiliation, although they do operate out of a barn within walking distance of my house!)
I used to love JOE! Maybe that's why, because it had echoes of WordStar. I just wrote an article about how I still use the "WordStar Diamond" keys in Linux today: https://benhoyt.com/writings/wordstar-diamond/
Visualizing U.S. Wealth by Generation
Haskell vs. Zombies
China has been tipped to fail any time now for the last 25 years. They have long term issues but they will play out over long term results. A whimper rather than a boom!
But why, what argument can you make in favor of protecting children that doesn't hold up for adults (why wouldn't it)?
I've been to a stadium concert with a similar doughnut layout and the main problem was that at all times at least half the audience is looking at a band member's back, not their face. You get some connection by being close but that doesn't last when they walk over to the other side of the stage. For what connection you can get in a stadium gig I prefer to see people's front, plus a big screen, not the musicians' backs just a bit closer.
Seems like a really modern alternative to my 389K nano.
I'm not even sure that he is a drummer -- that is, someone who has a passion for the instrument and devotes a significant part of his life to improving his technique and skill set.
It is not even up for debate that his playing has deteriorated over the decades. His on-stage blunders would be embarrassing even in a high school band.

I think he just stopped caring at some point, being satisfied with his success and never practicing.
I've been using micro as my main code editor(well I do use vscode for writing coq but that's the only exception) after 10+ years' time with emacs. I simply treat micro as the modern compromised version of acme. It almost has all the features to support the core idea of acme, I have written a plugin to exploit this direction: https://github.com/xxuejie/micro-acme So far it has been working perfectly for me.
I had been monitoring that Intel N200, periodically checking news about low consumption chips:

Jan 2023 ; 0.01µ tech ; cache 384 2048 6144 kb ; 6W TDP ; 4 cores and threads

Previously used ( https://browser.geekbench.com/v5/cpu/search?page=2&q=Intel+n... ) in some "Google Nissa" (could not find further details about what it is), "Micro-Star ADL-N Cubi N MS-B0A9" minicomputer, "Asus MiniPc PN42", "Lenovo IdeaPad 82XB"...

With a 38Wh battery, 12 hours seem optimistic but achievable under many conditions of power economy.
Leaving aside that there is no such thing as a skill shortage or work ethic concern in a free market... TSMC should have done their research and priced this in. They've taken the subsidy deal, now they need to get on and make it work. That's business.
My friends say that he’s not a good drummer. They don’t play for Metallica though and I wish they were a bit more humble.

Also most of them are software engineers and I don’t think they would like to know what I think of their code and documentation.
Comparing Marx to Hitler is just...wrong.
To piggyback on this suggestion, I'd also recommend This Machine Kills
I think the vim keybinding are the one I have used in the last 35 years.
I mean economic crashes rarely cause a country to "die", but it will have a major setback in its economy and the individual people will suffer, if they aren't already. I mean I know lots of people are suffering in the west as well, despite there being plenty of jobs available and the economy being very good.
One might think this would have emerged from some university-level fab already !
Safe destructuring could be achieved with Church encoding.
Laziness (in Haskell) – Is it good? [video]
> that's why we call it terrorism.

Is tree spiking an act of violence directed to someone personally?

You clearly say "yes."

> spiking is done because loggers can get killed sawing down a spiked tree. Sounds violent to me.

Yet earlier you said ExxonMobil has not committed any form of violence in its contribution to CO2 emissions "because there is no proof that CO2 emissions are a direct lethal threat to you personally."

Have tree spikers made a direct lethal threat to you personally? I assume not, so either they are not violent or your mean "you personally" in the more wider sense of "someone personally."

Have all tree spikers personally threatened someone? I'm sure some have, but your view requires that all tree spikers personally threaten someone, and I know that's not true of all tree spikers.

You write "loggers", but that's not a direct personal threat but a career threat. People are not intrinsically loggers who must cut down trees. They could decide to stop being loggers and do something else, though emotional and financial reasons make that a difficult choice.

I'm a swimmer. If I get ill from swimming in polluted waters, who is at fault - me for swimming in waters I know are increasingly dangerous, or the polluter knowingly dumping dangerous materials into the water?

Does the polluter commit a violent act by continuing to pollute the waters knowing that swimmers and those who must drink the water, or live off of fish caught in those waters, are very likely to suffer as a result, even if the polluter isn't personally threatening anyone?

Your answer to that seems to be "no", yet I can't discern a difference between that and violence you see in tree spiking. Both lead to death and injury, but one is called "violence" and "terrorism" while deaths from the other are .. what .. the cost of doing business?

> you've been claiming violence like "polluting" justifies violence

I've never said disproportionate violence is justified like you claim I did. I started off by talking about just war theory, as an example of logical justifications for when it is okay to use violence to prevent future violence. I believe violence may be justified to prevent future harm, even when that future harm is not due to violence.

For some reason, you do not, and I truly do not understand why, given that you are not a pure pacifist.

That some examples may be justifiable (to a non-pacifist like me) does not mean I think all examples are justifiable as you wrongly assume I must.
No. This is exactly wrong.

Pattern matching on ok tuple is awful because you will get a generic MatchError with an inscrutable message that requires reserialization of the exception struct and not a more useful Error where you can have an informative Exception.message protocol implementation.

> All functions that can fail should return a tuple. For convenience, one might also add a ! version that raises.

This is absolutely good advice for library writers. But if you're using a library, most of the time, use the raising version.
Wow, the giant beach balls are just horrible.
>Stick to signal or maybe WhatsApp

Or Session?
PICO is the PIne COmposer -- the editor that came with PINE, the e-mail client.
True for the IP addresses
They do have a feature for access logs to your account though.
Maybe its because of that?
Essential F# (Free Book)
> What does a try expression like this do? Returns null/undefined on a throw?

If an exception is caught, the expression evaluates to what the catch block evaluates to. (Similar to having if/else be an expression). Of course if the exception isn't caught then it propagates so the expression doesn't take a value.
I have been a Linux nerd for over two decades, but I never managed to grok vi, it just seems unintuitive. I found Emacs more attractive, and when I ssh into a low-powered device like a router running OpenWRT, Emacs isn’t available so I use the editor that is available and seems intuitive: Nano. (Yes, I know I could also use Emacs with TRAMP, but everyone establishes their own personal workflow.)

This comment isn't meant to knock vi. Obviously it has its fans. But the inability of some hackers to feel comfortable with it is a well-known phenomenon.
It looks like the 1.5 C limit has already been missed. Even this year, we are nudging up against hitting it, and even if we stop CO2 emissions today, temperatures will probably continue to rise for hundreds of years.
Patch submitted to the Linux kernel by a four-year-old girl
Career advice for young system programmers
I don’t think that’s a fair judgement. Sure, from the outside the decision to ignore medical advice seems crazy, but in the end it was his decision and he paid for it. Would a billion rounds of chemo have saved him? Maybe, but it’s also likely he would have ended up in the same spot anyways. We are all human, and doctors are just humans that are more well informed about the subject than others but are still human, and in the end it’s all just an experiment to see if this works better than that or that.
So I think the lesson should be, if you get cancer then you should be able to finish your days, in your own way if you decide.
486? Ha! I remember getting my hands on a TP copy in late 80s early 90s, first version I had fit on a 720k floppy but the second one did not (1.44), and I remember trimming it down to fit 720k because I had only a 640kiB 80c88 with two 3.5" 720k drives and no hard disk. It was plenty fast already!

Then I got a 1MiB 286 Goupil G5 (with something like 20MiB HDD, I remember thinking that thing is so huge how am I ever going to fill that, which I never did) and a colour CRT, TP felt so blink and you miss it fast on that machine already, it must have been lightspeed on a 486!

I for the life of me can't remember if aforementioned versions were (resp.) 4.0 and 5.0 or 5.0 and 6.0 though. My hunch is on the latter but I'm really not sure. Last one I used was TP 7.something much later (early '00s)
Is Germany once again the sick man of Europe?
For real-time and large historical data, open source there's tdengine/questdb, commercial DolphinDB and kdb+. If you only need fast recent data and not large historical embedding is a good solution which means h2/duckdb/sqlite if open source, extremedb if commercial. I've benchmarked and ran applications on most these databases including running real-time analytics.
"Tesla supplier" aka "world’s largest battery manufacturing company" with about 1/3rd of all battery production.
Have you seen Metallica live? Lars is allllll over the place with his drumming, to the point where "live" recordings are heavily edited. Nothing wrong with the editing, but if you pull up some videos on youtube comparing fan recording and official release, you'll see how bad it is sometimes.
> The toughest task is convincing people around me to become eco friendly

It seems to me that is a losing strategy. Personally being environmentally concious is a way to keep back to the guilt, but not to change anything.

> It got be gov that could put an end to this madness

Right, which is why if enough people cared, and were willing to throw down their lives for the issue, we would have a generation of politically adept professionals. Yet, we are still waiting.
Yes. I know the history; the US is absolutely ruthless against friend and foe in keeping its hegemony. And it has a long history of having its natsec apparatus integrated into its largest corporations.

As for China "catching up":

1. China is indeed far far behind the US-controlled West if the criteria is purely Chinese designed and manufactured semiconductors using purely Chinese designed and manufactured equipment.

2. The extreme nature of the US semiconductor blockade has surprised even me (and I was kinda expecting the worst).

However:

3. China is developing along a path already throtten by Western companies; far easier than developing on the leading edge.

4. The Chinese market (plus Russia, Iran whoever is on the US shit list) is massive. It can sponsor a lot of technological development.

In the end there is no magic in tech.

Whatever company is at the top seemingly untouchable is there because of a "natural monopoly" created by massive fixed cost and little marginal cost. History is full of tech companies that were at one point dominant but no longer is: Digital, Microsoft, Intel, Google ...

The companies that are used as chokeholds today: NVDIA, ASML, TSMC will at one point join that list. In fact using them as chokeholds probably makes it happen faster.
I always board as soon as my group is called. It ensures that I have space next to me for my overhead luggage, and I can start settling in, sometimes going to sleep. Plus, I'm already uncomfortable at the airport, what's a little more discomfort on the plane?
> the architecture is just too power thirsty compared to ARM

Maybe the architecture, but not the products.

You can consume 3 watts on some Intel based laptops.
> no pattern matching/switch expressions

They're still waiting on the do expression proposal for that (https://github.com/tc39/proposal-do-expressions), which has been in the bikeshedding stage for the past five years.
Why not just say their born year instead of give a name for each generation (baby boomer, generation x,Y,Z)
Striking the Perfect Balance Between Working Life and Free Time
Embracing the Dance of Equilibrium: A Balanced Life Unveiled.

As one of us wanted our friday article to be less technical, we decided upon delving ourselves in work life balance. From there we wrote about how to discover keys to balanced work and personal joy.

Explore tips and insights for a fulfilling life. From self-care to mindfulness, let's craft a life that resonates with purpose and joy.

Read now (~25 minutes):
https://hoosat.fi/blog/article/Striking%20the%20Perfect%20Ba...
It can and you in fact either have to mark that you return that error when you use try, or you have to provide a default value in a catch block:

fn potentiallyErrorReturningFunc() !u64 {
...
}

const foo = potentiallyErrorReturningFunc() catch { 0 };

One notable difference to most other languages is it being a value only, basically a product type of return value XOR error. These error values get serialized into a number by the compiler that is unique, and on the type system level you deal with sets of these error values. Quite clever in case of a low-level system, in my opinion.
I'm using Debian Sid with KDE Plasma Wayland on an acer 2-in-1 laptop/tablet. It works fine, Firefox needs to be started in "wayland" mode. The on-screen keyboard could be better, but it does pop up predictably. Screen rotation just works.

edit:
Touch controls also work, including gestures. It has a pressure sensitive stylus, which also works OOB.
Note that this is a false statement. The cases such as this show that our encryption provides privacy by default: we are not able to provide any of the content stored encrypted on our servers to third-parties, even when presented with a data request we cannot legally contest. All we can provide is the limited data which we need to have anyway for the services to function.

You can learn more in our Privacy Policy (https://proton.me/legal/privacy), Threat model (https://proton.me/blog/protonmail-threat-model, available publicly since the beginning), and in this support article: https://proton.me/support/proton-mail-encryption-explained.

You can also see in the Transparency report that we contest all of the legal requests we have any legal ground to contest. We are also working on improving the Swiss privacy legislation (which is already one of the strictest in the world) further - we won a major court case in 2021: https://proton.me/blog/court-strengthens-email-privacy.
2 out of the 5 jobs I have had where without an interview. It was just about the people already knowing you and your skills. It worked out fine.
> as the government could use force to compel a company to hack it's own users.

Currently, in the USA, the most generally accepted view among legal scholars is that this is not legal for the government to do -- mainly because of a view that it's a particular form of compelled speech / forced labor which is unconstitutional for the government to compel.

It is, however, an avenue that the law enforcement community does occasionally investigate as a possible route to get what they want. There's no clear court ruling as no cases have gone that far.
I use micro as git commit/rebase editor. It's handy to be able to do multiline commit messages and interactive rebases without leaving the terminal.
> Which gives you an hour or two of battery life

Interesting, but that must be some bad configuration, something that must be fixed on that specific line of tablets. It is not necessary on Linux.