skysight-inc/HackerNews huggingface dataset:
> [...] I don't want you to understand why it doesn't have the if statement. But I want you to understand that sometimes you can see a problem in a different way and rewrite it so that a special case goes away and becomes the normal case, and that's good code. [...] -- L. Torvalds

I think the idea of this extends much beyond a linked-list implementation, into software design and architecture.

Sometimes, you find more elegant solutions to something, that inherently do away with edge cases. I think this is the original intent, to show that you can find beauty, much as chessplayers do in chess. These solutions may be harder to understand completely, but you can actually encapsulate them in a function or use them as patterns!

A point is also made, there's often a rewrite involved. You usually don't need to find this stuff on first try.
Probably not that much in LA right now. My vitamin D app isn’t letting me change locations, but anywhere north of the 37th parallel gets zero vitamin D in winter, and even places like LA would get much less.

Plus people watch TV in the evening. You can’t get vitamin D in the evening.

I’m a huge advocate of walks and getting outside! My point is TV is a substitute for socializing, and America needs less socializing now.

https://www.health.harvard.edu/staying-healthy/time-for-more...
I have one to bring up "for loops".

I think they are infinitely worse than while loops. (I ran into this specifically with Pandas dataframes/series)

You save 1 or 2 lines and have ambiguity on wherever "each" is.

Maybe static typing solves this, but I've decided I hate syntax sugar and dynamic typing.
The claim here is a bit misleading, as already pointed out by other comments, since the kernel is an evolving one that is essentially learned after seeing the data.

Contrary to many related works that compare wide neural networks to kernel methods, our recent work shows that one can study a feature learning infinite-width limit with realistic learning rate.

https://arxiv.org/abs/2011.14522

We identified what separates the kernel regime (e.g., NTK) and the feature learning regime. In the infinite-width limit, OP's work could belong to either regime depending on the parametrization, i.e. the path kernel is either equal to the NTK or performing feature learning.

It's an incredibly interesting research topic. Please feel free to comment with thoughts on our work :)
Yes, and that's precisely because they are so lossy. It's not a resonant effect. You're just taking advantage of the grape's cross section being roughly a quarter-wavelength at 2.4 GHz, which allows the magnetron to dump a ton of power into it.

It's analogous to using a couple of forks to operate a pickle from 120V.
For the most part, though you need not be attractive to try.

This article provides a decent background https://medium.com/brand-origins/how-did-onlyfans-start-2355...
Refraction Networking: Internet freedom in the network’s core
Does that account for all those app/bots monitoring/CI/VCS/etc that "spam" channels?
arewedefunctyet?

arewebankruptyet?
There’s room for shades of OF that are less sex work focused. OF, IMHO, should stick to backing its sex workers. Not trying to make the platform family-friendly. Too much risk in alienating your userbase.
There are massive aluminum cases for Pi 4 that turn the whole thing into a giant heat sink. They work, but they aren't exactly cheap; and they still heat up a lot.

https://wickedaluminum.com/
I mean, if we're throwing around lived experiences, my mother had thyroid cancer and after health insurance we ended up spending ~$1,000 all things considered.

These kinds of anecdotes are important, but for every anecdote on one side of the equation, there exists an anecdote on the other. The only way to meaningfully make sense of the status quo is by looking at the system as a whole so that we know what the median experience is vs the outliers.
A large bored population is a great way to increase civil unrest.
A rose by any other name would smell as sweet.

If you check the literature, I'd be extremely surprised if they are not highly correlated. Note also that IQ, which has issues of its own, is not the same as intelligence.
But 100mg is less than a single dust speckle.. big box for a small flake
> On a CO2 per mile bases cars emit less than non-vegan humans

If we take the bottom table, "US Diet, typical", it looks like it is 1000 for driving, 230 for walking. That is more than 4x lower GHG emission by walking, per mile.

Which numbers from that article are you comparing?
I believe we're discussing supply inflation.
You are not the customer.

Adtech sells ads to companies that want to reach you - the highest bidders - not the companies you are interested in.

