skysight-inc/HackerNews huggingface dataset:
Enums are fantastic. But they could be better!

One thing Rust could really use are anonymous unions (A | B |C instead of E::A(A), E::B(B), E::C(C)). They are to enums what tuple types are to structs.

Another thing that a new language designer might consider is a mechanism to control the layout. For example say I have a pair of nested enums

enum A {
A0(B),
...
A15(B),
}

enum B {
B0,
...
B15,
}

The outer enum A can be represented as `u8` where the upper nibble is the tag for `A` and the lower nibble is the value of `B`.

This is kind of a niche thing, but you see it in binary protocols from time to time and losing the ergonomics of enum/match because the enum can't represent your data without widening it is a shame.

Another problem that shows up is this

enum E {
A = 0
B = 1,
Rest(u8),
}

This can't be represented in 1 byte because `Rest` could be 0 or 1. There's no way to tell the compiler that the value of E::Rest is disjoint from any other values in the enum definition - the only way is to add `Rest1, Rest2, ...` variants for all possible values of the underlying data.

This problem crops up when you use the `zerocopy` crate.

And finally something that is super difficult to reason about (and has many implications) is storing the tag out-of-band of the enum data. I believe Zig can do this, but I'm not sure much how it works.

These are super minor gripes about using enums in Rust, but I feel like not enough discussion goes towards some of their limitations and tradeoffs, particularly for high performance applications.
Hidden ocean the source of carbon dioxide on Jupiter moon
I don’t follow the news at all because it’s 99% biased garbage and frequently not true and pollutes the mind. My life and mental health is significantly better for this. Nothing I read in the news would change how I vote, which is basically the best reason anyone could give for watching it.
> The first pattern is having multiple Load Balancers (per VPC); this is often the result of using several readily available Cloudformation templates / Terraform modules, or somehow using Kubernetes ingress controllers that create a Load Balancer for every service. This is fixed by not doing that! A single Load Balancer can handle many URLs and services.

This is the definition of cloud bloat. The fact there are tons of systems abusing that kind of architecture probably justifies charging for IPv4.
It was obvious this was coming down the pipeline in Amazon's streaming life cycle. Even before this, they were injecting their own original content adds (skippable) at the start of every movie/show. I would unsubscribe again if possible.
More discussion over here: https://news.ycombinator.com/item?id=37610500
>> If you buy a car

>That's a particularly amusing example to pick considering that _dealers_

Fyi... The gp you replied to specifically wrote about manufacturer as the example and not dealers when he wrote: "If you buy a car the _mfr_ is hardly inserting themselves"
Poland will deploy 6GW of new solar this year alone, which is comparable to 1GW of nuclear. So that is a nuclear reactor's worth of CO2 emissions reductions in just one year.
Shameless plug for Steam Remote Play: https://partner.steamgames.com/doc/features/remoteplay

Here's a case where there were no good alternatives (in linux) to remotely play latency free. Now, some prefer this method for remote desktop more than VNC.
New project: superba. Use AI to craft UI components. Open source and free
I liked lobste.rs but found they were too restrictive on topics.

I kind of like the hacker-adjacent discussions here (notebooks and journaling and reading and whatnot) and lobste.rs seems to block and remove that and there’s no outlet for that type of discussion.

I like they HN, for me, is 80% tech/startup/programming, 10% adjacent and interesting and 10% stuff I just go past.
I just did the same. I wanted to get something cheap-ish, but still feeling like a piano. Roland seems to the default choice, maybe with Yamaha being a close second.

I wound up buying a Roland FP-30X, but I think the FP-10 feels basically the same. When we visit friends who went for cheaper options, their keyboards feel like toys.
It’s a big scary number and the letters just break understanding.

