skysight-inc/HackerNews huggingface dataset:
But you could give a short lived highly limited API key out for testing to allow the potential user to test the API for their needs before bothering to make an account and providing their personal information.
Rust is for writing blog posts about how it’s the most liberating, empowering and inspiring experience of your life. Boring technology like C and Java are for writing software.

There’s already an OS completely written in Rust called Redox. Nobody uses it. I’m not entirely sure you could do useful work with it, which is contrary to the Rust marketing team’s talking points that Rust code is guaranteed to be fast and guaranteed to be bug free because Rust is just so darn great and the compiler authors so wonderful and smart. That there are basically no success stories other than a couple side projects after a decade of marketing is of no consequence.

Don’t read the blog posts. Go to the repositories. Check out the crates.io landfill. Grab the Rust book and try to write anything more significant than a CLI toy. I promise that you will know exactly why nobody uses the language in anger.

The Fuschia team, who are partly responsible for the Rust myth don’t even use it in their kernel. But they want it in Linux. I wouldn’t be shocked if this was all some conspiracy by Google and Microsoft to make a personal computing unusable so that everyone has to use their cloud offerings.
IMO the Java stdlib also strikes just the right balance between control and abstraction. You can write thread-safe, performant code that makes reasonable tradeoffs between data structures without worrying too much about the details about memory layout and allocation. Said code also is easy to debug even without a debugger because there's almost never undefined behavior caused by use-after-free type bugs and error messages are clear. And the tooling - just IDEs alone, never mind debuggers - is mature and effective.

After using Python, Go, PHP, and C++ it's easy to see why Java is the go-to language for server development.
Fair. Revenue-based is indeed frustrating if it inhibits self-serve; otherwise, I’ve no issue with it.
Lacks first class temporal tables. Maybe not important to you and not on that list so do we dismiss that.
Carry your flash storage to each of the PCs you may come across throughout your day.
For now yes. The idle connection changes help but it's still inefficient. I would like to see connection pooling functionality merged into core PG at some point. Eliminate the need for network hop/IPC and enable better back-pressure etc.
If you find this sort of thing interesting, I can highly recommend Steven Pinker's Words and Rules.
For something less PoCy, https://www.sourcetrail.com/ 's internal representation of the reference graph is a sqlite db file with pretty much a triple store schema.
Perpetually being stuck in a cycle of implementing politically expedient but half-assed measures? See also: "oh no, there's too much plastic! let's uh... ban plastic straws!"
why not both? get the money and do something you enjoy?
> working on black holes or cosmology

99% of theoretical physics papers consist of torturous incremental research that no one gives a shit about, not even the authors. (I might be exaggerating slightly, but not much.)
As a sysadmin in the 90's it was considered malpractice to not have a copy of tomsrtbt[1] available at all times. The idea was, in a pinch, if you brick your internet gateway you'd have a chance of recovery by booting from tomsrtbt. It had just enough tools crammed onto the disk to fix configurations, fsck a disk, and rewrite the bootloader.

[1] http://www.toms.net/rb/
If the vaccine is truly 95% effective in preventing infection, how did 9 fully vaccinated Yankees players all contract the virus?
> certain features of Rust that have no C equivalents cannot be exported

Right, only "repr(C)" types can show up in "extern" APIs. So no data-bearing enums, no Vec<T>, etc.

> Will the gains in safety be contained entirely inside the modules that are written in Rust?

I think for some things the answer is yes, and for other things the answer is no.

If the issue is that callers might retain some pointer or descriptor longer than they should, leading to a use-after-free or something like that, then there's probably no way to fix that with an API-compatible Rust reimplementation. What safe Rust would prefer to do is either 1) force explicit lifetime constraints on the caller or 2) replace the pointer/reference with some sort of smart pointer, which can either keep its referent alive or at least safely detect the fact that the referent is dead. But of course a C-compatible API has no way to represent (1), and (2) would presumably be an incompatible API change, so the Rust reimplementation can't really solve this issue. (Though if both Rust and C APIs get exposed for the new code, then new Rust callers could benefit from (1).)

