jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
The point on the unicode to_lowercase is quite interesting. I wonder if the javascript version is faster because it's less safe or because the JIT compiler identifies properly that unicode-awareness is useless and specializes the code.

The author has a follow up article[1] on their blog about it. They rewrite the rust code to eliminate the extra allocations they identified at the end of this post. It then performs 8 times faster than the javascript version.

However, I think they could have simply iterated on the code from the first post:

There are a lot of allocations because two strings are created every time they are pushed to the queue (.to_string()):

queue.push(candidate.to_string());
queue.push(token.to_string());

This is unnecessary, because candidate and token are both a single character.

Rust has a char type that is useful to store single characters. Especially, unlike String which is heap-allocated, char is a primitive value that resides on the stack and CPU registers. Since we are comparing single characters, it's much better to use char.

So if the queue is defined as a Vec<char> instead of a Vec<String>, and the comparison function took as argument char rather than &String, it will spare a lot of allocations and this will speed up the final application.

let mut queue: Vec<char>
// ...
if !compare(candidate, token) {
queue.push(candidate);
queue.push(token);
// ...
fn compare(token1: char, token2: char) -> bool {

This has also the advantage of removing the references, making the code cleaner. Using Vec::with_capacity(n) instead of Vec::new() will also help lowering the allocation load by preemptively allocating a large enough memory slice. With Vec::new(), the vector will reallocate a few times.

[1] https://cesarvr.io/post/rust-vs-javascript/
One thing that comes to mind is that as a developer you don't have to pollute your main partition with a beta if you can install it on an external drive.
To my surprise, it works partially on latest stable Rust:

#[non_exhaustive]
#[repr(C)]
#[derive(Debug)]
#[allow(dead_code)]
enum Foo {
A = 0,
B = 1,
C = 2,
}

pub fn main() {
let bar = unsafe { std::mem::transmute::<i32, Foo>(33) };
println!("{:?}", bar);

let s = match bar {
Foo::A => ("A", bar as i32),
Foo::B => ("B", bar as i32),
Foo::C => ("C", bar as i32),
_ => ("Unknown", bar as i32),
};

println!("{:?}", s);
}

Standard Output

C
("Unknown", 33)
N95 masks are not rated for viruses either, the eponymous N95 standard test is about filtering NaCl.
They aren't the same thing as medical masks. I'm well aware of that. But if people start making their own or get them from providers that aren't supplying medical needs anyway, it could very well reduce spread without taking masks from medical providers.

Why is Japan an outlier? One thing they do differently from most of the rest of the world is wear masks. Not perfectly but certainly more than in the US. And many Japanese are making their own now as they can't find professionally made ones either.

Yes it's a desparate measure but this is becoming more serious by the day.

I did have the opportunity to ask a Japanese person his opinion on why the rate of increase is lower than in the US. One reason he gave is wearing masks. Another one is the practice of taking shoes off when entering one's home (you bring in fewer pathogens that way). He did preface his answer with the statement that he is not a medical professional and that he was stating that it was his opinion only. But maybe something to consider.

Editing to see that the question I answered might suggest that I was saying those types of cotton masks are medical grade. I didn't mean to suggest that and agree that it's not responsible for someone to use a medical grade mask now without a medical need. My apologies for any misunderstanding I created.
Terminus is available now and works well enough. It’s not a shell into local iOS, but that’s fine for me. and standard external USB keyboards work fine with a $10 Lightning adapter.

https://termius.com/ios
Because people assume ARM would give us better performance and/or battery life. Hard to know if that would actually pan out in the laptop form factor (and if it would hold true forever), but at least right now iPads get better Geekbench scores than MacBook Air.

As for more money and time… I dunno, I make my living writing mostly iOS and Mac software and I can't recall the last time I did anything that was architecture specific. I'd imagine that applies to the vast majority of people working on ordinary application software on these platforms.
I've driven fairly high end rigs (higher than the linked one) and found them very difficult to drive compared to the actual car and actual track. If you want to play around or aren't trying to learn a competitive edge, I'm sure these are great though.
> Are these experienced developers with multiple languages and platforms under their belt, or one-trick ponies that came from a bootcamp?

During the last recession, many of those that were let go were the "expensive" experienced developers that could command higher salaries than new hires.

I know several experienced developers that lost their jobs last week.
Chromium should work too, no?
I am surprised they don’t yet have a good “drone” car circuit with F1+ speeds on a physical car, with the driver in a simulator.
'In 2011, Swartz was arrested by Massachusetts Institute of Technology (MIT) police on state breaking-and-entering charges, after connecting a computer to the MIT network in an unmarked and unlocked closet, and setting it to download academic journal articles systematically from JSTOR using a guest user account issued to him by MIT.[13][14] Federal prosecutors, led by Carmen Ortiz, later charged him with two counts of wire fraud and eleven violations of the Computer Fraud and Abuse Act,[15] carrying a cumulative maximum penalty of $1 million in fines, 35 years in prison, asset forfeiture, restitution, and supervised release.[16] Swartz declined a plea bargain under which he would have served six months in federal prison.[17] Two days after the prosecution rejected a counter-offer by Swartz, he was found dead by suicide in his Brooklyn apartment.[18][19] In 2013, Swartz was inducted posthumously into the Internet Hall of Fame.[20]'

https://en.wikipedia.org/wiki/Aaron_Swartz
And you weren't using MacOS that is, right?
Wow this is really fascinating. I’ve seen a lot of support for FLAC but I’ve never been able to get an iPhone or iPod to read them. I wonder why flac and other high end lossless file formats are not supported.
If you download a free Android app the developers don't get your email address.
at a time when we're seeing a "rolling over" of one generation's possessions to another - baby boomers are actively passing their collections on (or selling) to the next generations in private transactions. So there are a lot of firearms changing hands to new owners now (for the last and next 5 years) that are unseen by these retail stats. Guns are a very durable good.

It’s a matter of changing tastes as well. A Gen Z would cherish her mom’s old M1911A1 as a family heirloom but she’ll want a tricked-out Combat Master for her own use cases.
Yep, a splash of coffee is what finally did mine in and they’re totally unserviceable.

Fortunately low-profile keys have been growing in popularity in the mechanical keyboard community so there are some excellent options to choose from now.
In CT terms, "CT has a universal property..."
Depending on the jurisdiction it might be. E.g. in Germany cold calls (actual phone calls) even for B2B are only legal under certain conditions (generally either preexisting registration of intent, or if it's common in the specific industry). I'm not sure what the regulations regarding cold e-mail or messaging are, though.
They do, but in practice they don't. Many European countries which don't have a right to bear arms still manage to have better gun laws than those three Latin American countries (and I should add, a number of American states).
We tried making three Sendgrids for every environment but we werent aware that Azure has a limit of two per subscription... We got 'banned' and cannot change any of their passwords, cannot login, remove them, reset in any way, Sendgrid support sends us to Azure support. On Azure support we got an guy who barely spoke english and prolonged the case with meaningless messages for over six months after which we gave up, issue was not resolved, we're stuck with two banned Sendgrid accounts within subscription. I guess spendings of 18k eur/month is not enough to get proper support.
Anyway, I think that just keeping yourself committed to "do something" every day it's not really a vacation. Sorry, but I find this nonsensical and bad example...
> San Francisco is the filthiest city I've ever worked in.

Literally.

How many of you reading this are in San Francisco and live in an apartment building? Go and check the trash room.

You'll probably find that Recology emptied out the bins today but left garbage, even if tied up neatly in trash bags, piled up against the wall or door.

Disgusting and unsanitary. What happened to common sense? What happened to people doing their job? Seriously, is there some law which says that trashmen are not allowed to place trash bags into a wheelie bin for expensive compacting trucks to get to work?

San Francisco is one of the worst run cities I have ever seen.
Agile is good in uncertain environments with frequent project changes, but not in other situations... Simon Wardley has a good model that seems to work reasonably well:

http://blog.gardeviance.org/2014/11/how-we-used-to-organise-...
"Government is extremely price conscious, and may even have regulatory requirements that dictate a purchasing process."

My nightmare scenario is when of the K Street wonders (or I street) gets their software required for a grant program. It is always awful which leads to a nice side business in training classes. I've had to deal with too many of these wonders.

To give a nice example, one piece of software needed an "update". This update came in the form of a PL/SQL file that needs to be applied. This file was 762 megabytes. No install program just a list of steps to run the sql file that took over 4 hours to complete.
I don't think that feature (Zap the Cap) is available in Western Canada though (I might be wrong). I think that's Eastern Canada.

(Happy TekSavvy customer intentionally paying more than Novus would cost because they were doing nice things politically, and the 25Mb plan is ~$5 difference. Might switch if I get a faster plan, though.)
See, I never get the tinfoil hat crowd.

Are any of us so self-important, that we think our usage stats for a text editor are some kind of top-secret data?

I mean, come on - it's a text editor - I edit my scratchpad and my coding projects on it.

If any of the stuff I had was that top-secret, I'd be doing it in a digital clean-room, with an airgap. And I'd actually have top-secret clearance.

How many of us here actually have top secret clearance? I'd bet very few...lol. And I doubt they'd be posting here, or admit it.

My list of text files I have open is quite frankly, is not that interesting. I don't really care if Google wants to mine it. Or if Github finds out I edit a document called "Lolcat images" fifteen times a day. I seriously doubt any Githubber is going to be sitting there, pouring through logs looking for salacious information about the documents I edit...
Harold and Maude
You should check out Everbread http://eu.techcrunch.com/2010/03/23/stealth-travel-search-en...

A really really impressive piece of technology.
You know some die hard capitalists would argue that all of your wealth should be taken away at death. That way, the wealth of an individual can only come from what you build and create during your life. Not that I think it is the correct or fair way of thinking, its seems just so wrong when death was unforeseeable.
The lack of open/cheap APIs is probably the biggest factor that keeps innovation in travel so slow.

My company, Adioso (YC W09) has a free API in beta. It's what's used to power http://destmapper.com/. Coverage is limited but soon to start expanding rapidly. Email me - tom at adioso dotcom - if you're interested.
Agreed. And I've also been a part of such systems where the defection on every person's part created a terrible environment over the very smallest of stakes. Most of my favorite people are those you reference but it doesn't make how bad it can get go away and I read the GP as indicating some rather than all.
People who are unwell probably avoid focusing on their interoception.
"Taxation is entirely about raising money."

I hope that it is interesting and noteworthy for you to learn that many, many smart and thoughtful economists do not agree with that. In fact, they strongly disagree.

Current thinking in modern economics - specifically in MMT[1] - is that money is created by loans and destroyed by taxes.

Which is to say, the government (provided it is a sovereign issuer of its own debts, like the US or the EU) has no particular use for revenues since they can just create whatever money they need. What is actually happening when money is taxed is that it is, effectively, destroyed.

[1] https://en.wikipedia.org/wiki/Modern_Monetary_Theory
Didn't you just describe all jobs in all countries? There are people who feel forced to do immoral or illegal things. For instance I was just reading about one server at a restaurant in USA. He accidentally dropped a steak on the floor but was told to wash it off and serve it to the customer anyways. The argument being the customer would get mad if his food came out later then the rest of his party.

How many factory style jobs do people work not because they want to but because circumstances force them to? How many employers exploit their workers because its unlikely the workers will fight back?
There's some research on interoception, I think with elite athletes and others, to judge how well they can sense their own heartbeat compared to other humans, and I think are much more accurate. If I find the link later, I'll attach it.
I've done similar things. I use 25lb dog feeders for chicken layer pellets (inside), I have an enclosed outdoor run, and I had a nipple waterer with a pretty big reservoir.

And neighbors to check in in the past, although now I have camera systems I can view live, and just ask my neighbor to stop by if something is amiss.

Overall it makes it relatively easy to leave as-needed. For me, one neighbor stop is typically going to mean I can be gone a couple of weeks, with likely no issues.
On the contrary, a person skilled at Twitter could have compressed the essence of what you wrote into 280 characters.

I’ve found the best books and essays are similarly compressible, with the rest of the information being about bolstering it as being worthy of the precious few slots in your L1 cache.
The upside is, you have lots of DAC's that fill that whole market and with that, better choice.

Now you can always use an external USB DAC, I personally use a Behringer UMC202HD, though the UMC204HD maybe a better model if you want to hook in external MIDI devices into the mix.
How? If you can travel back and forth and that makes it work, what is the problem? You can hate it, sure, but, at least where I live, people commute 3+ hours/day to make a nice living while living cheap. What is wrong with that?
> You're right, though; metadata on the allocations themselves marking them as release-on-memory-pressure would be much better.

http://man7.org/linux/man-pages/man2/madvise.2.html - MADV_DONTNEED allows you to provide such meta data now.
> that is when you get a cushy, highly paid job where you can virtually do no wrong because you studied at the right university, visit the right clubs and (therefore) know the right people

While it's du jour to criticize the wealthy for the occupations they choose, I take issue with the idea that the jobs are "cushy" and ones in which you "can do no wrong". It's certainly true that going to the right university and knowing the right people gets your foot in the door, but for the most part the people who get these high paying jobs are immensely qualified. And the jobs they are doing are in fact challenging and you will be fired for underperformance.

I've been going through the interviewing process at one of these universities and while on the whole I'm not impressed with the quality of the students here compared with e.g. my high school (and I think there is a lot of smugness and false sense of superiority among many of my peers for presumably being smarter/better than everyone at a "lesser" school), I am, however, very impressed with the students I've met in the final rounds of the interview process for some of the top tier banks and other financial firms. They are among the most intelligent and well rounded of those I've met in school.
Doesn’t this by definition mean that you’re in a social media bubble with those who agree with you?
I quit about six months ago. The majority of people I followed, I felt obligated to follow, in order to keep ahead of social issues. But the toll of "doom scrolling" constant negative/angry/depressed posts really hammered my own mental health. I also developed a habit of refreshing the feed on my phone every five minutes.

I quit, and I found myself lost when I picked up my phone, like a lingering habit (I see someone mentioned it being similar to quitting smoking).

On reflection, I think the reason I felt an obligation to keep up with social issues etc, was because I was using my real name (ironic that this HN account is also my real name!). I felt like I had to show I was caring and keeping track of it. I do wonder, if I create an account without my real name, I can just use it how I like, and maybe it will be a different experience.
> praising unifi you are just suffering from new-shiny-toy-syndrome

I was responsible for a small office, and I tried a bunch of different big-brand expensive prosumer APs, and they all had troubles.

I then tried Unifi gear, which wasn’t as easy to set up, but it worked flawlessly and has done so for years. I’ve since used a few different Ubiquiti products in a few other situations and the gear has just run solidly with zero trouble.

I have used other reliable gear: the Apple Airport was great but now discontinued, every Fritzbox I have dealt with has been fine, and I currently have a Mikrotic at home which has been reliable (albeit in a very undemanding environment). I am about to add a outdoors Ubiquiti AP at home.

Maybe gear is more reliable now, but I recommend Ubiquiti to friends and it hasn’t let me down yet.
True. On the other hand, $79 (or even the discounted price of $29) is pretty steep for what is only one minor optional tool in a dev's toolset. Imagine if you paid a similar amount for every single tool you use, no matter how trivial.

If you have a microtransaction for everything in your computer, they start to add up pretty fast. At some point you have to pick and choose, and nice UI themes start to seem less essential...

(Also, do note outside the first world $29 is not such a small amount of money. And $79 is unthinkable for a UI theme).
Shipping Summer 2021

Does it actually exist?
Journalists outsourcing their job to squeeky wheels volunteering outrage is a problem with the journalists' superiors, customers, and sense of duty, not with the channels of communication available to us by technology and law.

But instead, we will suffer through algorithmic and legislative harrassment because the user is always the problem, not the corporate marketeers.
Node has had a built in HTTP server since v0.1.17, are you sure those examples didn't use that? Because if they did then it was the same in those examples as it is now.

Source: https://nodejs.org/api/http.html#http_class_http_server
I find that the problem is that the better you become at engineering (i.e. designing and writing your code) the worse you become at debugging. This is because in a well designed system you have many (as many as possible) independent components that you can look at one piece at a time and you've written the appropriate unit tests for them. And subsequently you don't spend that much time in the debugger. In my experience this way most bugs (integration bugs aside) are rather trivial. In my own projects (over the past +15 years) most of my debugging involves just running gdb on my unit test until a test assertion fails, setting a breakpoint before the failed assertion and rerunning so that I can step through the computation.

On another note there's actually this thing I'd like to call "debuggability".

I find that if you just thinking of this as a measure of how easy your program is to debug and when making design decisions you think of "which design makes this thing easier to debug" your program will be simplified. To me mean high "debuggability" at design level means cohesive independent components which makes it easy to write unit tests for them which then subsequently makes it easy to debug them as well.

Other thing is sometimes I see people write code like this:

getFoo()->getBar()->doComputation();

or something like

doComputation(getFoo()->GetSausage());

And depending on your debugger this can be super inconvenient to debug through. For example with gdb trying to step into any specific function basically requires you to find that function and set a breakpoint there. Otherwise you'll have to go through a lot of unrelevant stuff (especially if you're for example using std::unique_ptr)

If you used some temporary variables to store the results of those function calls again you'll make your program more "debuggable".
I think Chinese TikTok is insulated
I would guess the wind blows into the slit, driving just one side of the paddle.
The number one thing that will derail the whole “public cloud” is the idea that the cloud is not public. It is highly likely that every Fortune 500 company has at least some business that someone in the tech sector would find unseemly. If they get the idea that they are an employee protest away from losing their business, they are not going to transition to the cloud.

For this reason, Microsoft, Amazon, and Google have been signaling that they intend to keep it a public cloud. Going forward, it is reasonable to expect that the workers who do these type of protests will find themselves let go from the companies.
When you dial a connection is made automatically. When you use an operator they're having to manually make that connection (literally manually using a wire in their hand back then.)
I always find stories like this fascinating. It always reminds me of how fragile our futures are. If Google was acquired the internet will be a VERY different place today. I find it humourous because this kinda brings to mind Skynet from the Terminator. In the movies, they spend a lot of time sending killing machines to the past to take out people who would invent the future and it causes a great deal of chaos, while all they might need to do is add a clause in a merger or acquisition that botches a deal that prevents Skynet from existing and the mission is accomplished. LOL
Sounds like you believed in their "mission". All that is PR. Changing to a startup will be to believe in someone else's "dream" who also will transform into selling out or a power struggle. And that will burn you out even more.

I'd use some of that money to invest in yourself. Take as much vacation and benefits as you can. Make the moves to achieve FIRE.

Pay someone to help you with your side projects or to teach you things, this can be a good exit with open source turning into a startup (perhaps pay someone to find your future clients before you take the jump). Be careful, your FAANG sting probably twisted your view of the world. See Lean Startup.
As well as cutting 98% of your workforce as no office employee knows how to work on anything different.
Setup a monthly donation?

https://donate.mozilla.org/en-US/
Hard to say. Do they lose reputation? Did they not do something else?
Why "Oddly?" The F-15 was the best air supremacy fighter of that era; perfect for escorting bomb-laden F-16s that would have had a difficult time protecting themselves.