skysight-inc/HackerNews huggingface dataset:
> Did you also implement object pooling for the Java variant (commonly used in high perf apps)?

In the specific case I don't think you need to; I've seen generated code (from java sources) simply reuse an object in a tight loop. IOW, it doesn't allocate new memory for the instance within a loop, for each invocation of the loop. The memory for the instance is allocated once and then reused.

(For a small allocation (a small instance) I would expect a smart compiler to not allocate anything and simply create the for-loop instance on the stack).
And they are crying about semiconductor shortage, and blah blah...
Ask HN: What is your spiritual practice?
Your day-to-day one?
I've recently began to take life tracking semi-seriously and mostly use "off the shelf" tools. A good all-around dashboard is https://exist.io/, capable of pulling data from multiple sources like RescueTime and various health-monitoring applications that come with smart watches.
I am curious to see where this goes. VR for productivity has a lot of uncaptured upside. Putting a whole Linux OS on it seems to be a great idea.

I am surprised that Apple or Google are not in the VR space as one company invented the iPhone and the other spearheaded Android. Both are relevant forms of experiences that could help in building a VR headset suited for productivity.
The other people you work with may not, #1 reason to choose a language despite my own knowledge of C++ :D
Heck, even Starcraft's source code was lost by Blizzard. It was then recovered thanks to a random guy finding a golden master source code disk in a "blizzard stuff box" he bought through ebay https://mashable.com/article/starcraft-source-disc
I don't think we know yet with much certainty. But I'll tell you this, it's a lot easier to get a vaccine booster than a natural immunity booster.

Not to mention, the body of evidence that point to the vaccines providing super-human immunity (i.e. better than natural) continues to grow.

Much of the original "natural immunity is the best" idea came from a single Israeli study.
On the other hand two weeks ago I tried to delete my GOG account which was a very annoying and unnecessarily complicated process.

Companies just like to decide what is 'good for us', which ends up being what is good for their own metrics.
> It’s a excellent example of optimizing for metrics instead of optimizing for people.

It seems like the opposite. The change directly led to less complaints from people. It's more like optimizing for human comfort rather than giving people what's supposedly best for them via an objective metric. Though I'd say even more specifically (assuming the story is even true) it's optimizing for keeping the small percentage of squeaky wheels comfortable.
You would have to stick exclusively to downloading though. As soon as you upload as well (e.g., torrents) the defence that you have a valid licence for your personal use no longer suffices. And even if you are fine from a legal standpoint (which I fear may not be the case in every jurisdiction), there is still the financial risk of getting sued by someone with much bigger pockets.
The logic is that white has the advantage of going first, so black gets the advantage of winning stalemates.

This is not anywhere near balanced, though.
Yes they often are.
Of course cars are more problematic. That doesn't diminish any problems with scooters. The thing is they are regulated. A car driver has obligations written in law.

In my home country they can't even decide what to classify e-scooters as.

If I were to try to ride a bike as people do with scooters I would be stopped - not unlikely by the police. Would I park it the same way some responsible (and presumably drunk) citizen would throw it in the river.

I think the reason why this space is unregulated in my home country is because bikers use their common sense, because biking is a lot harder than using a scooter. I wouldn't go 25km/h in a pedestrian zone because sooner or later I would probably hit someone. When I am on a scooter I have to really think before I drive.

I don't think cars and scooters compete for the same space. Pedestrians, bikes and scooters compete. The vast majority of people going on scooters do so instead of walking, biking or going on public transport.

If I could decide all city centres would be void of cars and people could bike and scooter on the old car roads to their hearts delight. Until then I would prefer scooters to be driven responisbly, either through regulation or common sense.