On the other hand, if the issue is that the caller might pass in some invalid indexes or other metadata, leading to an out-of-bounds array access within the module, Rust can help quite a bit. If the array in question is actually owned by the module (and not just a raw pointer to unknown memory) then bounds checking is required one way or another (unless it's either optimized away or explicitly skipped with unsafe code), and a Rust reimplementation will probably not suffer from out-of-bounds issues. Raw pointers into the caller's memory are harder to check, but even there if they can be converted to a safe slice immediately inside the API boundary, some subset of out-of-bounds accesses can still be caught.

Looking at these two different kinds of bugs, I think it's interesting to think about what "inside the module" means here. In both cases, the UB we want to prevent (either use-after-free, or an out-of-bounds access) is "caused" by the caller's mistakes outside the module, but "occurs" on lines of code inside the module. In the first case, Rust can't protect itself against a bad (C) caller, but in the second case it might be able to.
So now what do we do about Bitcoin in the meantime?

Exactly as the commenter above proposes: "Change the subject"
True and if this API handled user data or anything substantially private that would be a HUGE deal and super dangerous.

But it seems like in this case it's mostly a rate limiting and identification exercise and not a secure protection of user data so the impact of exposure is substantially lower. So it does seem reasonable here.

Though I hope that OP has documented all over the place "do as I say not as I do" so people don't copy this pattern.
This Will Eventually Replace C++
For those who don't want to try it, here's the boot time.
- https://youtu.be/j2KKkyBIXfA
How does your argument here correspond with the numerous articles discussing how the mRNA vaccines are effective against the numerous variants?

There's a big scare every time there's a new variant, followed by another article a couple weeks later about how the vaccine is X > 50% effective against [ new variant ].
The New Furies of the Oldest Hatred
Please finally be upstream Nvidia support that doesn’t suck
The idea for doing this experiment was actually that I tried times and times again to produce a SourceTrail graph for the LLVM codebase but always failed due to one reason or another. Then I discovered that they provided the gRPC interface to their clangd index and I came up with this.

EDIT: also, doing things this way you don't need to reimplement C++ indexing because you can leverage the existing clang features
>Should they then be able to leverage that position to instantly win and extort the marketplace built on the next layer up? It pretty much goes to the heart of antitrust

Exactly. And yet this idea seems so hard to grasp for many, just look at the discussions around the web and on HN. Everyone over simplifies it to it is Apple's phone or Apple's App Store they do what ever they want. Or the user chose iPhone if you dont like it go and get an Android.

The judge actually pointed out ( Finally ! ) vast majority of revenue are coming from Games. Which means Gaming is in a way subsidising all other Apps in App Store.

I wish Apple separate the Game into Game Store and keep those 30%. While Apps and Services are 10%, with little curation of Apps with App Store. i.e You no longer block Apps for their political view or speeches. As long as they are legal you should allow them in within the quality guidelines and security clearance. Apple could still down rank all these lower quality apps should they choose to. They dont have to block it from accessing iPhone.
How do you reconcile the first bullet point (polluting data with test data) vs Test In Production being the modern trend? Those sound irreconcilable.
I'd maybe define a rich person as "someone who is capable of working but does not need to labor ever again in order to have a comfortable amount of food, water, shelter, and medical care."

Everyone probably cannot be rich like this unless we invent some sort of frighteningly advanced automation to take care of our basic needs.
Iterative UI Design – Cogmind / Grid Sage Games
“Wealth is assets that you earn while you sleep”

Sorry, but somebody is still producing that wealth through their labor. It’s just not your labor. Wealth in the sense that the author is using the word is when you collect the fruits of other people’s hard work.

No matter how you set up your economy, only a small number of people can live like that, so no, by definition this is not a strategy that everyone can use. Otherwise, who would be doing all the actual work?
Include a cleanup step after each test?
> the house you live in and the car you drive are not investments

The house? Probably not an investment. The land underneath it? That's a very different story.
>and using the techniques that work for it has helped immensely

What resources did you use to find those techniques?

edit: nevermind. I saw your other comment; "

Essentially I watched every video from the YouTube channel HowToADHD" Thank you.
Awesome!

Quick question: Why are Pixabay and Pexels not under Stock Photos also? :-)
Does Linux still fit on a floppy? Last few times I tried I couldn't get the kernel below 1.7mb (without throwing out stuff like block devices.)
You need to apply Bayes Theorem to DNA evidence, but courts typically don't.
So, if a single person is killed by a government-mandated airbag, we should throw away all the safety trade-offs (the numbers of people killed and saved by airbags) and remove the airbags?

