skysight-inc/HackerNews huggingface dataset:
You don't need to specify the lifetime annotations on print_refs because the references aren't returned and are unambiguously just the lifetime of the function. The compiler will fill those in for you -- even if the lifetimes of x and y are different, just so long as x and y live at least as long as the function.

fn print_refs(x: &i32, y: &i32) {
println!("x is {} and y is {}", x, y);
}

In general you only need to specify lifetime parameters when there's an ambiguous situation. For instance, the following builds and runs just fine.

fn make_substring_of(input: &str) -> &str {
&input[1 .. ]
}

I'll be the first to admit it takes a while to ramp up into Rust. Part of that is learning to let go and trust the compiler. Unlike many other languages, it won't hurt you haha. It's on your side. Sometimes you need to you know, give it a little more info so it can do it's job.

The Rust team has made huge strides in improving writability of the language, especially with non-lexical lifetimes.

Soon, `fn` and `impl` and `Vec` fade into the background, like `char` and `short` and `long`.
Maybe people wouldn't be leaving if they weren't paying $8k/mo for an apartment that's an hour commute from their office?
NYC yes, Chicago and LA, only brief visits.

But yes, I was in the Tenderloin at 1 am on a weekday and felt unsafe and was followed by some people saying they would kill me. ¯\_(ツ)_/¯
When I say first gen product, I mean the whole product, not just the chip used. It would be a very different situation if we were talking about an upgraded iPad with a new chip. This is a platform defining moment.
Studies and data tell us otherwise.

https://www.cbsnews.com/news/covid-face-mask-protection-vacc...

https://www.health.com/condition/infectious-diseases/coronav...

People in Asia, from both what I've seen and what my relatives keep telling me, no longer quarantine or social distance. Case in point: Singapore. They have a larger population than New Zealand yet live on an island that's smaller than NYC. They have virtually no local cases. They all wear masks.

btw which country were you referring to that had both mask mandates and strict border controls, and simultaneous are unable to contain it? Doesn't New Zealand has both? They seem to be managing it just fine.
Why in the world did you travel from Chicago to SF a few months ago? I hope you work in something essential.
> Rust doesn't get why C programmers still use C at all.

Because Rust is redundant, its safety guarantees are a subset of safety guarantees of ATS[1]. A project in plain C integrates more naturally with it at any point of its development cycle[2], and it doesn't require giving up safe pointer arithmetics[3]

[1] http://ats-lang.sourceforge.net/DOCUMENT/ATS2FUNCRASH/HTML/c...

[2] http://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/HTML/...

[3] http://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/HTML/...

EDIT: those who downove, let's discuss the topic in substance and let's avoid zealotry. If you promote and pitch Rust to the audience of C by advertising its safety guarantees, zero cost abstractions, and how well it integrates with C ABI, at least be consistent when it turns out that there's another $TECH that does it safer and more consistently with C programmers' reliance on certain useful features of C.
> In theory, this is the kind of thing that the GPL v3 was trying to address: roughly speaking, if you host & run a service that is derived from GPL-v3'd software, you are obliged to publish your modifications.

Why would I trust someone to do that, though?
With that attitude, I would never, ever, ever, hire you.

As a footnote, I would expect you to be able to understand things like SSD performance and reliability, and how it's affected by complex algorithms in the drive controller (e.g. wear leveling, garbage collection, write block size, etc.). I would also expect you to be able to understand things like how subpixel rendering works, how rendering engines coordinate within LCD refresh, or how displays advertise their parameters to computers.

You shouldn't take those as black boxes either. You do get into bugs and issues which relate there, and an experienced software engineer will have a depth of knowledge around oddball topics like that. That brings huge value.

It sounds like you're not a nerd. Why did you go into software engineering? It sounds like you're not interested in the stuff. There are lots of career tracks which don't expect people to do those sorts of deep dives, and where willful ignorance is okay. Engineering, including software engineering, just doesn't happen to be one of them. All the good software engineers I know will do dives into this stuff, and that expertise accumulates over time.

The key thing is most of us enjoy those deep dives. That's what makes the career track a good fit.