In my 34 years alive I have never been hit by a bike, yet in the last 3.4 months I have been hit by a acooter twice. Once in the back on a pedestrian street when the driver turned a corner and wasn't expecting me to stand at a bus stop. The other time on a bike because the scooter driver did not follow the most basic traffic regulations ("the rule of right" - the obligation to let someone coming from the right to pass if no other instructions are given).
I think there's something worth looking into here. Great insight about the "crap filter". What would you say is the most technically ambitious part about this project? I'd reckon that it is the resources to constantly pull updated content from all monitored pages at an acceptable frequency e.g. daily/hourly/minute-ly.
The thread I'm seeing is a top-level comment about C#, a reply that is on-topic and mentions Rust, and also assembly, Python, Hg, "scripting languages", and wasm.

Rust is exactly as relevant here as any of those other items, but people are getting really upset about the Rust mention.

I think in a discussion that already started by comparing different performance characteristics in different languages in a VCS, it's not at all out of line to bring up the fact that another VCS is being rewritten into any particular language. It seems to me that the anti-Rust sentiment is far more disruptive and off-topic here than the mention of Rust in the first place was.
Of course, what they should have done is improved the baggage handling time.
Don't know how .Net, but many times I found that Java HotSpot compiler is weaker in optimisation strength than C, C++ and Rust compilers.

For instance see this: https://pkolaczk.github.io/overhead-of-optional/

As for databases, C++ has not only a performance edge over Java (and possibly .NET) but it also offers superior non-memory resource management capabilities. Databases manage a lot of resources that are not memory, and RAII is a game changer.
> You’ve never had a teammate who was just ALWAYS online on Slack?

Yes, but I don't care if they are, it won't make me.

Where it becomes toxic is when the CxOs are on slack 24x7. Then it becomes a company direction, whether explicitly stated or not.

I've also seen the opposite, where the executive team set an exemplary tone about work/life balance in actions and words, so that becomes the company culture.
Trump was never really anti-vax. What Trump did to make all of this so much worse was foment distrust of the media and experts.
I also looked up recently and realized it had been ten years of doing something similar. It’s fun to see what we did differently. Your daily activity data is amazing

I ended up moving towards the mental side, to see if I could measure aspects of flourishing and wellbeing, and more recently to see if any core attitudes about the world are changing over time.

If you’re interested, check it out for comparison:

https://lars.yencken.org/ten-years-of-measurement/
if ur fine with writing 4 lines of code a day from an expert...i guess
Does Tumblr have to be an app for any non-marketing reason?

If your website allows upload of porn, let it live in on the free internet as long as we still have it and don't waste resources on making it an "app". Problem solved. If that eats into your returns in a significant way, you don't have a viable business model.
Apple has (supposedly) been working on VR/AR tech for quite some time, but the release date keeps getting pushed back. Latest reports suggest a 2022 launch for their VR headset.

VR is in a very good place, but it still has a lot of jank. I imagine Apple is working through as much of that as possible before releasing anything.
1. What powerful political and economic interests WANT those things to stay in place? They are mostly bad for both politics AND economics.

2. Its crazy to me that one of the things coming out of all of this is that we should get rid of quarantining. I wish the conclusion people came to was "wow, we should definitely have people quarantine when theyre sick instead of going to work and getting coworkers sick"
Android auto, if you do not use google apps or music players, is useless. It only allows google apps and some music players to display on your car's screen.
> It seems a bit silly to me, as it seems to cost the employee more than the benefit the employer receives from that clause.

Are you surprised employers can exploit unskilled laborers? It's not silly. It's asymmetrical power resulting in exploitation of people who don't have many options in jobs they can find.
"Asian" - so in your mind, from Iran to India to Japan, all people have the same culture?
I use Toggl for this — there's an app for every platform, so it's a keyboard shortcut away.

https://toggl.com/

It seems designed for people who want to bill their time, but works just as well for people who want to track 24/7. It takes some patience for a week to get into it, but now it's second nature.