Emotional slogans should be abolished, end of discussion.
That numbers adjusts upwards and downwards every 2016 blocks.

So if we burned the entire planet the recipient will mine most of the bitcoin for a maximum of 2016 blocks at a faster rate than before they started mining, and then the difficulty will adjust upwards reverting the block creation time to 10 minutes per block. When the planet extinguishes, blocks will be found much slower or cease being found at all, until the end of the 2016 block period where difficulty will drop much lower, allowing people to earn bitcoin using an abacus and negligible amounts of power.

So there is no absolute need for bitcoin to use a lot of power and it scales up and down.
Perhaps OP assumed the coworkers were able to think critically and not engage in basic ad hominems?

In my work environment I expect my coworkers to be able to engage with substance and would be very disappointed if they refused to look at something because it came from someone “problematic”.
The Yankees were given the J&J vaccine, not an mRNA vaccine. https://edition.cnn.com/2021/05/13/sport/yankees-test-positi...

Are you scared? Or intentionally spreading misinformation?
That's a problem itself already.

On a lot of languages, the order of the words can change a lot depending on what you want to stress, but English gives you very little leeway. Thus if you try to apply your skill of ordering the words right to express yourself, you will fail almost every time.
I've seen a lot of white homeless men around the Bay Area. In fact, the ratio of homeless white men to homeless women of any race is quite high.

Do these homeless white men have high social and economic status? I'm curious to know when it is appropriate to generalize based on group membership, and when it is not.

EDIT: More curiosity from me: Has anyone demonstrated that any women were actually impacted by his statement (again, a few lines taken out of context from, well, a book-length book) in any real way?

The assumption seems to be that now he's irrevocably tainted as sexist, like some sort of charged particle inducing sexist discrimination on any nearby woman according to some inverse square law. I have yet to understand how a flippant (and joking) sentence or two in a book somehow causes anyone any real harm.
> 2) Tax carbon emissions.

Progressively.

Not a detail at all.
Better yet, read the epic rant that Zed Shaw made about Ruby. It is certainly juvenile, but I don’t think it’s baseless. Now, consider that the core members of the rust community are exactly the same people he was talking about when rails was the new shiny.
Or is it? Being rich is a moving target. The same as being successful.
This is basically fake news. The plant serves regular customers, and since it costs a lot to fire it up or shut it down, during the period where there is excess supply of electricity it is used to mine bitcoin. Unless you have a huge expensive and unavailable (due to constrained supply of cells) mega battery pack you cannot store that energy.

Globally, bitcoins’ entire energy usage is equal to just 1/6th of the surplus energy that is THROWN AWAY.

All this Bitcoin energy usage nonsense is FUD to keep people oppressed and using a currency that the politicians can inflate at will.

Due to the cantillon effect it is very profitable for wall street and politicians like congress to steal from the masses this way. This is the primary cause of wealth inequality.

Bitcoin fixes this, it gives regular people an escape, so they publish FUD against it.
I think it’s a mistake that they don’t revisit it occasionally, and if necessary pull the trigger on a new schema + migration scripts.

