skysight-inc/HackerNews huggingface dataset:
> The specific method that's causing me trouble right at the moment is "computeCommandEncoder"

Yeah, it looks like there's no way to avoid autorelease here.

> It looks like objc_retainAutoreleasedReturnValue might be exactly what I'm looking for, even if it isn't 100% guaranteed; if I'm understanding, it would be safe, and wouldn't actually leak as long as you had an autorelease pool somewhere in the chain.

Indeed it would be safe and wouldn't leak, but the optimization is very much not guaranteed. It's based on the autorelease implementation manually reading the instruction at its return address to see if it's about to call objc_retainAutoreleaseReturnValue. See the description here:

https://github.com/apple-opensource/objc4/blob/a367941bce42b...

In fact – I did not know this before just now – on every arch other than x86-64 it requires a magic assembly sequence to be placed between the call to an autoreleasing method and the call to objc_retainAutoreleaseReturnValue.

It looks like swiftc implements this by just emitting LLVM inline asm blocks:

%6 = call %1* bitcast (void ()* @objc_msgSend to %1* (i8*, i8*, %0*)*)(i8* %5, i8* %3, %0* %4) #4
call void asm sideeffect "mov\09fp, fp\09\09// marker for objc_retainAutoreleaseReturnValue", ""()
%7 = bitcast %1* %6 to i8*
%8 = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* %7)

This is optimistically assuming that LLVM won't emit any instructions between the call instruction and the magic asm, which is not guaranteed, especially if compiler optimizations are off. But if it does emit extra instructions, then you just don't get the autorelease optimization: the object is added to the autorelease pool, and objc_retainAutoreleaseReturnValue simply calls objc_retain.

(…Though, on second look, it seems that swiftc and clang sometimes use a different, more robust approach to emitting the same magic instruction… but only sometimes.)

Regardless, enough stars have to align for the optimization to work that you shouldn't rely on it to avoid a (temporary) memory leak; you should only treat it as an optional micro-optimization.

That said, the C++ buildings could have implemented the same scheme using inline assembly. And so could the Rust crate (edit: well, I guess inline asm is not stable in Rust yet). It's not the like magic instructions are ABI unstable or anything, given that clang and swiftc happily stick them in when compiling any old Objective-C or Swift code. But I'm guessing the authors of the C++ bindings either didn't want to bother with inline assembly, or considered it an unnecessary micro-optimization. Or perhaps didn't even know about it. /shrug/
I meant to stress that their metaverse vision seems to be a much more massive endeavor and that it would probably be a good idea to learn to walk, or moderate their website (or whatever you want to call their tech that interfaces with their users through a website and app) before they try to run and create something that they most likely will also not be able to control effectively.
I think that’s over-stating it. His content is deliberately designed to be accessible to everyday people, so it necessarily needs to be limited in depth and detail. Having heard him on podcasts and other settings, his knowledge seems plenty in depth to me (an amateur enthusiast who wants lots of detail) for that role. He’s not an engineer, and that’s fine.
If you’re interested, lookup FLCCC. They have been tracking small scale, non-institutional studies from a frontline perspective on a wide variety of issues related to Coronavirus. And have also been dismissed and persecuted in the manner I described.
Depends on how you define success and failure, I suppose.