If you don't, you'll be doing the equivalent of maintaining a COBOL database on a mainframe as you get older.

For my engineers, I'm not looking for tools which are "Completely intuitive, just works™." That's Scratch. I'd advise you to code in Scratch if that's what you want. I want tools which enable people to be productive, efficient, and get stuff done at a high level of quality. If that has a learning curve, that's okay. People are coding 40 hours per week. If my programmers spend a month learning each year, and that makes them 50% more productive, they'll beat your Scratch team. That's why good programmers get paid the big bucks, and mediocre programmers can't find jobs.
> endless cd-ls loop

Better to have "chpwd() { ls }" in your .zshrc as this executes ls after cd'ing to save up on your infinite amount of ls typing.
Healthcare pays very, very well.
Hopefully as long as SEO results make including 'Apple' or 'iOS' redundant keywords. NSAnything suggests both when searching for errors and general debugging on StackOverflow.
Some of us hackers feel the same way. I'm the author of a paid-but-GPLv3+ program called RCU[1] that almost 400 people use because they don't want to, or legally can't, interface with a cloud. I never connect my tablet to the net except to get software updates.

[1]: http://www.davisr.me/projects/rcu/
I'm not sure why email should be an example of the correct way to do it. And with email I can check my spam folder and see exactly what has been rejected. So unless the search engine has a list of sites that aren't deemed worthy included with every search (which probably wouldn't happen), I think this solution has some pretty big flaws. It should be noted that the current system also has these flaws, as Google and DDG can show you whatever they want base don whatever criteria they see fit.
Instead of forcing people to read certain books to check off certain criteria, we should be teaching people how to read and choose their own books, encouraging them to broaden their horizons. There will never be a perfect curriculum.

And also, the "black perspective" is not a monolith - this is another example of white people trying to put it in a box that's easy for them.
The problem with emacs-based solutions is the speed.
The ISA differences between ARM and x86 do not account for the difference in performance, there are multiple factors here (process, ssd, memory bandwidth, cache, thermal reservoir, etc).

While this is wonderful for ARM in the now-term, we just moved from walled ISAs to a plurality of ISAs, compute just became a bulk commodity in a way that it could not with an x86 duopoly.

Anyone can now take off the shelf RISC-V designs that are currently at > 7.1 coremarks/mhz and get them fabbed on Glofo or TSMC. If you need integrator help, you can use the design services of SiFive.
You do get a power benefit from keeping the RAM in-socket rather than having to go out over more wires to reach the RAM.
Good to know developers have their own nonsensical conspiracy theories.
Drew has a longstanding history of ill-informed rants ([1] [2]) about technology. He's also quite willing to lie about the facts[3].

[1] https://news.ycombinator.com/item?id=24121609

[2] https://news.ycombinator.com/item?id=23966778

[3] https://news.ycombinator.com/item?id=24023998
Adobe has a native M1 Photoshop in beta now and plans to port Premiere after the first of the year. You may be overestimating the effort to “port” to M1. For most apps, it is just a new compile target and a bunch of regression testing.
That Sony you mentioned is 1k USD. Is it locked down and unhackable for that price? I like my free software and Linux environments.
I wonder if Apple will bother to produce a CPU with desktop-level TDP. That would really compete with the Ryzens.
Don't feel bad because you like the stars.

This kind of anonymous, yet visible positive feedback is what keeps developers motivated.

We are not machines and having a simple yet effective way of expressing appreciation is a good thing.

Sure, it's less personal than say a postcard or an e-mail, but it's a token of appreciation nonetheless, a virtual pat on the back that even the most socially inept users know how to use.
> If SourceHut eventually grows in revenue — at least 5-10× its present revenue — I intend to sponsor this as a public benefit project, with no plans for generating revenue.

I like this attitude. Makes me happy to be a paying member of SourceHut.
Not necessarily bullish on SF and california in general, but the bull case is:

California has GREAT weather and natural beauty. Frisco has the best west coast port and should continue which will allow it to capitalize on continued east asian growth.

The midwest is pretty awful from November to April (especially the lack of sunshine).
Usually coupon sites are very profitable because they signal immediate intent to purchase, I assume they have affiliate links for whoever they're providing coupons for, any kind of coupon site is usually in fierce competition.

As for all the bot countermeasures, the reason for that isn't immediately obvious to me, I assume it must be due to that competition.
Apple M1 MacBook Crashes Chrome on Google Login Page
"big ass company" is not a synonym for monopoly. There are dozens of competitors in the pharmacy business
The real key to buying pre-ipo shares is having the right friends - you have to be accredited, but that doesn't really get you access. Realistically, the CEO / influential board members has(have) to be convinced to let you buy in a secondary offering...just b/c you are accredited doesn't mean anyone has to let you buy.

Very few companies allow individuals to make unapproved resale of shares through the secondary markets and it's fairly uncommon for a board to approve those types of requests. The typical way it happens is there is a secondary offering, or new funding, and they let in people they want in.
> Parts of Chicago, Baltimore, Detroit, Oakland, Philadelphia, etc etc etc?

Yeah, I think how "sketch" the mid-atlantic cities are is mostly overrated by people afraid of black people. The mentally ill on the street are much more concerning safety-wise for me.
How to Be a Command Line Wizard
The 2x number you're claiming was only for geekbench multithreaded, which was the only multithreaded comparison between those two in the Anandtech article. You're trying to make broad sweeping claims from that one data point. That doesn't work.

Take for example the CineBench R23 numbers. The M1 at 7.8k lost to the 15W 4800U in that test (talk about the dangers of a single datapoint!). The 5950X meanwhile puts up numbers in the 25-30k range. That's a hell of a lot more than 2x faster. Similarly in SPECint2017 the M1 @ 8 cores put up a 28.85, whereas the 5950X scores 82.98. Again, a lot more than 2X.

This is all ignoring that 2x faster for 4x the performance is also actually a pretty good return anyway. Pay attention to the power curves on a modern CPU or what for example TSMC states about a node improvement. For 7nm to 5nm for example it was either 30% more efficient or 15% faster. Getting the M1 to be >2x faster is going to be a lot harder than cutting the 5950X's power consumption in half (a mild underclock will do that easy - which is how AMD crams 64 of these into 200W for the Epyc CPUs, after all). But nobody cares about a 65w highly multithreaded CPU, either, that's not a market. Whatever Apple comes up with for the Mac Pro would be the relevant comparison for a 5950X.
Searching on the Costco website has a 2-3 second delay between each entry for me.

I think there are two routes to making software faster for users: 1) intense education of developers and rewarding them properly for keeping software responsive, and 2) only letting them develop on 5-10 year old hardware. I'm not really sure 1) would work with many teams, but I'm pretty sure 2) would.
and that is without counting Cygwin which IIRC uses another calling convention
the nice thing with the web is that developers respond reasonably fast (much faster than desktop apps) to changes like this in major browsers...
There's men who care because society cares but don't want to spend all the effort gaining the instincts themselves. Probably also useful for people who come from, for example, poor families and never had guidance on such things growing up so would need to devote extra effort to gain the instincts.
To echo the others: it's very much a niche + enthusiast device still. Though not to as much of a degree as the rm1 at launch :)