There are some annoying operational issues around it as well, common one: DNS hostnames for devices that only do SLAAC
Ask HN: Something that you learnt and made you go Wow
Any concepts, videos, articles, books, movies, business that opened up a whole new world for you - something that you didn't know earlier or knew little of but then had this WOW / Ah-ha moment for you.
How about no-registration test accounts (test123, test1234, etc.) that are limited to 1 survey, 3-5 questions, for polling 1-3 people, and that expire in 3-7 days? This should be enough for people to see if they like it.
Adblockers are not a defense against this, as those results are genuine search results.

I run uBlock origin (of course), am extremely aware that geeksforgeeks exist and is utter shit, and yet I get fooled now and again, which makes me very angry at that website, Google, myself, and the world in general...
Private and they didn’t just grow for the sake of market cap or “because they can” until it’s a unwieldy behemoth
table stakes are much higher now. You'll find similar numbers and a similar winnowing out in PCs, from a time anyone could bang together a PC from standard parts. Michael Dell sold them out of his car trunk. That hasn't entirely disappeared but now it's a narrow space between gaming rig builders and big OEMs.

Phones will be even less forgiving of niche business models. If you can't design a titanium case, or try (and fail, and absorb the loss) to monopolize the supply of very large sapphire crystals, you can't play in phones.
Xfire is something that died a sad death. Used it to chat with many people I met playing Star Wars Galaxies and Empire at War - think it was actually bundled with that one.

The profile pages and screenshot uploads were fun too.

Another online community lost to the sands of time, alas.
I think it's more common to call them Grandma and Grandpa Lastname or Grandma Firstname and Grandpa Firstname. I've also seen it where one set of grandparents are Grandma and Grandpa and the other set is Nana and Papa or Mimi and Pop Pop or whatever set of less formal terms they use for the relations.

I'm not sure I've met anyone who doesn't have more familiar terms than dad's mom and mom's mom. They're probably out there, but not super common.
Looking at the screenshots, it reminds me of Guitar Hero / ROCK Band on like ultra hard mode, maybe?
> You should be using ReplacingMergeTree if you are doing updates at the current moment.

Indeed. Altinity and other community users like ContentSquare made numerous contributions to make it more usable. It's a promising approach to updates at scale and has improved markedly over the last few months.

That said you can't currently use RMT very efficiently in S3 because of overall limitations in MergeTree S3 table storage. We need to think about whether the improvements we're proposing will also enhance RMT. Thanks for bringing that up.
I think basically everything they did was great, maybe with the exception of Naked (which I should give another shot). What's great about the Talking Heads is that they grew and evolved. The only core essence is change.
A beginner's guide to neural mechanisms
Of course it exists, I described it in my comment. Look at this quote from wikipedia and compare it to my example of preparing for your parents to die:

> Unlike the general focus of creative visualization of inducing an imaginary positive psychological and physiologic response, negative visualization focuses on training the practitioner on the negative outcomes of realistic life scenarios to desensitize or create psychological fitness in preparation for real-life losses

Something existing and some people thinking it is a good idea doesn't mean it is. I'm not saying I'm right either, I'm sharing what I do and what I think. And what I think is that negative visualization is ridiculous. Live your life, bad things will happen anyway, why do you want to be sad in advance just to maybe be a little bit less sad later? I can't take this idea seriously, it's like someone who doesn't want to love for fear of getting a broken heart.
Yes, but hasn't "separate compression dictionary" been a core feature of Zstd since its inception, at least under that name?
Well, sure, but I don't think that's an unreasonable point of view. It's why it's a mistake to offer anything for free up front with the idea of monetizing it later. Doing that is a kind of bait-and-switch.

If monetization is in the plans, then that needs to be made clear from day 1. Don't offer it for free. Offer it for a stated price and waive the price as part of a trial or evaluation period instead.

It's about setting the right expectations from the very start.
The transition from horses to automobiles is a prime example of how protectionism can't halt technological progress. When cars first arrived, they faced stiff opposition, especially from the horse and carriage industry. Some countries even introduced protectionist policies, like high tariffs on imported cars or regulations favoring horse-drawn vehicles, to shield their traditional industries. In the end the end user will decide or better said they already did in regards of generative art.