Some early mistakes just can’t be solved without a do-over, and from a recent experience, it ends up being less work than maintaining a flawed schema.
Completely disagree with ecto[0] and plug. (I have some issues with ecto, but it has nothing to do with macros). The use of macros in those two libraries is parsimonious and exactly what you want in a DSL. For that matter ExUnit, too, has exactly the 'right' amount of macro usage. Phoenix, on the other hand, drives me up the wall.

I would not call Phoenix a "basic library". It's definitely a heavy framework. You can of course use "just Plug" (though very few people do).

Finally, I think the bigger problem is when you get devs that "take inspiration" from some of the way that Phoenix uses macros. It's a serious problem when a dev has built a macro that cleverly autogenerates a function call (so you can't search the codebase for that function to chase the call path) is not fun. This is the strategy that the Phoenix Routes (is that the right name? not to be confused with Router) uses. I hate it so much.

[0] as an ecto consumer. if you ever try to develop an adapter for ecto, you'll run into these problems. I think for example this is why it took forever for someone to build an ecto3 SQLite adapter.
I'll agree with other commenters that Zig is no where near mature enough for Linux yet. However, I definitely think that it will be a better fit than Rust in a few years. It's a fantastic C replacement.
Top tool. I'm a regular.

Ben fet nois!
I mean true but this is like pointing out that no one plays baseball with a golf club. One is ubiquitous because it's useful and the other isn't.

Prescriptive dictionaries do exist but they're mostly used by specialists to understand specific usages within a time-limited context like "what did 'gay' mean in 1920s california" etc.

Similarly there might possibly be some training reason to try to hit a baseball with a golf club. But if that applies to you you're probably aware of it.
Given the current target seems to be more or less Rust for loadable device drivers, even if it never gets merged, it could develop to the point where out of tree modules could be done consistently in Rust.
>it also scales externalities

I knew when I saw "at scale" in call-for-proposals issued by federal granting agencies that it was soon to lose all meaning, and I think this is about the point at which it's done that.
I don't know what you mean. You're going to have to trade with others and get along with your neighbors regardless.
I don’t think you understand how power plants work
Just to add to all the replies.

EU is watching the case very carefully. While Americans might think Apple can do whatever they want with their devices. The same could not be said with the EU. And I am willing to bet the court battle wont flavour Apple because it seems the old world has a much different view to Anti Trust and Anti Competition than US.