If you're not excited about the very limited feature-set, or because it's hackable, I'd pretty strongly recommend looking elsewhere. Much more user-friendly devices exist at similar prices, but they're locked down / run android (so less battery life, various android benefits and issues) / not as thin.
It really isn't. If nothing else, nuclear families and living in isolation are dumb. I'd really prefer to live next door (or in the same house as) a grandparent, maybe uncle/aunt, etc. and we could share the childcare burden - watching 4 kids for half a day would be a lot better than 2 kids all day.

Nevermind that if they play on the street - a perfectly normal activity before cars - a driver will kill them :-(
1) I don't think its consensus that aerosols are a MAJOR source of spread.

2) Masks are much less effective for aerosols than for droplet transmission. I think the consensus is they at least somewhat reduce aerosol transmission. Only n95 w/o exhale vents that are properly worn are believed to be good at reducing aerosol transmission.

The fact that your glasses fog up shows that surgical masks certainly are very leaky.
Thanks!

This is a good question; AI and DL has been used for a little bit in physical design (in a scalable way starting roughly the past few years or so). The paper has some references at the top of page 26), but [0] and [1] have decent overviews as well!

-----

[0] https://www.degruyter.com/view/journals/nanoph/9/5/article-p...

[1] https://pubs.acs.org/doi/10.1021/acsphotonics.7b01377 (an arXiv link is found here: https://arxiv.org/pdf/1710.04724.pdf)
Sure you can reduce power production, just insert control rods, but that comes at a severe cost to efficiency, costs that at large scale become far more of a concern, especially when nuclear is already nearly prohibitively expensive.
Like CAs, the power company can be controlled by the government.