While reviewing the data at the end of the week is useful, I've found the greatest benefit is requiring myself to choose how to spend my time. Getting distracted (e.g. browsing Hacker News!) requires the mental step of stating "Now I'm going to distract myself".
Not quite the same thing as the article talks about, but I’ve been semi-regularly journaling and note-taking for many years using various systems, ranging from Microsoft Word, to plain text files, to Tap Log, to OneNote, to Day One, to homemade CLI apps. Some semi-structured data like the article describes, mostly unstructured text.

Earlier in the year I discovered Joplin and I’ve stuck with it, enjoying its balance of structure and unstructure. If it had the instant-data-entry-into-CSV feature of Tap Log it would be perfect, but nevertheless I decided having one journal / personal data repository was better than having several, and set about importing all my entries from my previous system. I now have many, many thousands of entries spanning over nearly 25 years, and I’m happy to report that Joplin is coping well.
NTT Docomo operates n79 (4.5GHz) for 5G in Japan. Maybe it's the only network use n79. (It's hard to find supported phones in open market rather than docomo model, except iPhone) https://en.wikipedia.org/wiki/List_of_5G_NR_networks

According to assignment map, it uses 4500-4600MHz.
https://www.tele.soumu.go.jp/resource/search/myuse/use/10000...
Clothes are an interesting point to make. One of first industries to develop in emerging economies is textiles. Africa is having to bypass that because it is undermined by our castoffs.
Hey I did try to invite him to talk to me in private where I can explain a complex situation more thoroughly. But if one is only "kinda interested, but not very interested" and wants a quick summary in an HN post then one has to be contend with oversimplifications.

I understand why you criticize me, but rather than criticism I'd like to hear solutions. I had a conversation with my contact from Xinjiang yesterday (who regularly talks to westerners to explain the situation) and he told me how basically nobody in the west is interested in the complex truth; everybody wants simplifications. Which really limits the explanations he can give.

So, what is your solution? If you have a link to a better summary that you believe is

1. more accurate,

2. able to explain things from a westerner's perspective and able to provide the paradigm changes needed for proper understanding,

3. yet short enough to satisfy readers that are only casually interested,

then I'm all ears and I'll consider recommending your source next time.
Checkout airtable. Functions like excel but you can make survey style webpages that will drop data responses directly into your database
Rust rewrites are often excellent and very fast. (ripgrep, fd, ...)

A big reason is that they are usually multi-threaded, while the C counterparts are not.