The inevitable is that your industry will change and the distinction between what is an "Artist" and an "Operator" will change even more. If most of your clients come to you for the end product you are most likely an "Operator". ie. "Do X like I want it to be done." if you are an "Artist" clients come to you because you are either in the Zeitgeist or people like your way of thinking and the process behind your art. The end product is collaborative.

If you are an "Operator" you will have problems in the near future if you are an "Artist" you will be fine. It's like in VFX and the mark the writers strike made on the industry the "Aritsts" are all fine because the studios want to retain them and the "Operators" are left on the street.
You can buy a used bolt with maybe 20,000 miles on it for about $18k. If you're in certain counties in California you can get a couple of grand worth of incentives towards that.
So...is that just reddit with more domains? :)
Which backup tech is nuclear using during construction?
> steam was terrible when it came out

Do people really think this? I remember applying updates to CS before steam and it was awful. Steam streamlined that and gave us a much needed friends list. I never ever thought steam the application was a bad.
You can opt out of ads for an additional fee. I don’t want ads either. I’ll figure out which platforms I’ll pay the no-fee level and cut some. I do have a small password sharing friend group tho — the total costs of all the streaming networks we like is getting stupid.
Tracking saying this came from hn is not uncool it's slightly cool. It's a way to say all of these people are from that cool site hackernews. Uncool is browser fingerprinting, tracking mouse movements and forcing signups through gmail. uncool.
What is happening on tiktok worth spying on that isn't already collected through every other app on your phone?
agree on "well known" part.
also, it will depend on particulars, how the developement must be disclosed.

