skysight-inc/HackerNews huggingface dataset:
I have some dev tools that do infinite scrolling and I wish I had the authors here to tell them how fucking stupid I think they are.

If the page is long enough for infinite scrolling, I'm probably going to have a slightly error-prone recollection of the exact string of text I'm looking for. Taking search away from me makes this worse.

There's a bit of psychology that says when someone is experiencing a strong emotion, good or bad, they will associate it with a person nearby, whether they deserve it or not. This has applications from espionage to team building to crisis management.

One of the wrinkles of this is that if someone is already or almost experiencing a strong emotion and you add to it in any way, you've made yourself a target.

One of the things I tell mentees about code and test quality (especially the latter) is that in the grand scheme of things, nobody (read: a tiny fraction) is going to look at your code for fun. They're going to look at it because something bad happened, near it or in it.

Assume the person reading your code is already having a bad day. Don't make it worse. Especially if it ends up having nothing to do with you.

The infinite scroll bozos, at least in the scope of productivity tools, are making my not-great day worse. The ones that 'fix' this by hijacking CTRL-F and do their own half-assed implementation of search are just doubling down. If you're going to listen on CTRL-F, maybe force-update the entire list instead?
I'm not 100% sure if I agree with this or not, but a related idea is that physics shouldn't be taught without the necessary math as a pre- or co-requisite. I'm thinking particularly of non-calc-based mechanics classes, which I loathe.
Exactly. I think the point is that a scooter allows you to plan far less.
If electric scooters continue to become more widespread (I think they will), they'll become normalised and people will stop thinking they look goofy.

For now, it's easy to not worry about the goof factor.
That's exactly what I'm saying. Your time and money would be better spent on getting a CS degree if you are concerned about career longevity and opportunities.

I am 45 years old, got my degree from a no name school that taught one simple data structures class and the rest of the classes were teaching either outdated programming languages (except for C). I can honestly say that nothing I learned in school served me better than the time I spent hacking around in assembly in the 80s in middle and high school.

How much more “longevity” should I be on the look out for since My degree was useless? I’ve already been doing this professionally for almost 25 years.
If you can do this, you can make 60k per year. And this is low skill imo.

We don't have people who are highly educated in useful things despite 16+ years of school.
That amazes me. What do Europeans think of their counterparts that have studied half as much professional material?
Is it just me or does that sound an awful lot like a foreign government interfering in U.S. elections?
Yes, thanks Apple. Vulkan is rather awful to use, compared to D3D12 and especially compared to Metal.

Metal, in my opinion, strikes the best balance between performance and low-level control.

With Vulkan the intention is that you have multiple codepaths for every vendor for good performance. This is way too much effort for an API that is already of little relevance.

I think that with AZDO-style extensions to OpenGL/WebGL you would've gotten 95% of the performance benefit without adapting a whole new rendering API (and shading language). Unfortunately, AMD could never get a proper OpenGL driver going so they pushed for Mantle which ultimately turned into Vulkan.
A couple obvious reasons would be compiled vs interpreted, and static vs dynamic, both of which bear some inherit runtime performance cost.
This seems pretty clear and unambiguous to me

> Most 3D applications render more than a single object. In WebGL, each of those objects requires a collection of state-changing calls before that object could be rendered. [...] All the pieces of state in the WebGL example are wrapped up into a single object in WebGPU, named a “pipeline state object.” Though validating state is expensive, with WebGPU it is done once when the pipeline is created, outside of the core rendering loop. As a result, we can avoid performing expensive state analysis inside the draw call. Also, setting an entire pipeline state is a single function call, reducing the amount of “chatting” between Javascript and WebKit’s C++ browser engine.

> Resources have a similar story. Most rendering algorithms require a set of resources in order to draw a particular material. In WebGL, each resource would be bound one-by-one. However, in WebGPU, resources are batched up into “bind groups”. [... In both APIs] multiple objects are gathered up together and baked into a hardware-dependent format, which is when the browser performs validation. Being able to separate object validation from object use means the application author has more control over when expensive operations occur in the lifecycle of their application.