Writing (memory)safe and maintainable parallel code is much, much easier in Rust than in C.
I think the argument (which to be clear, I don't agree with) is that there isn't a big federal database of vaccinations. Now mind you, if people understood how the EU QR codes work (public/private key), they'd realize this wasn't an issue, but if people are staunchly anti-vax / anti-science, this is probably a big ask...
Startup Restores Einstein’s Father Hydroelectric Powerplant
To me it seems amazing to use just one minute. I guess I'm not that fast :)

I agree that logging is a great steering mechanism but I guess that you first must have a goal what you want to achieve.
Theoretically, your point stands. But practically, it's not a valid conclusion unless you're saying that it's practical to say rewrite all 27M lines of C code in the linux into optimized assembly for multiple cpu architectures. Or even the various x86-64 families.
If it was only 30-35% to achieve this that would be great.

Sweden has a ~55% marginal tax rate for everything over SEK 309,000 (approx 55k USD).

55k USD isn’t much in most US tech companies.
I had a crazy ex use an Airtag to stalk me. I went to the Apple store to complain, and was told by the aggressive 20-something Apple employee I “probably deserved it”, that she has people come in every day to make complaints about Airtags and that if I didn’t leave or buy something, she’d call security.
> I agree that reducing the risk constitutes a reward. I don't agree it constitutes a high reward, since the reduction is only marginal.

I suggest you review your definition of "marginal". Even the use of low-effecriveness cloth masks have been observed as reducing the symptomatic seroprevalence of SARS-CoV-2 by about 9%, and in the outbreak aboard the USS Theodore Roosevelt it was associated with a 70% reduced risk of infection.

https://www.cdc.gov/coronavirus/2019-ncov/science/science-br...

I also couldn't help notice how you base your personal assertions in no evidence or observation, and instead you simply repeat your baseless assertions without any substance. Do you feel this conveys any relevance to these personal beliefs?
Rust is a low level language no matter how productive it may be.

The memory layout will simply leak into the program architecture and will have to be altered on refactors — something which is transparent with managed languages.
I would be very, very angry at obese people if the cure for obesity was a tiny needle prick with almost no side effects. But the reality is, obesity is a difficult problem to overcome and requires education, effort, and time.
I think one simple legislation could help a lot: forbid to use the word 'buy' in this context. Instead it should be 'hire' or 'lease' or something.

Once I 'bought' an e-book that was copy protected by Adobe (my fault I didn't read the specs before buying). But because you can only read it when Adobe's servers are online no ownership is transferred to you as buyer. You buy rights to read the book on their terms.

'Hire this book' would be fair to use in this context.

(Afterwards I successfully converted to book to an e-book format that I owned with some Calibre plugins).
Did you buy a car or rent it?
It’s worth noting that for political reasons, that I won’t go into, Finder was written with PowerPlant rather than AppKit.

They even gave it some of the features of Workspace too.
Perhaps health insurance companies can't do this, but I know for absolute certain no one is looking closely enough at every little company's hiring decisions to find out if someone is doing this.
Yes, this work was created after Mickey Mouse was created.
I’m not entirely sure how many things truly render at the native res vs up-scaling but the display resolution is important regardless of any upscaling that takes place to reduce/remove the screen door effect.

Graphically the native-quest stuff is relatively basic to run well on the hardware but for the kinds of things I enjoy most it doesn’t really matter/bother me. I use Virtual Desktops for PCVR on the quest 2 and in some cases I think the fancier graphics are worse. I prefer best saber natively on the quest because it has way less effects that reduce readability.

They are also using/pitching ASW as a method to effectively double frame rate so they can up the fidelity and maintain a high frame rate. I haven’t played anything that does this yet as far as I know but I’m a little skeptical on this technique.
Ergo: never father a child in Israel. Problem solved.
Yes they did. Bezos, Gates, Buffet, Zuckerberg were all rich
True it would make it work faster. This is also an underappreciated factor in what boarding order is most efficient. Because most time is spent putting luggage in overheard bins which blocks the aisle, boarding everyone from the same part of the plane is the worst you could do. Unfortunately that's exactly how just airlines board.

Do you always check you're luggage though or do you jl just always travel super light?
> There's no reason why housing appreciates year after year.

Of course there is a reason, multiple ones.

Land, of course, but that's the easy one so let's ignore it for the sake of argument for a moment. Let's say land price remains constant.

Housing will still appreciate simply because everything related to it goes up. Contractor labor and supplies.

So to build a new identical house on an empty lot next to an older house will cost more than it cost to build that old house. But they houses are identical so they compete for the same buyer. So inevitably the old house value will go up to match the new house that cost more to build.
Tax inelastic goods and services.

Land. Wealth.

Note that attempting to legislate such taxation runs into that slight issue observed some time ago by a radical economist:

"Wealth, as Mr Hobbes says, is power."

-- Adam Smith, Wealth of Nations, 1776.
Word of mouth? Designated market places? Who knows? In the end it doesn't really matter. As long as it's not advertising.

Businesses aren't entitled to attention. They aren't entitled to being known. They aren't entitled to success. They aren't even entitled to existence. I simply don't understand how some business's concerns can possibly override everything else. Are we supposed to live in some cyberpunk hell with noise as far as the eye can see just so a bunch of corporations can make themselves known? If resisting this makes me extreme, then so be it.
The language itself, unless you go out of your way to circumvent the protections with `unsafe`.

In this particular case it's the `Sync` trait and the generell rules around sharing data.
Six problem-solving mindsets for uncertain times
Would be interesting if they offered a subscription service and/or loyalty tier that gives you "real" reservations. Call it "$BRAND Car Guarantee." That way, you know that the customers are committing to actually get their cars, and you can make a term of service that you don't miss N cars per T time (this would be displayed prominently - call it something friendly like "house rules").

Boom, everyone's happy. Your repeat customers are more likely to stay that way, and people will hear about this and _become_ repeat customers because that's what it incentivizes. You can keep prices cheap by overbooking your non-loyalty cars like you already do.
Why do these posts never include sex? Such a weird taboo.
HSA contributions and gains are taxable in California, so that won't help your taxes.
I'm tempted to give it a try. I haven't used my Rift Touch in years because of how damned inconvenient it is to get running and how difficult using it with glasses can be.
No, "car sharing" in this context is by large companies -- the main one here is a joint venture between Daimler and BMW.

Inside of the city, they can be parked in any public parking (mostly on street), and you can find them in the app. Just checked, to give a point of reference, and there are two cars available within 200 meters of my apartment, and 7 available within 500 meters. There are also special parking lots at the airport where car sharing cars park.

You can also have one delivered to you at a particular time, but that costs €30, and makes it where a taxi would be cheaper.
Apple is very much working on a product in this space but they, as usual, aren’t showing anything until they’re ready to.

One of my friends recently took a position at Apple to specifically work on this hardware and I get the impression they’re hoping to ship sooner rather than later.
A frequent traveler I despise rental car agencies and try to avoid renting cars as much as possible. Here are the few options to consider:

1. Public transporation
2. Lyft/Uber/taxi
3. Zipcar (and similar)
4. turo.com
With buses you will on average end up waiting longer than the average rate when there's heavy traffic because sometimes they get stacked up right behin each other, and two (or once I had three) buses arriving at once is the same as one big one operating at a fraction of the rate. I remember this being relatively common when I used to take the bus.
One of the teachers at my old high school died from covid a few months ago. She was in her 40s and left a few children without a mother. She most likely caught it at school from one of the kids that was mostly asymptomatic.

And apparently her natural immunity wasn't enough because she had caught COVID a year prior, also from school.

It's too bad she listened to all the idiots that convinced her that she didn't need a vaccine because natural immunity was best or that she was safe at school because kids don't really spread it. Had she listened to the actual experts, she likely would have lived and her children would still have a mother.
> No, with RAII you still need to design your program around who owns each object, and thus who should clean it up

With or without RAII you should design your program around who owns each object, unless you want to end up with unmaintainable mess leaking file descriptors, network sockets, native memory buffers or trying to access resources after closing them. Which is why Cassandra and Netty implement their own reference counting.

> Not to mention, Copying GC also solves memory fragmentation

Not really. It only moves the problem elsewhere so it doesn't look like fragmentation. Compacting GC needs additional memory to have a room to allocate from, and that amount of memory is substantial unless you want to do more GC than any useful work. Also it is not free from fragmentation most of the time - the heap is defragmented only at the moment right after compaction. As soon as your program logically frees a memory region (by dropping a path to it), you have temporary fragmentation until the next GC cycle, because that region is not available for allocation immediately. And there is internal fragmentation caused by object headers needed to store marking flags for GC - which can consume a huge amount of memory if your data is divided into tiny chunks.

> which C++ still suffers from unless you also design your allocations carefully around sizes of types

Modern allocators split allocations into size buckets automatically.
Looks like there's more competition in the portable headset sphere now, this [0] micro-oled VR headset is already on kickstarter.

With that kind of resolution (5120x2560) and lightness (200g), I'd be VERY interested in trying it as a virtual desktop with multiple screens.

https://www.kickstarter.com/projects/969477673/arpara-worlds...
The benchmark game is always full of these things. Some people are very motivated to make their language shine on it, so it has good[1] implementations, almost everything else is bad. Really, really bad. It's best to just ignore it.

[1] With good defined as fast. Many of the implementations there are so contorted that no one in their right mind would use anything like it in production. But they are fast.