e.g. if vendor drops copy of public domain libtom into its git, changes it up a bit — is that still a separate dependency?
what if vendor goes "hey, siri, copilot gpt4, write me tls handshake implementation" and uses whatever is the resulting garbage, is that ok?
You can also check compatibility on protondb (https://www.protondb.com/)
The Zstd guy is employed by Facebook, so I'd suspect it's at least in part a NIH thing.
| This is an unsupported generalization. Command systems exist to mandate [...]

There it is. "Unsupported generalization", followed by your own generalization that amounts to the same. I did point it out above.
The "something" is a consolidation of federal power. The US is not a unitary state like most of the countries in Europe. The states hold a lot of power individually, and many want to maintain that as much as possible. The rules around identification are something that is significant to how people interact with their government and people do not want those rules to be decided federally when they can maintain that power locally instead.
Conversely, CSGO and DOTA 2 has facilitated real money gambling among the youth on third party sites for years. Valve has attempted to crack down on gambling sites, however it's still possible for a fourteen year old to insert credit card details and lose real money gambling for virtual skins.
I don't know why Linus is trying to write a new OS, we already have OSes. It's not like this Linux thing is going to go anywhere.
Using McMaster-Carr as a benchmark, lead sheet is a bit more expensive than the same size and thickness of 316 stainless sheet. One of these is extremely toxic and the other is pretty much harmless. (Also, 316 stainless won’t magically corrode if there’s condensation on it, and the Internet suggests this is a problem with lead.)

Sure, lead can be molded into place with traditional techniques if you can find a competent roofer with a sufficiently minimal desire for self-preservation. But modern standing seam roofs work pretty well.
Anti aliasing would be turned on / off, that's the difference
If they profit in a way that gives back to everyone else, that's pretty good as I see it. Even RMS wouldn't be against this idea (though he'd hate the proprietary binaries of games ofc).
Aviation Herald is, somewhat curiously, something like a HN for airplane related incidents:

https://avherald.com/
The "slaves" seem happy to work there. I mean they could stay home but prefer to work in Dubai. It's interesting how many immigrants work and live in Dubai.

The only complains I've heard are that you can't get citizenship.
What I like most is that people doing "funny" business are quickly deported. You don't see homeless people or beggers on the streets either.

I wonder, why Europe can't do that? I don't think there would be much push-back against migrants if we would have an efficient deportation system(i.e deport them after visa expiration or when they get involved in criminal activities).
Shot you an e-mail :)
What? Private networks are defined as networks, that use private address ranges[0]. They are most certainly not AWS "rhetoric".

And why are unique MAC addresses a problem?

[0] https://en.wikipedia.org/wiki/Private_network
https://metafilter.com
Focusing on present moment is a very powerful tool and I’m glad you discovered it. Your daughter would want you to be happy. Best wishes to you and your family.
In observable studies you could often observe a "J" type shape. Where people drinking very little amount of alcohol are slightly more healthy than those who don't.

But that is to be expected when you are only dealing with epidemiological studies.

It is alarming how many claims are made due to epidemiological studies. Worse of all, official guidelines are based on them just as much and easy to manipulate if you have perverse incentives.
I'd really rather it was possible for me to update vulnerable image decoding libraries than having to install a Play service and give it root access to do that for me
Some suggestions and features based on personal preference, so I'm putting in a separate comment.

- Put an "Import MIDI file" button in the Imported Files section
- Star or bookmark icon, pick one for favorites. Currently one is used on the library screen and a different one in the song view.
- Sidebar for the different sections with hide/show toggle, for example I don't like to scroll through stacked Sections and don't really care to see Recents at all
- Options for thumbnail, tab display could be one but some variations would be interesting:
- Color based on tempo
- Dot-based graphic (primarily aesthetic, but recognizable at a glance)
- Size S/M/L option which assigns per section
- Tags for tracks, ideally color-codable. Maybe I want to tag something "mastered", or "difficult", "somber", etc.
- After entering the search box, escape key or outside click should dismiss and return to the home layout. Currently the sections get reorganized, Favorites and Recents disappear and Pieces shows up at the bottom, but I can't get back without closing the app.
- "Choose Random" button to open a piece
- Composer interface, create new pieces from scratch or modify from the library using something similar to the playing interface
(n.b. a decent interface for this if no keyboard/midi-in would be present a 1+-octave keyboard with some modifiers, so multiple key taps can create individual notes, optional rest interval, or extend a continuous note. Row-level actions so you can duplicate creating repeats, shift up/down, etc. Slight differences between macOS/iOS.)
- Allow user editable text, emoji, or color highlight in the play scroll. Noting a section of the piece is one obvious use but it could be handy for several uses.
- (semi serious) watch integration to vibrate on tempo.
- Music box mode, notes only play as you scroll (I see you did this actually. My daughter is gonna love this...)
Other sites to follow:
https://sciurls.com science
https://techurls.com tech
https://mathurls.com math
https://finurls.com finance
https://tuxurls.com LINUX
https://physurls.com physics
https://skimfeed.com pick category to skim at top
https://alltop.com pick category to skim at top
It does seem like Amazon has bought up rights to a lot of older content.
No we don't need ads for products, since products worth buying are worth people remarking about them, so we hear of the through a filter.

Ads don't make services cheaper - you end up paying for the products, the creation of the ad and the overhead, meaning you pay more in the end.
https://www.bogleheads.org/ is somewhat similar in terms of active discussion for investing and personal finance. Unfortunately, it’s in a forum format so threaded discussion is a bit difficult.
Using triggers + history tables (aka audit tables) is the right answer 98% of the time. Just do it. If you're not already doing it, start today. It is a proven technique, in use for _over 30 years_.

Here's a quick rundown of how to do it generically https://gist.github.com/slotrans/353952c4f383596e6fe8777db5d... (trades off space efficiency for "being easy").

It's great if you can store immutable data. Really, really great. But you _probably_ have a ton of mutable data in your database and you are _probably_ forgetting a ton of it every day. Stop forgetting things! Use history tables.

cf. https://github.com/matthiasn/talk-transcripts/blob/master/Hi...

Do not use Papertrail or similar application-space history tracking libraries/techniques. They are slow, error-prone, and incapable of capturing any DB changes that bypass your app stack (which you probably have, and should). Worth remembering that _any_ attempt to capture an "updated" timestamp from your app is fundamentally incorrect, because each of your webheads has its own clock. Use the database clock! It's the only one that's correct!
> You can't compare adverse reaction statistics for varicella and COVID in an apples-to-apples comparison, since the first COVID vaccine was given just less than three years ago vs. 25 years of a varicella vaccine.

In 1998, people could have said the same thing about the varicella vaccine compared to MMR, DTP, and Tdap. Around the same time period, they had started administering the rotavirus vaccine and subsequently found an association with incidence of intussusception and stopped administering it. Rotashield was subsequently withdrawn from the market. After 8 years, other rotavaccine formulations were approved and are now part of the routine childhood immunization schedule.

What happened with Rotashield did not happen with the Pfizer and Moderna formulations of the COVID-19 vaccine and subsequent boosters.

> Long-term study results for COVID vaccination simply don't exist for obvious reasons; it's only been about three years since the vaccine was first publicly administered.

This is the case for all vaccines when they first start being used.

> Countries like Sweden recommend against vaccinating children 5-11 because they think the benefits don't outweigh the risks.

Which vaccine are you referring to?

> It's funny, but the UK doesn't have varicella in the vaccine schedule for children for fear it will lead to a risk of chickenpox and shingles in adults[1], which can be more severe.

The varicella vaccine has been routinely administered to children since the late 90s in the US. If it lead to an increase in incidence of chickenpox in adulthood, then we would have heard about it by now. As for shingles, it remains to be seen, but this condition is not uncommon in the older population who were infected with chickenpox in their childhood.

We wouldn't continue recommending the COVID-19 boosters if there was a real problem associated with the vaccine that was worse than the morbidity/mortality statistics from the infection itself.
I am not sure but maybe referring to this? https://en.wikipedia.org/wiki/Tailored_Access_Operations
>Someone doesn't spend time in rural areas.

Pretty poor assumption being that I come from a family of midwestern farmers that have been integrating high technology into their operations for decades.

>There's no reliance on "magical someones" thousands of miles away

You just listed out a huge number of things before that where they do have said reliance. Those bobcats/cars/tractors are not made in their neighborhood. Instead there is a vast network that supplies these objects to them at a national and worldwide level. If the fertilizer doesn't show up in spring, yields plummet. If the fuel trucks supplying petro stop farming in the mid-west stops. We aren't running steam engines that can be fed off of locally sourced wood (ok, maybe the Amish still are).

You live in a global economy that farming depends on. This entire rugged individualism works ok with short term problems, and falls apart as long term problems build up.
“Notice that Rust has a built-in vector class, as well as iterators”
Pybind with c++ will also automatically convert between python and c++ standard types
Tractors have PTOs and are meant to be run at high load for long periods of time while stationary.

On the family farm, we had a PTO driven generator for use when the power was out.
I'm not upset at the OP, but I wouldn't say this is a golden rule. Some people make some really atrocious shit. People should, in general, be at least a little critical of what they're making.
If you read my comments before deciding you needed to respond to them, it would be pretty apparent that I am claiming none of those things. I specifically noted that a refrigerated aisle cap is implausible.

What's not implausible is the idea that one flavor of a product with several flavors might be located far away from all the other flavors. That happens all the time.
The US would just need to flood the drug market with cheap state made drugs collapsing the price for a year or two. But then like any company the cartels and the prison industry lobby to well.
-> Accessibility -> Vision -> Motion ->

Agreed, no other reason other than to make it harder to find, shameful.
One reason is that it threatens a lot of people's jobs.
I had a similar experience when I recently purchased Need for Speed: Heat on sale from Steam. The mandatory EA launcher that was installed along with game had separate spyware that launched at boot and couldn't (easily) be disabled. The "alternative version" didn't have that, so that's what I ended up playing.
For automorphic forms, absolutely.
How to improve (or “fine-tune”) your OpenAI embeddings?