By the standard, "a sustainable and profitable," they're successful. They used to average about $30mm per year and in the past few years, it's closer to $70mm per year. (See https://docs.google.com/spreadsheets/d/1tMAP0fg-AKScI3S3VjrD... .)

By the standard, "an enjoyable, polished game," they're not yet successful, but they're not a failure either, as the game is in active development with new releases every three months.

By the standard, "an enjoyable diversion that's worth its base price ($45) today," they're a massive success to some and an utter failure to others. Depends on what you like, your tolerance for bugs, and your patience for waiting for new features.

By the standard, "a game that released when they said it would," they're a complete failure.

The fourth definition is the one detractors focus on, but to me it's the least interesting. (And I say that as someone with no vested interest or money in the project.)

So when is it a failed experiment? I'd say, "When they stop making enough money to continue development." (Assuming that happens before the game is polished.) But there's no sign of that happening. The funding keeps going up.
https://www.medrxiv.org/content/10.1101/2021.08.24.21262415v...

https://www.liebertpub.com/doi/10.1089/vim.2021.0054
I'm sure outside of my personal bubble this won't be an issue, but I've found the buzz generated from this announcement to be kind of off-putting. The sheer amount of promotion leading up to this announcement has been in my face now for weeks and kind of driving me nuts.

That being said I see no reason to not welcome another competitor in this space... and it's free. I'm sure you are right and this will gain popularity, though the competition is stiff.
Don't forget barrier to entry of the profession in the first place. A very specific degree is required.
I would consider writable, durable disk to be an external dependency in this context.
He’s be the first one to tell you that he’s an amateur who is always trying to learn more.
[article author here] As smat pointed out - absolutely, it's difficult! In the ideal case we'd have a proper 3D reconstruction of the scene; something like a light-field representation that permitted enough lateral movement in the camera extrinsics to adequately sample inside a synthetic aperture. This theoretical development is important, but it doesn't block getting to a point that is good enough for consumer use cases.

How it goes in practice - even for high-end VFX shops - is that the result looks and feels right. As an example - the depth maps used in high-end VFX (especially for stereo conversion) is sometimes hilariously and incredibly inaccurate (e.g. having depth on a foreground spaceship but also depth on a planet thousands of kilometers away).

Accuracy improvements in absolute modeling in the real world may not translate in a visible, meaningful way when put through a simulation that acts upon it; instead we focused (ha!) on improving the light modeling process from a generic 'textbook' example of kernel-based simulation to one that more closely matches how light moves through an actual physical camera.

And yeah, the colours are bit punchy but that's my fault - my photography aesthetic unfortunately is tuned towards ludicrous colour, and I probably need an intervention for someone to take my cursor away from the vibrance slider :P
Was the water boiling when they were put in?
> IMO, it would be strange to make a moderation team the highest authority in an organizational structure. I don't really agree with their demand to be the ultimate authority over everyone.

I think it makes sense, scoped to their domain. Eg a security team can’t do their jobs effectively if they can’t apply their policies to the CO or if CO can arbitrarily undo it — security needs to have the last say on security policies, but that doesn’t put them on the top of the chain.

The same would be true with whoever does financial auditing and verifies everything is done to process & legally, as well as HR guarding against violations, and so on. The C*O must be held accountable as well, because their violations are also the most potentially damaging
$40 a month, and you still have to take 3 a day for a week. Nah. I’ve been dealing with carrying pills around for decades, it’s not that onerous. The price of lactase has come down too, used to be like $0.50 per pill, but I still don’t think I ever took 80 of them a month.

Plus it makes me more mindful of what I’m eating generally, and also encourages me to try and even make new stuff, especially drinks - kombucha, kvass, kefir water, oat milk, homemade syrups for soda, etc.
Yes, I got it on the recommendation of a friend but have read less than a quarter of it so far so don't have my own opinion yet. Because I am cheap bastard I got my copy on eBay for $4.
I'm not sure why a VM was supposed to help your situation but in regards to GPU in a VM Parallels can provide paravirtualized GPU to enable acceleration for macOS (metal), Windows (DX 9/10/11), and Linux (Virgil) guests.
Wow some downvoted clearly doesn’t want what I am saying to be true. Unfortunately it is. I used to believe otherwise but reality is what it is. Accept it and move on.
> IMO, it would be strange to make a moderation team the highest authority in an organizational structure. I don't really agree with their demand to be the ultimate authority over everyone.

It is like HR staging a coup d'etat.
Something strange about these numbers, but also not in Cloudflares favor. I noticed that they list Cloudfront as the fastest in Iceland, though Cloudflare are the only ones on the list with a PoP there. My testing from a VM in Iceland shows Cloudflares latency is >20x less than Cloudfront from there.
Their form demo is definitely worth checking out. You could build the same thing with a Next API route. You’d need to write some code to do the validation that they do, but it should largely look something like their hook does. Hopefully Next will build something like it because this is a much more sane way to write forms than the controlled inputs and state way.

I do think it’s nice having it in the same file as the form itself, but it’s not clear how well that’ll scale in a more complex page with many forms. So I think Next could get most of the way there with a few helpers to make a form submit to an API route with similar DX.
This doesn't compare apples to apples, as the issue isn't really about operating systems but more about platforms and integration philosophy: on Windows, the people who make the graphics hardware are able to build drivers for their hardware that support OpenGL, Vulkan, etc.. On macOS, one of two things happens, depending on the device: either 1) Apple does most of the work to create the graphics hardware, and then refuses to support anything designed by Khronos; or 2) Apple buys most of the graphics hardware from a third party, but doesn't really offer a way for third-parties to develop kernel modules / drivers with the depth of access required to pull off a useful graphics driver. "Part of me wonders if NVIDIA was writing the OpenGL for Apple" <- FWIW, I went to college with two of the people who worked--at Apple--on their OpenGL stack: it wasn't third-party.
And what immigration there is, is mostly under Japan's equivalent of the H1B, the "technical intern" program, except for less-skilled occupations, and in practice the immigrants are often used as severely underpaid factory workers who contribute negligible demand.

1. Foreign residents: big growth in Chinese and Vietnamese. https://en.wikipedia.org/wiki/Demographics_of_Japan#Foreign_...

2. https://www.jitco.or.jp/en/regulation/index.html