Let's say governments ban youtube-dl. The prosecution gets a court order to order CAs to not renew youtube-dl.org. If they're using a Let's Encrypt style 30 day certificate, youtube-dl has 30 days to comply or be soft-banned from the internet.
I just moved to a 3x bigger apartment for a 50% rent increase. Not everyone is wanting to move out, many people here seem to be trading places to improve their quality of life, leveraging the lower rents and higher availability. The city is starting to remind me the SF of mid-2000s, minus the rave parties.
> the AMD 2990WX comes in at

Oh, neat. What kind of battery life do you get on your AMD 2990WX ultralight laptop?
It’s possible to use health checks for that kind of “wait-for-it”-s. Checkout the configuration here: https://evilmartians.com/chronicles/ruby-on-whales-docker-fo...

Note that it requires using Compose v2.4, not 3.x.
In addition to everyone else’s points, I’d like to note anthropogenic sources produce CO2 at 60-70 times the rate of volcanic emissions.
Does anyone know how to correctly deal with these paused tabs for computing incremental games with timer based events?

It claims that it still ticks timers once a minute for background tabs, but I can measure that it ticks exactly zero times for background tabs (and from now on also for foreground tabs that are occluded...), and in addition may also lie in results of Date.now(). So what does the article even mean by "once per minute"? If I put a tab in background, it immediately stops any tick, if I bring the tab back in the foreground 24 real life hours later, it'll have been 24 real life hours since its last update, not one minute, as I can see by printing events in the console.

That makes it difficult to correctly update how much resources were produced in the game, etc....
I lived in SF briefly, 1 year, back in '94 during the 3D graphics boom that I was a part - and then it was too crowded and too expensive to live, forget about owning a home without startup equity wealth. I moved back to Los Angeles, and from then till now I rarely visited for the simple reason that once there in SF there is no place to park your car (all filled, gotta leave the city) and lunch at a non-franchise was $50 10 years ago.

Only old money, youth that knows no better, tech hope gambles, and those trapped in debt remain. The city is unhospitable.
Looking back, I think the issue here is that most of the people who give me (mostly unsolicited) parenting advice (VERY MUCH MY PERSONAL EXPERIENCE INCOMING) is sub-urban middle-aged moms, who genuinely have no idea that this reaction is a biological one specific to females and the child-birth process.

There are plenty of things I miss about the south, but unsolicited parenting advice is one of them. Very much a "you're not really an adult" vibes
It really doesn't. AMD has essentially the same perf/watt coming in a few months. ISA doesn't change anything nowadays because it all gets decoded into a per-CPU specific actual instruction set anyways.
Larry Ellison proposed a thin client that was basically a dumb computer with a monitor and nic that connected to a powerful server in the mid 1990s.

For a while we had a web browser which was kinda like a dumb client connected to a powerful server. Big tech figured out they could push processing back to the client by pushing JavaScript frameworks and save money. Maybe if arm brings down data center costs by reducing power consumption we will go back to the server.
I lived in Manchester back in 2017 and even though I never worked at PillPack somehow I know names of celebrity clients they had at the time.
So when people protest, are you going to break up the protests?
Are they going to commingle inventory on medicine too or do they already do this with OTC meds?
I guess not. For a while the tourist areas were relatively clean, but it seems it was just displacing the problems to the other areas. I'm not sure tbh, but once the lockdown started, there were days downtown looked straight out of the Walking Dead.
I’ve been using Safari as my daily driver for some time and it’s quite nice to use. Don’t be afraid to give it another chance.
I don't use `reflog` often but I've found that 9/10 times you make a serious mistake in git, it ends up being the go to solution.

