skysight-inc/HackerNews huggingface dataset:
Remember the early days of the “bend the curve” part of the pandemic? The US economy was switched off with nothing but crossed fingers ensuring it would turn back on when the switch was flipped back. Production was quite literally brought to near zero. Anyone who dared to hesitate was labeled an anti-science caveman. I hope someone somewhere wrote down how bad an idea that was.
It's not, but there is a 2-3s startup and shutdown delay, which I find too annoying for CLIs
I love asciiflow.com for creating these sort of pictures. I'm a firm believer that the closer your documentation is to your code the better maintained it will be.
This recent episode of the Macro n Cheese podcast is very instructive

https://realprogressives.org/podcast_episode/episode-173-inf...
> Everyone MUST buy a house

You can also inherit one, rent something or move where houses are cheaper. I'm not sure about the level of your irony so I clarify.
That seems like a lot of extra typing for the rest of our lives to prevent a one-time moment of confusion for newbies.
How sensitive demand is to changes in price depends on a lot of factors. When heating your home suddenly costs four times as much you can't just use a quarter of the gas, or you'll freeze. Given enough time of course, demand will go down as people improve insulation and switch to heat pumps, but on the scale of a year or two or three demand can't be reduced very much.
Or you can implement a binary search in your type's __contains__ and just use `"foo" in c`
> If the median rent costs double (or tripple, or more) the median income any discourse about how indivduals spend their money is not only pointless, it is cynical.

It obviously does not. The cost to purchase an entire house and the land it sits on is at that multiple or slightly more. The cost to merely use the median rental for a year is under the median income.
A problem with dictionary merge that doesn’t exist with sets is what to do with the values if you have a key in both dictionaries.

Do you keep the value on the left, the value on the right, error out, try merging the values (if so: how?), add a parameter allowing the user to make that choice, require the user to pass a lambda?

I don’t think there’s a ‘best’ answer here, but if you want to make one of them easier to write as a|b, you can only support one.
Ahh, one thing that people love about Latvia is the vast choice between different type of breads. You can get some very tasty, high quality stuff here. Sorry I don't know the proper names of different types of breads (rye, sweet/sour) and then for white bread, different tastes. Rye bread with garlic or fruits, with carrots. White bread based on kefir (if that is a word in English). Bread with different seeds. OR just plain tasty bread.

I wonder why rye bread and the sweet/sour one is nonexistent, for example, in Germany. But when someone comes here, he takes that bread with him :)
This person obviously has never had life catching up to him. My wife's parents where both diagnosed and died of cancer over an 8 year period. First my father in law had a brain tumor, went through extensive radiation an chemo therapy and when he was dying my mother in law was diagnosed with colon cancer. She also underwent extensive chemotherapy. Both were depressed during their sickness, never wanted to leave the house but where dependant on others to take care of them. Me and my wife were caretakers and simply did not have a choice to leave for the white sandy beaches whenever we wanted; thus this author's argument of "it's a choice" clearly does NOT apply.
The first two lines are setup, real code would already have done that.

You could maybe count the import, but you'd have to do that once and could do multiple bisections, so it's amortized.

Setting the variable doesn't count because you do, of course, need a variable to perform an operation on a variable. Sorting the array also wouldn't count because you can't use binary search if the array isn't sorted.
Ask HN: Donating to FLOSS Projects?
I depend a lot on FLOSS for my work (and personal life) and I am doing my tiny bit to contribute and I am doing some financial donations too. Especially for the work part I'm more and more starting to feel it's my duty to help out financially, we've all seen too many stories of underfunded FLOSS projects not having the capacity to fix crucial bugs causing severe security problems, or projects throwing in the towel leaving downstream projects stranded. Most (all?) of the companies I've worked with in my career depend heavily (completely?) on FLOSS to do their heavy lifting. A typical business application build upon FLOSS covers less that 1‰ of the entire deployed code base so some compensation for those hard working maintainers and developers would seem helpful.