In other words, there is a profile that says "v4dok: gender, age, income, location" and even if you are highly interested in lego, lego won't pay $1 to serve you an ad, but a water filter company or a political candidate might.
Should be fine as long as you put a cup of water in the microwave alongside the grape. They aren't really meant to run empty, and microwaving a single grape would be basically running it empty.
At a certain point even experts need to assume that everyone else in their area is being above board, and not actively pushing for unsafe outcomes.

In this case there were a number of companies who actively obfuscated critical safety information. That doesn’t make the designs and safely precautions of others invalid, they ultimately have to trust someone.

You wouldn’t condemn the entire medical profession because one pharma company produce and sold a dangerous drug, obfuscating it’s risk and only highlighting its benefits. Doctors have to assume that manufactures are outright lying to them and regulators. The same applies to fire safety.

Grenfell happened in large part because cladding manufactures obfuscated the failings of their products, and government ignored the advice given by experts. Fire safety experts had issues numerous warnings about Grenfell specifically, before it caught fire.

So I reconcile to two points you bring up quite simply. Fire experts didn’t err, they highlighted the problems. Everyone else just ignored them, we’re the fools, not them.
I will check that. I appreciate everyone for their replies. Is there anything like that for iPhone?
> So what’s the point? If you don’t trust the certificate you won’t be able to browse the internet at all.

If all the major browser vendors do this it makes Kazakhstan's position quite difficult.
True, but in every chat app ever that I've used, nothing is muted by default.

And the reasoning is quite simple, for the average user who doesn't change any default value, a by-default-muted chat app is useless. There would be no messaging as far as a regular user would be concerned. What good is a chat app where you can't chat? :-)
Care and feeding of a production Kubernetes cluster requires constant care, feeding, and maintenance of expertise that would cost any company hundreds of thousands of dollars a year.

Have we really arrived at a point where a good old autoscaling group with a few servers and a replicated database is just not good for anything?
The name literally includes "christ"
So as I understand it this technique rests on a number of assumptions:

- You know the exact parameters used to render the text

- You can render new text with the exact same parameters

- The pixelated image hasn’t been ruined by color quantization or other destructive compression
Speak at a Meetup
I have no doubts about the community, which is the main reason why Raspberry Pi is recommended to all people without much experience with such small computers.

However "incredibly cheap" is not appropriate when referring to Raspberry Pi.

Its price is OK considering its performance, neither cheap nor expensive for what you get.

There are a lot of applications for which Raspberry Pi is fast enough, but almost all of those could be implemented using even cheaper microcontroller boards, with prices around $10, but programming those requires more knowledge, so they are less accessible for most people.

Besides clones more or less equivalent with Raspberry Pi, there are also a lot of models that are more expensive than Pi, but those are also proportionately faster than Raspberry Pi, so their higher price is justified.

I have experimented with Raspberry Pi, but eventually I did not use it for anything, because all my applications happened to be in those 2 categories mentioned above, i.e. either suitable for even cheaper devices or suitable for faster but also more expensive devices.

So Raspberry Pi can be a good solution for some people and it has a decent price for its features, but there are a large number of other devices with similar or better power consumption and price/performance ratio.
French citizens and headquartered corporations cannot answer a foreign justice request concerning some things (pretty much everything as the wording is vague) without refering it first to the french government. Failing to do so exposes to fines and possibily jail.

https://www.legifrance.gouv.fr/loda/id/JORFTEXT000000501326/...

"Loi n° 68-678 du 26 juillet 1968 relative à la communication de documents et renseignements d'ordre économique, commercial, industriel, financier ou technique à des personnes physiques ou morales étrangères"
> More people die of heart disease than covid, but it isn't used as a reason to fast track drugs.

Cardiovascular disease and cancer are basically people dying from old age. They're what people die from when they don't die from other things. At the current time, there's no compelling reason to think that a straightforward therapy could have a large affect on the outcomes of people suffering these maladies.

In contrast, Covid-19 is a virus. There is every reason to believe that an effective vaccine could dramatically reduce the deaths from this source.
There's arguments to be made on both sides, but I think the problem with Linus's solution here is that it doesn't quite clearly establish the assumption being made, which gives it a bit too much of the 'cleverness' flavor that you allude to. A better implementation would be one that does establish why the use of pointers make sense:

void remove_entry(node_t *entry) {
// curr_ref is the address of the link pointing to curr
node_t **curr_ref = &head;
node_t *curr = *curr_ref;
while (curr != NULL && curr != entry) {
// Advance curr_ref and curr
curr_ref = &curr->next;
curr = *curr_ref;
}
if (curr) { *curr_ref = curr->next; }
}

Choosing names somewhat more rationally, and making it clear that "curr" always points to the current node, and that "curr_ref" is the address of whatever pointer we followed to arrive at curr, makes it easier to establish the invariant that updating curr_ref is sufficient to insert or remove curr into a list, no matter if it's referring to the head link of a list or the next link of the prior node.
Death is horrifying. We in the "civilized" world _should_ know this better than anybody. We are shielded from so much death on a daily basis and yet have to deal not at all with the death we shower on others outside our borders.

We, the taxpayers from these countries, have been ruthlessly drone-bombing innocents, arming horribly violent terrorists in foreign conflicts, and running shadow campaigns against elected leaders for a century.

With extremely few exceptions, just about everybody from a North American or EU country is from a place complicit in these atrocities.

There is nothing new about the amount of death we are reported to be dealing with thanks to COVID-19. In fact, it's a walk in the park compared with the last 20 years of American & European foreign policy.

Maybe you and your relatives are all just a bit new to the whole "death" thing, but many of us have been aware of it for some time and it just doesn't hold quite the same weight.

Once you see a country's ruler getting sodomized by a bayonet until they die, a flu-like illness doesn't really read quite the same as you seem to perceive it.
It is easy to have high availability with torrents. It's even possible to quantify how many redundant copies are available among the swarm. Users just need to seed the data for extended periods of time.

Torrent trackers have come up with many mechanisms to incentivize contribution, usually new data and bandwidth. It's definitely possible to reward redundancy instead: the less copies there are, the more users are rewarded for storing a copy on their computers.
The funny side effect of all this is that the first time I saw a Monster product at the same price as all the other crap on the shelf I felt more comfortable buying it.
What if someone only ever learns what looks to be too clever to you?

You make it sound as if some universal utilitarianism exists.

Everyone’s personal event log is going to look just different enough to make that unreasonable.
Why are long variable names a tax when there are such good auto completion tools? I get short variable names in algorithm code but in business logic long variable names can make code vastly more self-documenting.
Whether the aesthetics are good or bad does not dictate whether a language is a “programming language.” That is determined by whether you can write programs with it. JavaScript is used to generate billions, if not trillions of dollars each year, through the fact that you can run programs on a computer with it, therefore being a programming language. There’s no subjectivity there, JavaScript is not a toy. Incidentally, there are a lot of spaghetti code encouraging platforms like LabView, Matlab, and PLC which nevertheless accomplish similar results, even in safety critical applications. Those are not toys either, despite their lack of sophistication.

What the language designer accomplished is not simple. JS packaged functional expressivity and dynamic binding from Scheme and Smalltalk into a marketable form using Java/C syntax. That is not a corruption, it’s a design feature. Languages that use S-expressions, while pleasing to the purists, do not see much market traction. The best languages are the ones that balance functional idealism with pragmatism. It is true that the language has warts, but there is ultimately a reason that all the JS alternatives, such as Flash, Applets, Silverlight, VBScript and Pyodide failed.

I agree the web is worse now, but it’s not due to technical reasons. We have more options for web coding than ever before with AsmJS and Wasm, plus all the compile-to-javascript languages. You can choose to write using one of those ‘superior languages’ like with Scala.js, Elm, Elixir, Clojurescript, or any number of runtime translation layers like Brython or Skulpt, but people don’t choose to. Because that isn’t the problem. The problem is that businesses want less logic in the backend and don’t find sufficient benefit in optimization to prioritize it over feature work. That’s a disturbing business trend and hardly related to technical choice. For most operations, JS is blazingly fast due to the millions of hours that have gone into optimizing it.