As for `bisect`, it's magic. It is used to binary search git commits back to X point in time. You can use it to manually go through previous commands to find what code/how long ago a bug was introduced. You can also rig it up with a test command (say a unit test that you copy out of the working tree/keep in a separate worktree) and have it automatically sift through the commits and tell you the first point where it starts to fail.
Why do I want to invest in the particular way of thinking required to use GUI file browsers when I have a plethora of options in the terminal? (ranger, lf, mc, and nnn being the better know ones, but there are others too)
Nothing stops "people who don't have a voice" from posting misinformation, lying, etc to bring about the revolution faster.

Also, almost all of the people who have large followings in Twitter have large followings in real life. That is, they are people in power trying the use the platform to disseminate their propaganda.

In the case of the Twitter revolutions, they are revolutions in far away countries that align with American geopolitical interests, so an American would be inclined to agree with it (due to media, society, their own material interests) and consequently rationalize it.
Anecdotally (Sunnyvale) I didn't see any offers to drop our rent to match what new tenants were getting, but you can always hack that by moving. Hell, maybe a bunch of 124,131 change of addresses are people moving internally to take advantage of reduced rents. (FWIW, offering 1-2 months free rent seems to be much more popular than actually reducing rent, too.)
See-Through UIViews: Using CAShapeLayer and UIBezierPath to Mask UIView Holes
Isn't it attached via a wider bus?
Also, it's not like we're born with DNA testers. There's no reason why our instincts actually know the difference between our biological kids and others we've been with, played the same role with, and raised the same way.
Monopoly is not a synonym for "bad for consumers" or "company that should be broken up". Using it this way only confuses the issue.

I think it is more productive to advocate for a point in plain english.

Why argue that:

1) The existing definition of a monopoly is wrong

2) Your definition is right

3) companies that meet your definition should be broken up

4) Amazon is a monopoly by your new definition

5) Therefore, Amazon should be broken up

When you could just say:

1) Amazon is too big and bad for consumers
you might like zig.
But electricity is not 100% efficient either. At the very least you have transmission loss (to compensate for renewables intermittency you have to transfer energy farther), round-trip energy storage efficiency, EV efficiency. Also during cold weather you would have to spend electricity to heat car interior, while for gasoline cars this heat is "free". And don't forget that maintenance of renewable plants requires more energy, due to the low density of the exploited energy sources.

In the very best scenario for vehicles you would get somewhere around 1:2 ratio, not even close to an order of magnitude.
I think Google sort of takes into account "votes", in that they look at the last thing you clicked on from that search, and consider that the "right answer", which they then feed back into their results.

As such, they effectively have a list of "tier 1" domains.
It's not just about control rods. Naval reactors also ramp up fast, which allows you to ramp them down more often without incurring long ramp-up periods. They're very good reactors, and the USN has a better safety record for running reactors than any other organization on the planet.
tell me something I don't know... I know you know what I know.
Please read this entire series of tweets, which starts off looking unrelated but is actually entirely focused on this topic. It was written by me--someone very famous in the security field--and I don't know if anyone in said field who disagreed with the Apple/security sentiments... that Apple was better than Android at malware issues ended 2-3 years ago.

https://mobile.twitter.com/saurik/status/1295024384596312064
Unfortunately the Bay Area has squandered (or simply exhausted) its imagination capital. The region is more associated with the political shenanigans of social media users and companies than creation of cool, subversive technology. And as far as the VC pull, it's diminished with capital flight, and I expect the next boom will see a lot of startup activity on the Front Range.
Take a look at Ranger. Ranger gives you the ability to do things like bulk edit files within a vim editor. Try doing this on the cli with the same efficiency and speed. This is where a term file manager really begins to shine...