And Apple will have a choice, comply or paid a heavy price.
I’m curious, what are they based on, and is there any reason to have a number there beyond “people expect a number”?
> And yet, we literally run our world upon this flawed (to a degree which we haven't the slightest idea) system, and seem to think nothing of it, if not worse.

Can you elaborate? Do you think there should be another "system" replacing it? A uniformization? In what ways?
> Anyone can come here, be poor, and then work really hard and make money, and get wealthy.

While I agree with some of the article, I feel like this statement simply isn't true anymore. Probably for software/hardware engineers, but there's a shrinking middle class in America who can't afford a house despite working multiple jobs and doing everything right. My grandfather worked at Safeway and could support my mom and save up to buy a house. Seems like this would be impossible now. I don't know what the crux of the problem is, but something is definitely wrong with our system.
> There is no index checks in the current kernel C code at all. It is better to panic than violate memory safety.

This isn't the question here. malloc (or other memory operation) failures should never panic. According to Torvalds[1]:

> Allocation failures in a driver or non-core code - and that is by definition all of any new Rust code - can never EVER validly cause panics. Same goes for "oh, some case I didn't test used 128-bit integers or floating point".

Kernel code is a bit quirky in this sense that it will always favor system stability (and expect proper errors to trickle down) instead of crashing. Also, Linux runs on plenty of low-memory embedded systems so failing on a malloc may not even be a particularly rare occurrence.

[1] https://lkml.org/lkml/2021/4/14/1099
Yup, this would ensure the benefits of bitcoin mining would not outweigh the costs, and it would make most of it unprofitable. One great thing about crypto mining is that it makes unsustainable subsidies very obvious.
Throaway for obvious reasons. Sharing my journey:

Startup 1: joined as the first employee pretty much straight out of school. Talked to potential customers, worked on the product and overall learned lot about startups. Modest low exit some years after I left. No payout. (Europe, so not common to have equity back in the day).

Startup 2: joined the founding team of a gaming startup. The company flopped. Built and learned a lot.

Startup 3: started my own company, moved to US, raised funding etc. Learned a lot, we had to shut it down after couple of years as failed to grow the business and didn't see a way to pivot. Returned remaining funds to the investors.

Startup 4: joined another startup. One of the first 20 employees. Build a lot, learned lot. Exercised the stock when I left. The company IPOd 6 years later. $50M payout. I had early exercised some stock so some of it was federally tax free under QSBS.

Startup 5: Joined pre-IPO FAANG, got a decent salary. Learned a lot of about politics and presenting to execs. Honed my own craft and skills on the company time. $3M payout from RSU which more than half went to taxes as ordinary income.

Anyway, been lucky with two of my last companies, but I would say the earlier startups gave me skills and confidence to operate in the level I needed.

I think FAANG is nice place to make $1-2M over some years but it’s unlikely to make $10M or more.

In all my jobs there were some crunch times every now and them, but I never worked 100 hours or over the weekend consistently. After being a founder I did realize that you don’t have to work that hard for other companies.

Startup outcomes are uncertain but you can definitely affect them by choosing the right companies. If anything else, you will learn a lot likely. Time moves faster in startups, so few years in a startup might be like 5 years at FAANG, and you actually learn to build things instead of sit in meetings.
What's going to be the vitess of Postgres? Seems to be the "last" missing piece? Or is that not a focus and fit for PG?
I'm a little surprised this is in nature... Isn't that exactly what you'd expect?
I'm not triggered. Sorry, that's just my (bad) habit of employing ridicule and irony in discussions. I didn't try to imply that it's my obligation to lend. I'm very risk averse in fact. I'm also not 100% evil, but I'm not very charitable (yet). I donated several times and that's it.

> Sure there can be positive social results to certain kinds of lending. If you’re investing for that purpose though (to improve someone’s situation), why are you looking to be punitive and enforce that you get a return?

Certainly there are people and organization that invest with aim to help the other party. But aren't most people investing to make profit? And isn't this kind of investing (for profit) beneficial for society as well? You provide capital early to others, and since you can't use it now for your consumption you get interest in return.

I don't think why you imply that I want to hold power over people. All I'm saying is that if I don't get any protection, then likely I won't invest at all. And who would if there's no protection?

> Is it a moral failing on their part or mine that that happened? Sometimes they don’t fail. Is that due to our morals?

If a company defaults on obligations then by the law it's going to be liquidated, and both bond holders and stock owners will be paid from that. That's the risk I'm willing to bear. But if the company would have the choice to renege on its obligations and keep on existing, would you invest? Would anybody?
Both gcc and rustc are good at cross-compiling.

There are many MCUs that run Linux but definitely are incapable of compiling it.

IIRC most of the build time of a rust program is spent not in the rust compilation proper but in LLVM doing code generation and optimization. I hope both LLVM will become more efficient with time, and rust will learn to pass it such IR that it can process faster. There are obvious incentives for both of these things.

But of course it would be sad if the minimum requirements to compile the kernel grew again, and now excluded older RPis.
Read the thread. It says anywhere but a “right-wing community”. Bernie Sanders is not “right-wing”.
When I developed in PHP, the first line of my code was usually renaming "htmlspecialchars" to "h". This significantly reduced the length of code and increased its legibility.
Boy or girl? It's in the father's genes (2008)