Doing ad hoc donations as I do now doesn't feel very constructive to me so I'm considering to do (automatically) reoccurring donations to my favorite organisations and tools, which doesn't seem fair to the stuff I do depend on but don't have warm feelings for, but I gotta start some where, right? What projects and organisations are you and/or the company you work for supporting? Any tips?
Thanks for an awesome explanation. I always thought modern x86 uses IPI (Inter-Processor Interrupts) for that.

Is there a benefit of mwait vs IPI?
Strongly disagree with your conclusions. There are definitely arguments against exceptions in cases where you always want to understand and handle failure conditions, but Go has not got it right. The need to manually handle returned errors adds too much noise to the code, and in my subjective opinion, the code looks far cleaner when you skip the error checking. Additionally, if the manual error handling code isn't written, failures will generally be silent.

My example of error handling done right would be Rust's `Result<T, E>`. There's the ? operator for syntactic sugar to propagate errors upwards. Otherwise, to skip error handling, you're generally forced to unwrap() the result, which is a noticeable smell, and it will crash your program if the operation failed (as opposed to continuing despite the error). Finally, it maintains the error code advantage of keeping the control flow explicit and visible.

We've had decades of erroneous error handling from C codebases to learn from. Frankly, it's insane that we have a modern language that still uses error codes in essentially the same way.
1. I agree with you kinda.

2. Why did prices for pretty much everything go up the week, or two, after the media started talking about the war, supply chain problems, and government spending?

Prices were pretty steady during Covid, at least on food, and gas, and most consumer products, except building materials, and appliances.

I personally think corporations used the war, and Covid, to raise prices seemingly overnight. My Chevron station went from $4.29 to $6.25 in a day.

These companies made record profits during Covid, but poof in a couple of weeks just blew up their pricing?

I think they used found a few good excuses to raise prices; and they all fell in line.

Kinda like my $5.49 rebate on my $800/yr. insurance policy at the beginning of Covid. Mercury by the way, and they used to be fair.

Yea, I was uncomfortable with Powell throwing money at the stock market, and buying all those mortgage backed securities, when housing and the stock market thrived during Covid. His response was, 'I kept my agreement with the financial sector.'

Weird times for sure.
My friend tried to run 3 external monitors on his 2019 Intel 8-core 16" 32gb MacBook pro and it gets to melting temperature, throttles, and just sits there with a spinning beachball disc for most of the day. Lid closed, vertical cooling stand! Seriously.

My wife has a 16" MacBook pro 2019 with a pathetic 16GB of ram. When she connects a 4k 30hz Sony x800h tv to her MacBook (via HDMI dongle) it heats up terrifically and throttles down to about 1/10th speed and the mouse jumps across the screen and button pushes can take minutes. Her solution?
Avoid external monitors! Seriously.

I am able to use my 8-core 32gb 2019 MacBook pro with a 4k tcl s405 4ktv & HDMI dongle but it takes about 5 minutes each day to get it to sync to the dongle that never gave me problems with a 2018 MacBook pro. I had to change my calendar reminders to add minutes to the alarm first thing in the morning it's SO FLAKEY! Seriously.

So two out of three of us are enjoying external HDMI monitors with our MacBook pro 2019. But we aren't enjoying them very much!
Chorleywood has its place - "floppy white bread" as we call it. It's improved over the years, too. Chorleywood brown bread
is no longer the grey loft insulation of my childhood.

Nowadays, there's a much broader range of breads available. I have 2 excellent bakeries within walking distance and can get good quality sourdough from several supermarkets, including from Poilane in Paris to my door via Ocado.
I've done something different before:

// main.c
#include <module.c>
int main() {
moduleFunction();
}

// module.c
#include <stdio.h>
void moduleFunction() {
printf("calling modules");
}

This has its issues (you can't do parallel compilation anymore; you don't have unexported functions, etc), but it works fine for small things. Super helpful when I want to make a small thing and don't want to bother with headers.