The clear point in both of these comparisons is that the same operations must be done in both APIs, but the WebGPU version allows much of the work to be pre-computed, allowing the draw calls (where the performance bottleneck lies) to have as little overhead as possible.
Archive: https://archive.is/KA7bN
Yeah I think strlcpy is way better exactly for this reason. I'm sure the idea behind returning the pointer was call chaining, but you shouldn't ever be doing that anyway, and with strlcpy you basically can't do an off-by-one.
Well, currently you're not throwing any money at Reflectacles because they aren't expected to ship until next year.
Nobody wanders around the gator and snake infested pond behind their Florida house.
You are right, this is a new account. I am not mentioning the account in question because, honestly, I am afraid of proving myself right, that I am dumb.

Back to the original question. I will check my old comments that were visible, if there is some mention about the ban. I think I’d remember if there was, but I’ll double check.

Thanks for the help.
Huawei trying to sell its 5G patents to a Western buyer
> I find it increasingly harder to understand what objectively is wrong about these purported ethical dilemmas (e.g. cloning)

Believer in God here, and, like you, I find these "playing God" concerns to be largely unfounded, and often based in fear-of-the-unknown more than objectivity.

In the 18th and 19th centuries, some religious groups opposed surgery because it was playing god; "disfiguring the divine image." But today, we religious people almost invariably welcome such medical advances: the good they do far outweighs any theoretical fear-based concerns. I think the same will happen with modern medical advances.

And, theologically in the Jewish and Christian Bible, God has given humans dominion over nature. I see medical advances -- including surgery, blood transfusions, vaccines, and yes, gene editing -- as exercising that dominion to help heal people and reduce suffering.
thinking out loud here, but has anyone built a solution on top of IRC, effectively "extending" it?