Last, the people who are beginners and don’t understand the stack or heap, are not the ones running Webpack and writing (a significant amount of) React code. Those are distinctly different personas, and conflating them is insane. Either you are seasoned and can deal with the complexity that is the JS tooling infrastructure, or you are not and you probably aren’t using it as a result.
Pointless and bad article.

I compiled the presented code out curiosity on arm gcc 8.2 on godbolt.org with -O3 op and the results are:

(the original remove is even faster then the so called elegant or the elegant with inline)

remove_cs101:
ldr r2, [r0]
cmp r2, r1
bne .L3
b .L9
.L6:
mov r2, r3
.L3:
ldr r3, [r2, #4]
cmp r1, r3
bne .L6
ldr r3, [r1, #4]
str r3, [r2, #4]
bx lr
.L9:
ldr r3, [r2, #4]
str r3, [r0]
bx lr

remove_elegant:
ldr r2, [r0]
cmp r1, r2
bne .L12
b .L13
.L14:
mov r2, r3
.L12:
ldr r3, [r2, #4]
cmp r1, r3
bne .L14
add r0, r2, #4
.L13:
ldr r3, [r1, #4]
str r3, [r0]
bx lr

remove_elegant_with_inline:
ldr r2, [r0]
cmp r1, r2
cmpne r2, #0
bne .L17
b .L18
.L19:
mov r2, r3
.L17:
ldr r3, [r2, #4]
cmp r1, r3
cmpne r3, #0
bne .L19
add r0, r2, #4
.L18:
ldr r3, [r1, #4]
str r3, [r0]
bx lr

EDIT: Hmmm, so much downvote without any reply.

Well if your code needs an article to be explained, rather than the plain solution and brings nothing, even 1 instruction slower, as the compiler can't make the same (faster) result as the plain solution, than your code is pointless. And stating that this is the elegant solution is IMO bad practice.
>What’s the value in reselling an ID?

According to this analysis[0], about $20 (not clear from the source whether those are USD or AUD).

[0] https://newsroom.kpmg.com.au/much-personal-identity-worth/

Edit: Clarified that the currency referenced might be USD or AUD.
Eclipse CDT is very good? I think we have a very different definition of very good. Could write a long rant on everything that was broken in Eclipse for C and C++ development.

One question on eclipse. Did eclipse finally sort out git/svn support?

Here's an interesting tidbit of history for those who don't know. One of the main drivers for the decline of eclipse was the complete lack of support for source control, which is a pretty basic feature for an IDE.

You could try to get some plugins. There were 2 major plugins for SVN and neither worked half the time for no particular reasons. It was a complete shitshow. Don't even think of doing that in a company where HTTP access must go through a proxy.

Developers eventually gave up and moved to JetBrains IDE. Source control worked out of the box.
That might work, until you need to pay your tax bill. Or sell to the public sector. These are large parts of the economy! And for most people (I know mot everyone or everywhere), do you really want to manage accounts and deal with tax returns for multiple currencies when one already is accepted everywhere in town?
Found this out the other day on that story from the port explosion. They had a pdf with blacked out names, but you could just copy the text and paste it and it wasn't blacked out.
It's very unlikely it is faster.
https://atlas.ripe.net/frames/measurements/28334941/#!probes is showing you that, for a v4 connection to twitter.com, probe 6745 is getting back a TLS cert which does not match the cert provided to the majority of other probes.

If you expand the row you can see the nation state MitM: notice the O=ISCA, C=KZ.
Well, it could be a competitive advantage for your own company, if you share it with competitors.

We all know that configurable editors are a huge time sink ;-)
Apple Silicon M1 Disruption
This kind of thing makes me happy and also sad. Happy that we can do this. Sad that we must.
Like what? I'm given a beefy computer to do my DS work.

Maybe I'm in my own bubble but does TF have small scale uses where you would run it on a laptop?
I disagree with pretty much everything in your comment.

> NoSQL stores can scale better in certain data access patterns

Exactly.
> Why on earth would one do this?

There’s no real alternatives (other than living on the street). Why would builders and landlords give up such an obvious advantageous arrangement?

People are pushing for change, common holds are slowly becoming a thing. But ultimately there’s a housing shortage in the U.K, and beggars can’t be choosers. It sucks, but you can’t argue with reality.

> "Purchasing" one of these "long-leases" strikes me as doublespeak, a gimmick no different from prepaying 99 years of rent. Ownership doesn't expire.

It’s just like purchasing a future, or any other time bounded asset. Your purchasing the opportunity in a manner of speaking, your ownership of the lease never expires, it just becomes worthless after 99 years.
Yes, and you get used to reduce. map, filter and reduce were hard for me to follow… until I used them two or three times and now I understand them easily and they naturally come to my mind when I need to solve a problem which they can help solving.

They are good tools (especially in codebases shared with people who are allergic to loop statements!)
Linus’ solution seems to add a layer of indirection, which I think is harder to grok than a simple condition.
It really depends on the local conditions. A log on the surface, in an area with things that will eat it (e.g. fungi, bacteria, termites, and other decomposers) will fairly readily give up its carbon.

If it gets covered, and spends time in a cold, anaerobic environment, there will be nothing to return it to the atmosphere. Decomposition can eventually stall out entirely, allowing it (given enough time and compression) to form coal or oil.

I'm very interested in wood gas pyrolosis, a process that pulls burnable fuel from wood and produces almost pure carbon as a byproduct. The gas could be used to generate electricity or heat, and the carbon could be buried in old mines. I suspect the economics just aren't there for it yet, (or the process doesn't scale to the numbers we'd need for large scale de-carbonization).
> no one who has studied economics will believe this there's zero evidence to support the idea a low-level of inflation is bad.

That's quite the number of negations you've got there. I assume you want to say that a mild inflation make economic sense, but I think you're actually saying the opposite due to the 3 negations (no one, zero evidence, bad).
I do this on a Gemini PDA-phone with an integrated keyboard. It's great!
In Houston, Christmas trees are collected, taken down to Galveston ~50 miles away, and piled on beaches to serve as anchors for sand dunes, which is good for the shoreline. As noted elsewhere in this subthread, the carbon trapped in the trees takes years to be released into the atmosphere through the decay of the wood and needles.
The author also misunderstands what "head" of a list is, adding more bad clutter to the code.

(Granted, the code in the original TED talk is broken, as it doesn't define "head".)

A linked list in C isn't a struct with a "head"; "head" is just a pointer pointing to the head element.

The OP article should be retracted.
Is there anything about the platform that is inherently pornographic or sex work focused?
Why did Java catch on so quickly during the '90
Those indexes implement the strategy that you're talking about. I don't understand what you mean by "miss out on the gains for the underlying."
> By the time you actually need to do this you will be able to afford one of these options. :)

What if I need to do this now? Why would I build a distributed postgres snowflake that takes 10 hours to spin up a new replica, requires that I implement my own sharding, instead of using a datastore that is designed to handle all of these things at scale?
I live in Portland Oregon and paid $40 for a 6’ noble fir yesterday at a small retail lot. Normally, you can bargain down the price (and judging by his tentative price quote, he was expecting me to) but I was happy with that price and didn’t bother.
I’m a huge GA fan, but until really sophisticated compile-time algorithms can aggressively reduce the computations it won’t be useful for graphics anytime soon. For instance, the “proper” GA setting is 5d conformal, which requires 32x32 matrix computations. The standard operation is “multiply” (even for translation!); that takes an operation from 4 ops to ... 32k ops.
Still I expect US intelligence would know all the side effects of this weapon and not have to struggle identifying it, I expect they tested it 50 years ago already (same how they tested radiation effects, brain washing with drugs and all the other disturbing experiments they did)
Same here. Although I do sometimes wonder if the memory's 'nostalgia filter' plays tricks. Were the winters really that snow covered and the summers really that endless, when we were wee?

I have been saying for a while now that they really should change the lyrics of that festive song to "I'm dreaming of a wet Christmas... " to better reflect expectations.