You just include all the C files in one file and be done with it.
* yours not you’re. Thanks, Siri
Wikipedia: "On 17 August 1998, the Russian government ... declared a moratorium on repayment of foreign debt."

Unilaterally declaring a moratorium may be considered a default event, but ultimately it depends on what exact definition you're using. Wikipedia doesn't say how the rating agencies treated that event, their collective view is usually seen as authoritative in such situations. If you have a copy of This time is different on sovereign debt crises by Harvard economists Carmen Reinhart and Kenneth Rogoff lying around, you could check how they classified this event (my hinge is that they'd count it as one).

I agree, it's a strange to borderline misleading headline, especially if the article fails to discuss the technicalities of this moratorium.

PS: I'd argue that 1998 was in some sense "more" of a default than this, because defaults are usually related to the borrower being unwilling or unable to pay, which was the case in 1998. Forcing a solvent and willing party into missing a payment by closing their bank accounts is really a bit of a different story.
There are several things on that list that I would not regard as “fair to any reasonable mind”.
> What evidence do you have that campaign promises to end fossil fuels caused an increase in oil prices.

If you create policy that deter investment in fossil fuels, and reduce production, would you expect prices to go up or down? And if you don't create policy to deter investment and reduce production, then how will you end fossil fuels?

Maybe a better question to ask is, do you think there is any way to end fossil fuels other than having it be more expensive than alternatives?

Why would the government resume leasing for oil and gas drilling on federal lands if they don't think stopping it affected the supply [1]? Is it just because they really want to mess the climate up some more and break campaign promises?

[1]: https://www.nbcnews.com/politics/politics-news/biden-adminis...
Hi everyone,

We're building Heybase.io - Digital Sales Room Software that provides collaborative shared spaces where sellers can create personalized buyer experiences and communicate with potential buyers at a single digital location.

Sellers can Embed personalized sales collateral with Drag & Drop Editor, collaborate with buyers, and Analyze buyer engagement with Heybase.

We're offering 6-Months Free access of Heybase to our early users with unlimited sales rooms and users.
So you'll have $600 per year. Good luck buying housing on that budget.
Amen. Personal responsibility is the economic analogue of "thoughts and prayers" whenever a shooting occurs. (Note: conservatives don't actually even pray for anyone, because they're the Elect, and since they're already going to heaven while the rest of us fall into eternal hellfire, why bother?) Except: here it is on us to pray--to them. They won't listen. They'll just laugh.

Also:

* You're broke in 2030 with a machine learning degree -> you should have been born a robot.
But when the New Crusades begin again, guess who'll be the first to go!
> Exceptions are extremely confusing, I just can't wrap my head around them.

Interesting. For me it's very much the opposite. What about them do you find confusing?

> I don't even accept, philosophically speaking, the concept of exception: there are no "exceptions" when running a program [...]

I think you're looking at it wrong. Exceptions, as implemented in the languages I know, are more about having a framework of allowing inner/library code to drop the ball and run away screaming, without making more of a mess.
> Reading logs means grepping files over ssh.

Ah, happier times.
Granted, it is a bit complicated to figure out what it means to pledge to follow the "spirit" of a rule which includes the rule that anyone can choose not to follow it.

But you asked why I would not be able to commit to such a pledge. For me pledging is a kind of social contract (I don't belive in God, so its not between me and it), and I care quite alot that other people know that when I promise something it means something. So it becomes important that we, me and the people who care about the pledge, agree on what it means. If we all agree that it essentially means nothing, then fine, I pledge. But if it means something, what does it really mean?

It says "They [the founder of SQLite and all current developers] view The Rule as their promise to all SQLite users of how the developers are expected to behave". So the developers view it as a promise of how the developers are expected to behave. If I take the pledge, and start working there, am I breaking the pledge if I:

- Don't "[...] love the Lord God with my whole heart, my whole soul, and my whole strength."? [1]

- Don't love fasting. [13]

- Prefers cremation to burying. [17]

- Make people laugh [54-55]

etc etc, you probably get the point. There are a lot of rules, and they can all be interpreted. It is kind of hard to be certain that we all agree on what it actually means to pledge to follow the spirit of these 72 rules.

So, that is why I find it hard to commit to the pledge.

Now, I agree with you that is says that "No one is required to follow The Rule". But it also says that "They view The Rule as their promise to all SQLite users of how the developers are expected to behave". So, it very much says that the founder of SQLite (part of "They") promise SQLite users that he expect SQLlite developers to follow "the code". Maybe, because of the "No one is required to follow The Rule", that means essentially nothing. Or maybe it means something. IDK.
But why do you think you HAVE to use every new bell and whistle that comes with a new release? It seems like a stressful way to live
Actually Blade Runner is actually pretty much it's own music genre. Hop onto Bandcamp, and you'll find a lot of indie electronic artists (mostly German as far as I can tell) making music that sounds like Vangelis' Blade Runner synth stuff (less so for the non synth stuff).

- https://the-rosen-corporation.bandcamp.com/album/neon-lovers

- https://christopheleusiau.bandcamp.com/album/a-tribute-to-bl...

- https://ogresound.bandcamp.com/album/off-world

- https://siddharthabarnhoorn.bandcamp.com/album/tears-in-the-...

- https://breather1.bandcamp.com/album/the-noodle-bar
There is a distinct difference between earlier Trek's optimistic liberal humanism, and modern Trek's shrillness about specific political issues of the day.

>Picard is literally known for lengthy preachy monologues about how people should be.

His two notable TNG monologues are in

* "Measure of a Man", about freedom for sentient life.

* "The First Duty", about telling the truth no matter what.
DIY smart haptic input knob
Katherine J. Wu did not hold back in roasting the poor frog, Yet did complete justice to the research as well. I appreciate her & The Atlantic for publishing this piece.
It's an example ffs. If that's your criticism of what I wrote, it doesn't really make sense, everyone can personally decide how much they want to spend on avoidable luxuries.

But btw, $50 a month means $50 extra you can spend on mortgage payments, which can actually add a couple of thousand dollars to your budget potentially.
Basically any dutch snack bar that's not an American brand is going to have an automat. It's such a good format, while you're waiting for your fries to get made you can pull a snack from the automat. I'm honestly kinda baffled why McDonalds hasn't gotten in on this, it's a near perfect fit.

Just imagine getting a big mac in seconds instead of minutes.
According to the default propaganda model of our society the solution is hard work and taking personal responsibility.

According to the investment/FIRE communities and Thomas Piketty's study, yea, you're better off siphoning off taking the fruits of others' work via "the magic of compounding".
For some reason the arrow ▶ is a double-width character on my PC so it breaks.

I'm using Noto Sans Mono as monospace font. Broken with Iosevka as well, works with Dejavu Sans Mono.

That said, it's pretty cool, bookmarked.

EDIT: weird now I'm looking at my comment from an iPhone and the arrow is rendered with the arrow emoji. Have I found an exploit to embed emojis in HN comments?!
A lot of the problems with the franchise is the same what the HN crowd sees all around with software development, hardware - with the digital boom of the 2000s, stakeholders see the possibility and sudden need to cater to EVERYONE. Who had the screenwriters in mind when writing scripts in 1989 or 1995? A wide enough geek minority that keeps the show afloat with healthy constant viewer numbers. Now they need to cater to the general population, and constantly seek ways to expand the crowd.
If you're not buying lattes to compete for the same pool of available houses (and other people are doing that), you are absolutely ruin your economy by starving it for cash

I wish it were that easy to grind this economy to a halt, but it doesn't really work that way. Consumer shortfalls cause hiccups in the system, but the ruling class is still making steady progress on its mission to reduce the rest of us to generational peonage. You can boycott Black Friday, but so long as you have to show up for work to survive, the bad guys are going to keep winning.
> I never understood how people consider go an alternative to python.

I work in both Python and Go. I love both languages. Here are a few reasons why I chose Go over Python for a lot of things these days:

Alot faster, self-contained executables instead of virtualenv, scales natively, no GIL, linear code in goroutines instead of asyncio.
> The cost to purchase an entire house and the land it sits on is at that multiple or slightly more.

Where is this magical place?
Yes (and very good comment), but will it still be the answer in 2050?

Basically, these things look anti-inductive.
True, but the 80-year old is guaranteed to have lived that many years, while the 20-year old could die tomorrow...
The Hindenburg disaster actually shows how safe hydrogen is. Despite the enormous fire, the majority of persons on board survived, and this with 1930s' state of burn treatment. Unlike kerosene flames, hydrogen flames radiate little heat. Hydrogen does not stick to surfaces or people.
6502 does not have native mul and div
Oh absolutely! This has been a major annoyance in, mostly, superhero movies. The first movie they're growing up, maybe getting rid of a city's villain. The next movie they're saving the universe. (And in the third they're traveling back through time.)

Jesus, have some pacing.
I wrote this a few weeks back and thought that it might resonate with some of you here
Storming the Capitol makes you a criminal though, whether you're carrying a gun or not.
You can piece together the entire movie by watching clips on YouTube. I try out a lot of movies this way, but Total Recall is the one I loved the most. It's a whole different world.
We need one of those for the Church of Emacs. I bless your computer, my child!
Mine - MBP M1 Pro 14" + Eve Spectrum + Thunderbolt 4
I don't see how this would work, as people generally don't know how they got Monkeypox. Even if you somehow know that a sexual encounter was the cause of transmission, it doesn't follow that transmission occurred through a specifically sexual route (rather than just general close physical contact).

If such figures aren't being published, it isn't because of a conspiracy – it's just because no-one knows.
> Where does China and india sell its stuff to?

True, but this works in reverse as well. Where does the US/Europe get their stuff from?

Obviously western society won't collapse due to the lack of Chinese merchandise, but it will have a huge effect.
What does this mean? Not always, but most of the time neither supply nor demand is being fully used up, and both unmet supply and unmet demand are irrelevant.
If that’s the case, why do they adjust lending (mostly rates) in order to try to hit a moderate inflation target? Surely, they must believe there’s a linkage.
I guess you'd have to run it in a malware sandbox like Cuckoo.
man -s 7 capabilities

I’d like to see something like OpenBSD’s pledge/unveil.

These all work at the process level, though, not individual portions of code in a process.
Actually I think they are generally doing a pretty good job at keeping the inflation within a reasonable range, compared to other historic failures
AWS EC2 vs. Azure Virtual Machine vs. GCP Compute Engine
I give money to the lineageos project and boincstats
> When heating your home suddenly costs four times as much you can't just use a quarter of the gas, or you'll freeze.

Maybe this is an aside to you, but would you expect heating cost to increase or decrease if you are using fossil fuels for heating, and the government has promised to end fossil fuels?

I guess we can point all fingers to Putin, but decreasing the supply of fossil fuels seems to be an implicit campaign promise of the Biden administration, and he has the most popular administration in history, so I'm not sure why people are upset with paying more for heating and gas.
Yeah, it is pretty unworkable now, and Emacs uses an object serialization approach that still works pretty well, but there are other methods too. There is some OpenVZ-derived way to make process snapshots in Linux whose name I've forgotten, but I've been wanting to look into it for this.
Exactly. This watch was the Bored Ape NFT profile picture of its time. It shows you're rich and you're with / ahead of the current times. And in comparison to a bored ape, it cost less, could be taken to parties and other in-person social functions and you could even sneakily follow sports events during boring meetings.
No, we don't know what measurement is, and it's nothing to do with the fact we're hitting it with something, that's the observer effect. Heisenberg Uncertainty Principle is a fundamental property of reality, separate from "if we hit things they move"

I should repeat again: we still have no idea yet what exactly is a quantum measurement and what isn't, it's one of the great unsolved questions of physics
Same here. This baffles me.

Especially considered the obligatory compilation step and lack of IPython.