to me (i'm not a developer, so pardon me while i speak out of turn here) it would make a lot of sense to take the solid, well known foundation of IRC and build upon it, instead of reinventing the wheel over and over again, no?
It's doable but it's tricky, requires a very stable place to put the bouncer, and it makes things vastly more complicated than being pointed to the closest client or web interface and logging in instantly.
If I don't game for at least an hour every night there might not be any time for fun in the day due to life commitments and how "serious" things seem to be.
That's where some of the most "DLR" magic filled in (cached) and optimized a lot of the "Python level" in a way that the CLR JIT could take advantage. The DLR briefly was a huge bundle of hope for some really interesting business logic caching. In a past life I did some really wild stuff with DLR caching for a complicated business workflow tool. It's dark matter in an enterprise that I'm sure all of it is still running, but I'm not sure if the performance has kept up over time (and have no way to ask, and probably don't care) as the CLR declared "mission complete" on the DLR and maybe hasn't kept it quite as optimized since the IronPython heyday.
Machine Learning Inferencing at the Edge
by "network", what they really mean is interprocess communication, right?
This is something I rant about from time to time. The word scooter is ridiculously overloaded. I'm semi-interested in an electric vespa type scooter, but it's hard to Google for it, because everything about electric scooters online refers to kick scooters.
Don’t panic about e-cigarettes
It's not as fatalistic as you suggest: that randomly offered rewards always lead to complete zombie slave status in 100% of subjects, there's no way out, and the situation is hopeless.

Studies have found propensities not absolutes across all subjects and species.

For example, river otters are notoriously difficult to train using operant conditioning because they are extremely curious, but also bore easily. Getting them to repeat a behavior indefinitely using a reward is extremely difficult if not impossible.

Likewise not all humans can be controlled as robot slaves incapable of escape as easily as the fatalistic determination description provided suggests.

People can learn to recognize scams and avoid them. Maybe there are some people who simply never learn. Maybe. Probably not though.

Addictions can be hard to overcome for many. But they are generally recoverable.
I can't find a link to the story at the moment (I'm on mobile), but I read recently they've started doing just that - doing image analyses on aerial/sat map data - to find cars and other things submerged in the Bayous here in Houston. Previously [1] they used more on-site resources, such as sonar, drones, and people in kayaks; etc.

1: https://www.houstonchronicle.com/local/gray-matters/article/...
By the same principle, if 10x as many burgers are cooked without propane than with propane, then your question is completely irrelevant.

Given that propane is about 5% of US home's primary heating fuel whereas electricity and natural gas together are 80%, that seems likely: https://www.eia.gov/todayinenergy/detail.php?id=18131
You can also contact the mods at the email link at the bottom of the page.
> Would you risk spying on your girlfriend to make sure she wants to stay your girlfriend? This makes no sense.

It's interesting that you mention that one, because that is exactly what people sometimes do. You will find that very needy or jealous people frequently get easily concerned and obsessive about every little detail, worried that their partner may leave or lose interest. They get paranoid, they spy, etc. They make the situation worse, push the person away faster with their behavior, and create a self-fulfilling prophecy outcome.

You might risk spying on your significant other (to make sure they're going to stay your SO), if your life depended - in part or entirely - on them staying your significant other. In relationships that's going to rarely be the case of course. Although consider a case of total financial dependency in a relationship.

Israel is the very needy, dependent partner in the relationship, clearly. Without the US, they would not have survived.
Because floating variables are ambiguous and you can lie about length (unintentionally too).
I agree. We should have a guest worker program if they job exists. Have an app that monitors compliance, pays taxes etc... It's the businesses that want the unlawful immigrants precisely because they can pay them so little and have no worker protections. And we see that ICE raids basically shutdown processing plants and farms when they clear out a whole community.
> How much do college graduates make more per year by degree?

Google [salaries by college major]. You're welcome :-)
Space-based radar is also available which provides views of metal content as an intelligence product. Brighter parts of the image = more metal. I'm not sure if it's commercially available but it would sure help to find cars in shallow water...
I feel like one alternative is missing from the list:

fp = fmemopen(buf, sizeof(buf), "w");

fputs("one", fp);
fputs("two", fp);
fputs("three", fp);

fclose(fp);

Not sure how it performs, but it reads pretty well IMHO.
China’s Grid Architect Proposes Upgrade to North America’s Power System
Power structures are objectively unbalanced. Wanting to shake them up is not a slight against any particular race.
No, basically everything is dynamic in Python. Both objects and types are mutable after definition:

https://github.com/oilshell/blog-code/blob/master/python-is-...

m1 Sub
m2 C
---
Changed type of object:
m1 C
m2 C
---
m1 Sub
m2 C
---
Changed superclass of type:
m1 Sub
m2 unrelated
I don't understand the end game of what their current system is trying to achieve. I think they're trying to avoid splitting / division while hitting economic quotas (which they can't do without international commerce!), to spite everything else. It feels reduced to that.

What if China were to read through https://europa.eu/european-union/sites/europaeu/files/docs/b... and:

- remove GFW

- fix environmental issues / smog

- let regions with different realities self-govern, so it's still a country, but joined by commonality and principles Sun Yat-Sen would agree with

- cooperate on big picture things, e.g. currency, health insurance/regulation, customs, legal basics

- focus on human dignity, employment, labor rights, social security, beefy pension plans

- being able to regulate against price gouging, corruption, etc

- bring back traditional Chinese characters

What's wrong with China working closer to the way HK or Taiwan operates but having a constitution / system like EU?
you are perfectly free to tell anyone whose house you're going to that you will not go anywhere that has a doorbell camera.

Doorbell cameras give perfectly adequate views of many places other than people's porches.

If Google wants to put a data-collecting robot on the street with a big sign reading "We're scanning your face to sell to advertisers!" there's nothing I can do about it, but at least it's honest.

Google using Nest cameras to scan the activities of people just walking down a nearby street is not cool.
As someone else who works in the Midwest U.S. you are absolutely correct on this. There are always opportunities to fill the void short-term if you decide to "pull the trigger" so to speak.
“Smart cane” uses Google maps to navigate blind people
Heads they win tails you lose. So the IL law supposedly prevents the collection and retention of data but the judge dismissed the case because collecting and storing the data isn't enough to sue them on its own without farther proof of damages...
> "But a ruling issued by U.S. District Judge Edmond Chang on Saturday found that the law cannot be used to protect users from the non-consensual collection of information about what many consider to be private"

If the law can't be used to protect us what measures remain available? Storming Google's data centers by force? The legal system is supposed to be the acceptable option so mobs and violence aren't all we have. Eliminate legal recourse and what's left?
California is on a roll this week, it seems. Can someone local explain what’s going on?
Honestly, they're so fun to ride that I don't think anyone's going to care for much longer.
20 years ago, kids were being bullied for not wearing Abercrombie & Fitch.

I was in high school then. The people who didn't care about aesthetics were always the ones bullied.
Second on gaming. I would add running/working out to the list too!
And clear and unambiguous to me:

gl.UseProgram(program1);
gl.frontFace(gl.CW);
gl.cullFace(gl.FRONT);
gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_MIN);
gl.blendFuncSeparate(gl.SRC_COLOR, gl.ZERO, gl.SRC_ALPHA, gl.ZERO);
gl.colorMask(true, false, true, true);
gl.depthMask(true);
gl.stencilMask(1);
gl.depthFunc(gl.GREATER);
gl.drawArrays(gl.TRIANGLES, 0, count);

>>> On the other hand, rendering a single object in WebGPU might look like:

encoder.setPipeline(renderPipeline);
encoder.draw(count, 1, 0, 0);
Cry me river.

I’m 45 and have had to abandon framework, languages, operating systems for close to 35 years.

We get paid an above average wage and all we have to do is watch a few videos and read a little bit.

I’m not sitting her le crying that my knowledge of 65C02 assembly is obsolete or that I had to learn the intricacies of DEC VAX and Stratus VOS over 20 years ago.
I wonder how close he lived. That definitely does not look like a street you'd be just passing through.
It is though. It doesn't cause cancer and it's not injected with antibiotics.
Maybe it went out of style, but it's not entirely wrong...
Teenager’s memory resets every two hours after traumatic kick to the head
Does it really remove the profit motive from incarceration? There are still thousands of vendors of various types making probably billions of dollars off of prisons, private facility or no.
My guess is that c/c++ experience is really good when you apply for a c or c++ job. If you apply for a web developer job mostly consisting of html+css+js it might not be seen as a plus. Even for c# and java jobs c++ experience is somewhat good but not perfect.

My view has been that the experience is good but not enough, you must show a willingness to learn other things and work in other languages and any experience in the languages actually used trumps a lot of other things.
Presumably Google, or their contractee, are scanning with other frequency ranges (IR, UV) when they do visual photography for Google Maps.

So any companies make this kind of imagery data available free; I'd be interested to see some.
https://bugzilla.mozilla.org/show_bug.cgi?id=1366287

The open issues this bug depends on is a pretty good list of bigint-related performance enhancements that haven't been implemented yet.
AWS Robomaker
This. Things are not good everywhere in the world right now, we have to make trade offs. Humanity will progress and eventually things will be much much fairer, where we could have all of these things simultaneously, but we've got a long way to go as a species.
The nerds have taken over the world, and turns out that liking fantasy doesn’t correlate to being less evil than other people who rule the world.
What is benchmarked here is basically the performance of the division operation on big integers and does not represent the general performance of a browser for everyday tasks.
option+clicking the scrollbar does that. doesn't prevent you from having to reach for the keyboard though..
Well, you pass better laws.
On this kind of topic, those who know won't say if it's on the record. You're lucky for them to say when it's not on the record.
I believe that because of my diabetes lower carb amounts are better for me. Much of the diabetes establishment still doesn't believe this, but going very low carb has had a massive benefit to my personal health. This is a hugely contentious issue in nutrition in recent years, and I find my self firmly on the side of Gary Taubes, Nina Teicholz and friends.

I particularly recommend "The Big Fat Surprise" by Teicholz on the subject of the health of various fats. Her research goes flat against a wide variety of authorities ... and I find it very convincing. It sure changed what's on my plate.
Great comment, if anyone else needed any better confirmation that this scottlocklin dude is some anti-semite, there you have it. Expected nothing less from you.
No one has surpassed the SGI scrollbars from ancient times. When you moved it, it left an indent of where you were so you could go back easily or compare two pages. Also could middle click to go directly instead of page. That’s still available on some floss desktops but gnome broke that at some point. Still works under mate.
I don't love this trick. To get this to work, they had to typedef the string type to char*, which means the API will also accept any normal string and probably crash at runtime. So to get this little convenience feature, type safety was sacrificed.
I'm not trying to argue that people who prefer a particular behaviour are wrong, just to point out why it's a valid technical choice. You may find it pretty rare that you have a document that compresses the scroll bar that badly, but there are billions of computer users in the world. An interface that's usable by everyone may be the proverbial least common denominator, but at least in this case, it is the least dysfunctional.
Most papers I've heard of that exhibit malfeasance come from Elsevier and it's my understanding that the journal editors manage the whole peer review process and are compensated by the publisher through some form of an agreement.

And yes, it is the job of reviewers to at least recommend not publishing a paper that can be detected as fraudulent.
If you randomly pick a group of students who passed these exams more than 1, 3, and 5+ years ago, I bet nearly all of them would fail.

Why? Because learning to take tests and learning are two different things. And nothing is permanently learned. Except maybe how to ride a bike.
Ask HN: Which Visual Studio Code theme is healthiest to use?
Is there any research about this, if not how would you measure something like this?

Where would you get the data from?

Some kind of form where people self report their perceived health?
I know tens of people who got into trouble because of gambling as I spent most of my adult life in gambling world. None of them got exposure to it as a child. Losing toy money in soft form of gambling may be a valuable lesson for the future while still having a protective umbrella children enjoy. Worst that can happen is some kicking and screaming where the child discovers something they wanted to buy in the game isn't provided and there is no more money to spend. With an adult coming across the same deceptive mechanism for the first time the results could be and very often are tragic.
This was interesting until he started mentioning CSS, then it was no no no no no through the end of the article. Do not mess with scrollbars.

In the same class of annoying bullshit: don't mess with text boxes with JavaScript. You won't get it right, there's so many little interactions the system text boxes can do that yours won't and it'll throw a massive wrench into things when I can't use yours the way I'm used to.

The same applies to JavaScript for smooth scrolling. There's a browser preference, turn it off for yourself and then keep your nose out of my web browser.

The "know-better" attitude of some web devs is terrible.
Giving the customer the choice of how to contact you will always be a winner. Some will talk, some will text, for some it depends based on what's going on. But giving the customer a choice -- and respecting that choice! -- is always good for the customer.
The Power to Solve Climate Change
"ok Google, navigate home"?

It can, surely, if you want it to?
>Servin said that while the new law was a significant victory, there was one other thing immigrants rights groups were concerned about. When several sheriffs’ departments canceled their contracts to house Ice detainees last year, instead of freeing the detainees, Ice moved many of them to prisons in Colorado and Hawaii.

Is this something that people against private prisons believe...that they just release all the prisoners when they close the prison?
And a second thought since recently a lot of discussion about 2FA / two factor authentication has happened:

Are there any plans to support a second factor during login process, for example a one time token?
A fun related thread on math stackexchange which has several examples of series which converge quickly to pi: https://math.stackexchange.com/questions/14113/series-that-c...

edit: There also some nice formulae for quick convergence in this article: https://julialang.org/blog/2017/03/piday