"The particulars of the Technical Intern Training Program are intended to form employment relationships between corporations, sole proprietors, and other businesses in Japan with technical intern trainees so that the trainees can acquire, master, or enhance Skills etc. that would be difficult to acquire in their home countries."

3. https://www.verite.org/japan-titp-white-paper/

"In addition to debt related to recruitment fees and/or deposits, some respondents also reported wage withholding and compulsory savings programs. It was also reported that some Japanese employers, at times in cooperation with Chinese recruiters, withheld up to 70 percent of trainees’ wages for “compulsory savings” that would be forfeited should trainees leave their positions prior to completion of three years in the TITP. Some trainees reported threats of violence and deportation for advocating for themselves or failing to meet employers’ demands. Finally, trainees also described wages that failed to reach even half of the minimum wage, working hours above legal limits, poor living conditions, and hazardous working conditions." [emphasis added]
Show HN: AlpacaOrder Processing 100x Faster
Not sure how books on gardening have anything to do with coding workflows, but yeah, okay.

There's a difference of building a reference library for home use or homesteading, crafting, etc than say working for 8 hours on a coding project directly tied to the need to use the computer. Computer languages/libraries/etc change frequently enough printed books become obsolete fast. How/when to plant, what to feed them, etc hasn't changed too much for generations. Nor things like when to use a dovetail joint, or other building techniques. Books from the 1900s would be just as useful today.
> While this might work on your specific device

it's what is used for OpenCL on Metal (which is the impl present on M1) to provide the semantics there. AIR is a stable, forward compatible bytecode. Will ask and see what Apple says...

edit: thinking about this, OpenCL doesn't actually need those semantics either
A flat GDP and decreasing population must mean their GDP per capital must be increasing? Would that constitute as growth?
The 1024 threads of a warp/block/whatever or just the current threads or what?
Electric helicopters may be a good option for this and a great opportunity for Tesla’s battery operations.
My guess is that someone who seeks out a position on a "mod team" is the type of person who cares more about controlling others than doing interesting technical work.

The success of Rust is not of concern. The control is.
They already have been doing things like this. The Nikkei 225 is more than half owned by the BoJ for example.
We have to take it as far as emphathy combined with reason (which extends our ability to empathize) will take us, precisely because this is the only self-consistent approach other than sociopathy. If you're advocating the latter, then I'll admit that it is also fully self-consistent, and rejecting it is really just an ethical axiom that I subscribe to.
If you want to spend any significant length of time long form reading, even a 5+ year old E ink e-reader would be better than the biggest and newest phone.
I know this is low-value, but it always stuns me to see basic typos on a product’s landing page (lets —> let’s). Have the creators shown it to anyone else? Has nobody close to them told them about it?

I don’t blame anyone for making a mistake - everyone does it, and I’m certainly no exception. But typos like this make a product feel much less professional and by extension less trustworthy. To me, good copy feels important enough to be a top priority, at least on your landing page…

If a friend shared their new site with me and I saw a typo like this one, I would flag it to them every time.
Nix-template: Make creating nix expressions easy
I get it, I really do. This is an attack on our collective sense of security and it's close to home. The people who did this are in the wrong.

But: do you generally associate a calm peaceful society with a lot of security or little? Typically it's dictatorships that have soldiers with automatic rifles patrolling the streets, or failed states that are being run by the military. Tons of security, but does it feel safe?
The thing is with those disabled aspects of AMD gpus, AMD is not trying to sell it to you later.

Also it could have been disabled because it was faulty when testing so binned differently or just to meet unit numbers for a SKU. Thing is you don't know.

Here intel is selling you a pice of hardware but by telling you can pay later to unlock it. They are telling you it this extra functionality works. The thing is once intel sells a device they no longer own it. So what rubs a lot people wrongly here is that for something you own your now having to ask intel to use some aspect of it. For things you own you should not be asking 3rd parties for permission to use your property.

If you are asking a 3rd party for permission do something/use something “you own”. This implies the seller has managed to retain some aspects of the right of exclusion. The issue here is the sell of tangible property normally involves the transfer of all rights. If the seller wants to retain some rights normally a contract is needed.

Now with this situation intel using a couple things to basically retain this right of exclusion. First cryptography since you don’t have the private keys anything controlled by those keys intel effectively controls. Second is software copyright. A type of intangible property were the right to copy/reproduce is by default legally retained unlike other forms of property. So any software tools to enable this additionally functionality intel can keep a tighter grasp legally on its reproduction.

Anyways the short and sweet if your having to ask the seller for permission after the sell to do something with something you “own” it implies the seller is some how retaining some property rights. This is going to rub people wrongly for tons of reasons.
Those are all ad-hoc hypotheses. I agree with the first part of your post, where you state that there are better distros for PinePhone. But this is still highly problematic because most people don't want to install a distro from a micro SD (I'm a "techie" and even for me it's an inconvenience, I had to go out a purchase one LOL)

