skysight-inc/HackerNews huggingface dataset:
1. You mean Cow<'a, str>? It's an enum of either String or &'a str, typically used with 'static so you can either store an heap-allocated string or a static string without copying it to the heap

2. Given you mention "maps of option", probably you are doing something like opt.map(|x| &x.field) or equivalent which is obviously invalid (since you are returning a reference to a subobject of a function argument). Instead, you need to do opt.as_ref().map(|x| &x.field) (or as_mut() if it's mutable).
"Right now it looks like Russian logic is that every free person in the world is a potential threat to Russia. Because threat is anything that you don't control."

Don't you mean "American logic"? If not, have you looked at a political and military map in the last couple of years, as well as paid attention to the changes?
Grammarly for Your Code
On the U.S.S. Hornet (https://uss-hornet.org), each group is expected to provide a Fire Watch in two-hour shifts.
I've been using Colemak for 5+ years now. I spent a lot of time researching layouts before I committed to one. My conclusion on efficiency was (1) nobody really knows because everyone types differently (2) raw speed isn't important since most typing I do involves pauses to think.

Dvorak and Colemak would both solve a huge problem for me. Qwerty requires a lot of extreme row movements that were causing me a lot of hand pain. Both Dvorak and Colemak move a significant amount of typing to the home row and eliminate a lot of the movement directly between the extremes of the rows. Choosing an extreme, anecdote, a word like minimum alternates between the top and bottom row between every letter on Qwerty. On Colemak, minimum there's only one extreme jump u => m. I've found that this tends to hold true for much of what I type.

I personally choose Colemak because I liked the transition process a bit easier. The base layout is closer to Qwerty and you can pick a few keys to transition at a time.
Do you daily browse with it ? Do most websites work without javascript ?
Fair enough. Musk was on Joe Rogan talking about it last month so a lot of people have heard of it.
I wrote code recently to parse a file with regexes and generate rust code from it. It's get-the-job-done code, not super clean, but you might find it useful.

https://github.com/danielzfranklin/drm-fourcc-rs/blob/main/b...
As I already said, I don't think that Zelensky will start the war. He's just doing his thing and Russia's doing theirs thing and that's all. He could do that if NATO would support him with army, but they did not support him for obvious reasons and that's about it.
I've been a happy Colemak user since 2012. One of the first things I do when I get a new computer is rearrange the physical keys, which is a significant advantage of Apple non-butterfly keyboards. [1]

Aside from less overall movement while typing, Colemak keeps many common keyboard shortcuts the same. The first few hours are very frustrating, but the overall time-to-competence is short. There's a lot of upside and little downside.

I wrote about the process of learning Colemak in my book on skill acquisition, and posted a summary of the process and the tools/techniques I used on the book's website. [2]

[1] https://twitter.com/joshkaufman/status/1334632614368583680

[2] https://first20hours.com/typing/
>did anything interesting ever come out of Numenta?

Nope.
Three wire SPI is pretty common where everyone's MOSI and MISO are connected together open drain style, and the master clocks out 1s to let the slave pull the data line down for read operations. You have clock out something from the master during 4 wire SPI read anyway so it doesn't change a lot most of the time.
Yes, but the rule is still complete. What is going on is "place" is currently defined to be local x, or field x.f, or index x[i], but all x[i] are merged to x[*]. Rust's so-called NLL changed definition of "live". The point is, the rule is simple, formal, and complete. It is neither an ad hoc rule nor a best effort prover.
Good take.

Arterial clots with thrombocytopenia is incredibly rare. Additionally the PF4 activity in these patients is very abnormal and appears to be to immune mediated. Lots of science and focus going into the mechanism around this now. The other recent NEJM articles around clots associated with the other adenovirus COVID vaccines are likely a similar phenomena.
If 55% wanted what about the 45%?
Can you share any data points on the rise of domestic white supremacist terrorism? I'm genuinely interested in what kind of threat this poses.
This lines up exactly with what Dr. Daniel Griffin talked about in the most recent clinical update podcast for TWIV [1]. Apparently aspirating makes the shot more painful, because the needle is in the body longer, and serves no benefit as long as the vaccinator is putting it in the right location.

1: https://www.microbe.tv/twiv/twiv-741/ (towards the end)
I think that it's a classic example of ideology infiltrating the classroom. Creationism could be taught in a philosophy class, but it has very little relation to the scientific process.

But I would say that these trends are localized. The urban coasts are not the same as Alabama, and I see the error as springing from an identical root: the desire to control the narrative and impose a particular political conscience on the youth.
Yeah, it probably is a good proxy for agism, given how well it correlates with university material that will very naturally rot from disuse (in most programming jobs).
Identify politics has been on the rise for a long time. The right heavily contribute to identity politics. See: openly racist GQP leaders, transgender bathroom ban, mexican "caravans" conveniently appearing in the news around election time, satanic panic, homophobia, muslim ban, "Kung flu".

In no way can you place the blame for the rise of identity politics squarely on progressives. I get the feeling that most people opposed to a more fair and equitable society are the ones currently benefitting the most from inequity.
The problem is with how they are handling their data. You don’t have to know anything about biology per se to see the issue. It is entirely mathematical. By the way, the medical establishment has a terrible track record surround use of and understanding of statistics. I don’t think it’s right to suggest that self described experts are somehow infallible.
Mentioned here recently i think: https://en.wikipedia.org/wiki/Roman_dodecahedron
If you really want to know just go there and ask around. But make sure you do not use your google account or log in to github while there.
aspirin != heparin. Question, would taking aspirin prior to and after Janssen vaccination lower this risk?
This is so nice. My college roommates and I had an informal agreement to incorporate something from MS Paint in every piece of work we turned in. The contest ended when one roommate "won" by creating the cover page of his Masters thesis entirely in MS Paint.
An utterly appalling decision by CYA bureaucrats or innumerate idiots. The leadership of the CDC and FDA must be replaced.
SICL – A new Common Lisp implementation
Come and live in a country where healthcare is not tied to your job in any remote way, and see how differently people behave. It really is night and day.

When my brother came back to Australia after 5 years away he said the biggest thing he noticed was not driving on the wrong side of the road, not the weather, not the food, not the accents - it was how people are treated at their jobs.
http://journal.sjdm.org/20/200824b/jdm200824b.html

Selection effects on dishonest behavior

>Abstract: In many situations people behave ethically, while elsewhere dishonesty reigns. Studies of the determinants of unethical behavior often use random assignment of participants in various conditions to identify contextual or psychological factors influencing dishonesty. However, in many real-world contexts, people deliberately choose or avoid specific environments. In three experiments (total N = 2,124) enabling self-selection of participants in two similar tasks, one of which allowed for cheating, we found that participants who chose the task where they could lie for financial gain reported a higher number of correct predictions than those who were assigned it at random. Introduction of financial costs for entering the cheating-allowing task led to a decrease in interest in the task; however, it also led to more intense cheating. An intervention aimed to discourage participants from choosing the cheating-enabling environment based on social norm information did not have the expected effect; on the contrary, it backfired. In summary, the results suggest that people low in moral character are likely to eventually dominate cheating-enabling environments, where they then cheat extensively. Interventions trying to limit the preference of this environment may not have the expected effect as they could lead to the selection of the worst fraudsters.
recovery rate is more applicable to rehab centers, and those publish their recovery rates as required by law. Most are pretty sad (50% or more relapse is typical).

NA/AA meetings aren't meant to offer help to any one individual, rather group support to help those who want to better themselves make the right decisions, or to simply vent in-person out to others who won't judge them.
This might be relevant: https://www.theatlantic.com/science/archive/2019/08/arroganc...

> But the longest-lived radioisotope from radioactive fallout, iodine-129, has a half-life of less than 16 million years. If there were a nuclear holocaust in the Triassic, among warring prosauropods, we wouldn’t know about it.
Yes, perhaps around 80% effective after one dose of mRNA: https://www.cnbc.com/2021/03/29/cdc-study-shows-single-dose-...
There may be something to what you say. But on the other hand, there's that old adage: if you meet an asshole one day, you met an asshole. If _everybody_ you meet during the day is an asshole, then _you're_ the asshole.
Figma: Changes to free plan after April 21, 2021
Has PayPal managed to maintain this culture since then?
no. they did block water in artificial canal.
TL;DR: The brain has far too many connections and nodes to really understand, in the way we want to understand a circuit. But we've been thinking about it wrong. Those connections are the output of a somewhat basic learning algorithm which was replicated across all the "higher" intelligence functions including vision, speech, blah blah. Viewing the brain is like viewing the massively complicated output of a deep learning network, which was constructed quite simply by a prior topology and some gradient descent and large amounts of data.
Rare big problems may be indicative of common small problems.
Wow, this is a really cool project.

I'd really like to see something like this in browser developer tools someday.
> US ... commanded Zelensky to start a war

Do you think the US has such influence over _any_ country to command it to go to war with another country?

> They have to finish Nord Stream 2, so they absolutely don't want to impose any additional sanctions on themselves.

One would think so, yes; but on the other hand, hasn't Russia annoyed the Western world enough over the last 6-7 years, with Syria, Skripal, or Navalny, despite its obvious need to finish Nord Stream?
Do you have a specific language in mind?

Honestly, I don't feel that I spend time managing memory in Rust: I use ARC pointers for long-lived shared object (Database connections pool, mailer...) and otherwise the ownership is pretty straightforward during the lifecycle of a request, data is moved from the top layer (HTTP handlers) to the bottom (Repositories to access Database) and back for the response.
Does spawning new incognito sessions mitigate this? I know for me I have set all my various browsers to use incognito mode by default, so all my sessions are insulated from each other and can't 'talk' to each other. For sessions where I need to be logged in/use cookies, I have a dedicated Firefox profile that I launch with the `-p` switch in the launcher icon, and I never do anything sensitive in this session, so I don't care about secrets being leaked into that session.
No spec, because technical details are complex, but spec, when it is written, will just be an elaboration of "It is an error to access a place, when an access conflicts with a loan, and the loan is live". This has never changed since Rust 1.0, more than 5 years. Spec will just need to define "place" and "live" and that takes time.
The way I see is Rust for people who love to write about writing code quite a bit more than writing code itself.
When he said "evidence-based," he's referring to statistically recorded rates of recidivism.

You are correct, NA and AA are primarily social clubs, and there's no harm in that. But if the point is to recover from addiction, keep looking.
All money is debt. Government always spends by "printing money". That's how bank payment and clearing works.

So if it caused inflation then we'd have loads of it, and we don't.

Whether a bank ends up holding reserves, or holding a government bond is just a difference between a floating rate debt receiving the base rate, or a fixed rate debt receiving the bond rate. Just an interest rate and term difference - nothing else.

The last year has completely debunked any question that 'creating money' is inflationary. Believing otherwise is up there with anti-vax thinking.
Programming languages are tools. Tools need to be used to build wonderful works of art or industry to be useful or have any realistic shot at being considered great tools.

The fact that the overwhelming majority of great applications, services, any kind of software we create is not written in Lisp should at some point in the first century after the creation of Lisp, lead Lisp afficionados to some kind of enlightenment, one would hope.

Unlikely, since it's already been 60 years, so they only have 40 years left.
> Inequality by itself is not a bad thing. Let's start from there. If 90% of the population had a (sustainable) lifestyle of current dollar millionaires, and the remaining 10% had a (sustainable) lifestyle of dollar billionaires, there would be lots of inequality, but it wouldn't be problematic.

You're correct, but inequality would be far, far lower than it is today.
This is awful, I love it.
His OG book, On Intelligence was excellent. Andrew Ng credits it with starting his framework for how he looks at AI.
Data Science Notebooks – A comparison of Jupyter alternatives
Do people really type non-stop long enough to make any of the speed gains actually significant? Even when I was writing my dissertation I would rarely type more than a couple sentences at a time and even then I often had to back space because of a typo or something.

If you have some kind of RSI and it helps then it would make sense but at least for me it doesn't make sense for the way I type.
I don't know where she got it from but I've adopted it myself now: My girlfriend calls these disposable characters "Malcolms".

You know the scenario; when the crew of the enterprise are about to beam down to an unknown planet and there'll be Kirk, Bones, Spock and some guy who's never been in it before.

"There's the Malcolm!" the missus will say. And, sure enough, guess who ends up getting killed?
Yes! I loved our Battleship Cove trip in Cub Scouts. We also got to tour an old submarine. It had a very particular old timey chemical smell to it that I've only ever encountered in one other place; Building 20 at MIT (RIP).
Interesting word, Moloch, thanks for introducing me to it!
I wouldn't describe "hnewslet" as lazy. Actually, I'm quite proud of that one.
Is that really a surprise though? This is going to be the experience at 100% of companies where tech is an operating expense, not a money maker.

Flipping things around, do you think a Pulitzer prize winning NYT editor would get the salary and respect they expect if they take up a job at a tech company writing marketing copy for their website?
Colemak all muscle memory for me, so it's nearly impossible for me to remember my Qwerty muscle memory now.

One place that really sticks out is job interviews. Asking your interviewer to change keyboard layouts is a bit intrusive. It's not a huge deal on a Mac, but it's a challenge on Windows since Colemak isn't built in.
> I think people still remember this for the most part.

I don't. I think that memory is from small subset of the general public who were early adopters and developers of the Internet.
> don’t introduce the complexity when it’s unneeded.

Prediction is hard. Sometimes I start with something simple, and it ends up growing in scope until it's quite large and complex. Other times I start with something simple, and it stays simple.

So, what's worse, using a complex and/or strict language for something simple, or a simple and less strict language for something that ends up being very large and/or complex?

Interestingly, some people will probably read that last paragraph as my trying to make a point through implication. I suspect different people will assume I'm saying completely opposite things based on their own experience. Really, it's just hard, you get better at making the right choice as you go along, but you'll never always get it right.
It seems like every religion needs it's "Original Sin".
Not exactly under the radar. Also, you have to keep in mind that demonstrating positive power isn't sufficient. SPARC is aiming for Q>2, ITER for Q>10, but Q>20 or 30 is needed for a powerplant. Also, once sufficient gain has been demonstrated, there are many serious nuclear engineering challenges that need to be solved.
I'd say that reversing a binary tree can be solved in two ways.

1. Never having thought about it before, generate an acceptable whiteboard algorithm from scratch while having a person or three bore holes in your back.

2. Throw a canned answer on the board.

My impression is that large companies prefer Door Number 2.
Yes, guilty until proven innocent is such an efficient way to run a society - so easy to ask "why are you complaining?" if that's all you care about.
I don't think it's true at all that businesses are against universal healthcare. Businesses want very much to have nothing to with providing employee healthcare, thus the opposition to Obamacare.

But if someone offered to take it off their plate, absent proportionately higher taxes, I cannot see any business outcry.
> use a regex to find a string in some text, escape all the regex-reserved characters in that string, then use the string as a regex to find other occurrences of itself in the text)

This took 2 min: https://play.rust-lang.org/?version=stable&mode=debug&editio...

and I don't recall what's the last time I used the regex crate.

I'm certainly doing all the regex stuff incorrectly, no idea how to match regex-reserved characters, no idea if I'm using the iterator API correctly (its the second example in the regex docs..), etc.

But the idea is simple, search the text for the regex, escape all the reserved characters, use that regex to search for occurrences of the same regex.

I guess that if you want a fully-vectorized, zero-allocation, zero-copy, multi-threaded, gpu... version of this that maxes out the theoretical peak of the hardware available, then you'll probably end up putting a considerable amount of work here.

But otherwise, for someone with literally 30 seconds of experience with the regex crate, it was as straightforward to implement as you mentioned. Just c&p their second example, and just added some glue. This is how I'd implement this in Python, or Java...

EDIT: other responses suggest cloning, but that seems to suggest that one has to explicitly and deliberately think about cloning. I instead just played a game of type golf using functions like `.to_string()` or `.collect` to "clone" stuff behind the scenes. My code is probably horrible, but is the first thing that came to mind.
Forever I think. Global population is projected to peak at about 10 billion and technology is getting more efficient all the time. The planet receives vastly more energy than we need even if everyone on the planet has a European standard of living. Everything we make can be recycled even with the technology we already have so long as we can expend enough energy. If our species dies out it will not be for want of stuff but because we are unwilling to work together.
No, but nobody called America that either. Your anti-PC hyperbole in this thread is wearing quite thin.

If you don't like being called a [racist, sexist, whatever], then either change or grow some thicker skin. People pointing out racially charged or misogynistic language in interpersonal situations is NOT causing widespread economic or industrial damage.

No municipal water supply in the US ever canceled an infrastructure project or a new filtration plant because of political correctness.

No, the worst that happens if somebody calls you a racist is... somebody called you a racist. You don't pay a fine, your business isn't seized, and -- most germane to your "point -- your water filtration plant isn't demolished.
> I now live in the Netherlands.

In the EU it's illegal to show prices ex VAT (or other components that might make up the final selling price) to non-business/commercial consumers.

https://eur-lex.europa.eu/eli/dir/1998/6/oj
Politics of the Kitchen: Santina Amato
Please don't lecture me about what I do and don't think, thank you.
Sounds like AMZN in 1999
Yes. Experimentation wrt the suffix as the original from the search was ugly.

I instinctively replace the "en" normally as well as I am not sure if it is appropriate for every user.

Then I test it after posting.
(Im)Possibility of Fairness:Different Value Systems Require Different Mechanisms
Good point, I hadn’t considered this. Also there was the factory QA issue. Possibly much like in aviation , multiple small factors here that need to be addressed and they’re using this as easy excuse to put pause.
I find this totally reasonable, especially since you can pick what app you want to install, and _it's actually useful for stuff outside of work_.

For example, Okta Verify or Duo I would absolutely demand a separate phone for paid for by work - they are remotely monitorable/controllable more than local hashing.

But you should be generating TOTP codes for your personal accounts too!
I hope you used kaboom to create the kaboom video! Was fun to watch indeed, All the best.
It should, but it currently doesn't in DeepHN. We will fix this asap.
Digital Ocean $50 unsolicited credit (via email today) is this new?
Just got this email today [i] from DO. Seems HN has a love/hate relationship with them... but I'm quite happy with the cheap and reliable droplets I've got running there.

And this gesture was quite unexpected.

[i] https://i.imgur.com/f6Dy3nl.jpg
>>Luck is, IMHO, a subjective feeling per se.

This might be some of the actual disagreement in this thread.

Feeling lucky and being lucky is not always related. You can feel lucky for having met "the one" in your life or for finding $100 on the street, and none think that luck comes from hard work. The part where many underestimate luck regarding success in business is how much luck is needed on top of hard work, and having the right knowledge, and being at the right place at the right time for any business to be a huge success.

The success stories from business always are about the hard work that was done and not about the incredible amount of luck that also was involved (Thinking fast and slow have a chapter about this)
I agree that Rust isn't the primary ecosystem. But that's not a reason to dismiss Rust. If Rust could create components that can be incorporated into C/C++ systems, then we'd have a real contender for systems programming. The problem is Rust is strict, and it only goes one way, from C/C++ to Rust. That's the right first step!

Saying C++ is better than Rust "once you know it" doesn't make a lot of sense to me. No language is intrinsically better once mastered by a productive programmer.
FDA advises states to pause use of J&J Covid vaccine after blood-clotting issues