Regarding the other points:

> Also, "things as basic as" implies that saving the positions of homescreen items is somehow more fundamental than everything else on the phone, and if they can't get this to work then obviously everything else must also be broken. It isn't, and it's not.

I strongly disagree with this, it's one of the first things every new user will do with a new phone, it's the very definition of basic considering that our discussion is in the context of usability. Dev priorities should be based on user needs not on some other obscure technical criterion.

> It makes and receives calls, sends and receives SMS, downloads voicemails, runs an up-to-date web brower, takes decent photographs of documents when a scanner isn't available, and allows me to ssh to my other machines.

So it's a feature phone, bar the SSH.

> MMS matters to a few select countries in the world. But since you assumed everyone else has the same view as you about what a daily driver is, presumably you also assumed that everyone else finds MMS important. Again, Dev priorities should be based on user needs not on some other obscure technical criterion.

I don't live in one of the countries where MMS messages are mainstream, so they don't matter to me, but I know those countries exist, and some of those are among the largest countries by population, so I consider it a priority. Again, Dev priorities should be based on user needs not on some other obscure technical criterion.

> b) Dumbphones can't do three of the five things I listed above as my criteria for a daily driver.

they can do everything you mentioned except SSH, and I'm pretty sure there was some Nokia Series 30 app that can do SSH, but of course it's debatable if Series 30 falls under smartphone or feature phone.

> Really, all this conversation thread has revealed is that people don't think there's a middle ground between a phone that's 100% usable by all 8 billion people in the world and a phone that's 100% useless.

At the moment PinePhone is usable by less than what, 2% of the population? So according to your own criteria it's 98% useless? :-P
The point is at best I care about perf/watt indirectly and the things I do care about can be improved in other ways so its incorrect to say perf/watt is everything.

I admit it's a pedantic comment but I was pulled in by use of "literally everything".
Whoa. I didn't realize the audiobook was adapted.

I just kept thinking that the inner commenting was so weird. Like a the book was partially movie script.
I think I should have read the book instead.

But still, it was good.
>>>All the people who work in positions where they have to physically show up must be aware that they need to be charging extra for being in a position where they have to physically show up relative to others got the benefit of sitting at home.

Heh...this is how I feel as a contractor who works on-site at the client, when our corporate-internal peers are working from home. Client-facing staff are the only revenue generators but we aren't getting any extra compensation for our greater COVID risk. -_-
Well, that’s the thing, you can’t make a generic version of these drugs because you can’t fully characterize the structure. They are just way too big and complicated, which is scary because a single difference in a glycosolation site can induce an extreme immunogenic response.

Best the FDA can do is allow biosimilars and subject them to significantly more testing, which increases the cost 100x (compared to a traditional generic).

https://www.pfizer.com/sites/default/files/investors/financi...
Millennials brought up on cellphones? People really should at least get their stupid stereotypes dated correctly if they insist on them.
Also, retention seems to be better for me when researching a book vs online. It's kind of a mental thing probably. "I don't want to have to stop to pull that book down every time I need this, so I better remember this" compared to "I don't really need to remember this because it's just a websearch away"
Linus was also nearly driven out by "activists". Best I can tell he never actually said or did anything egregious - his European directness and sense of humor just upset some particularly fragile folks on the mailing list, and so did his refusal to grovel before them.

That said burntsushi at least doesn't seem like an activist to me, so the grievances are probably legitimate. Coming from someone less prominent they'd not have anywhere near the same weight in my eyes. We just don't know what they are.
His point is that people should be doing their own risk management. If you want to go on the road even though there are other cars around you, that's your choice to make.
> Seriously, electric cars are destined to create a new under class

That's the "plan" (not actually an organized plan, but emergent behavior). All of this stuff, bike lanes, banning plastic stuff, emissions and electric car rules, carbon tax, it means nothing to all of us that are well off but it pushes the very poor even deeper under. We really only want to see them when they bring us a meal or package and otherwise to keep away from us and our city life, and to not become affluent enough to get in our way. I think we're heading back to what I see in old British shows the aristocrats were waited on by dirt poor domestic staff that cost almost nothing relative the the wealth of the rich. In other words, much greater inequality. Every rule that gets implemented, however well intentioned, only works to increase this inequality.
Rejecting empiricism means rejecting the very notion that one can make testable predictions, though. If that is rejected, what is the point of economics, even?
The state of Go PostgreSQL drivers is pretty bad IMO. Everyone recommends pgx, but it has a few rough edges (like how it handles dates/time) and a lot of surface area. The other driver, lib/pq, isn't really being maintained (for no good reason, it's quite good, simple and works well with sqlx).