skysight-inc/HackerNews huggingface dataset:
What happens when people refuse to use these new rehab facilities, preferring a life of drugs on the street? I'm all for improved mental health care, but at some point, we need to involuntarily remove vagrants from the street and put them in places where they can get help overcoming their problems.
How would restricted network access help? If you permit a dodgy app to talk to only one remote endpoint, it can exfiltrate whatever it wants.
Log-My-Node: More Informative Logger for Node.js and Express.js
I disagree completely, but I'll accept that that's partly a matter of taste.

But the thing that shocks me most about how completely Perl has fallen out of fashion is that nowadays sysadmins will write a hundred-line bash script rather than a five-line Perl script because of the theory that Perl is hard to read.
i think it might be handy if you want a web game rather than a document.
You can, it's called "erlang".
how do you handle persistence ? i’m trying to design a system at the moment and i feel like actors are great until you have to deal with persisting state to a database ( at which point the idea of having millions of independant process each hitting your database to save and load their state look like a disaster)

edit : i misread your post, thought you were designing a system, not a PL... maybe you can still answer my question ?
you will find numerous examples of what can be automated on this thread https://old.reddit.com/r/AskReddit/comments/ebp6ak/there_is_...
I was about the same age when I read HTWF&IP. It's a shame because it's a really good book about, basically, how to be a good person.

I think the reason we put it off for so long is that they couldn't have titled it worse if they'd called it "How To Be An Asshole"
It performs the function to make the dealer more money, as others have pointed out, it is a cutting-agent not an additive.
we're dead a lot longer than we're alive. a lot longer. we're dead longer than before we lived lasted.
Looks similar to Objective C. Verbose but clearer.
The concern is more with second order effects. If potential investors who don't have access to insider information think the market is rigged then they'll be less likely to invest, thus increasing the cost of capital for businesses.
I would agree that Pimsleur lessons won't take you to HSK4/5, but they are a great way to get into the language first without all the more academic studies upfront.
> By the way, will your C++ code work with singly-linked lists?

Yes, but you'll use merge instead:

list.merge(std::forward_list<T>{val});

I chose to use std::lower_bound for binary search. If you are content with linear search like in the C example, you can even write a single function that works for both doubly linked lists and singly linked lists.

> Also, look: your C++ example calls four methods. The C code calls only one (malloc), all the rest is core language. It's 4:1 ratio for extra complexity.

This is what I call unnecessary manual inlining and reinventing the wheel for no good reason.
Alex MacCaw’s Predictions of the Future
The Launch Pad: Inside Y Combinator
The other thread was https://news.ycombinator.com/item?id=18318547, from last year.
Study: 49% of American Adults Predicted to Be Obese by 2030
Link to the study: https://www.nejm.org/doi/full/10.1056/NEJMsa1909301
Is there a reason headlights and windshields dont use the properties of circular polarized light? reflections reverse the circular polarization state.

standardize the polarization filter on windshields and headlights, and unreflected direct light (from other cars) can be filtered out, while softer diffuse single reflections (from both your own headlights and those of others lighting targets like road etc) pass through the windshield...

For cyclists and pedestrians one could make "night glasses" that do the same as the windshields... and similar bicycle headlights with circularly polarized light
I can't find the quote online so this could easily be apocrypha or something I made up in my head, but I could have sworn Alan Kay has said as much along the way.
Researchers developed a plastic that can learn how to move
It's incredibly confusing if you naively use a list as a default argument, e.g.

def foo(some_list=[]):
...
some_list.append(3)
...

Since the default is constructed when the function is evaluated, it's the same list, but only when the default is used.

Or the n00b's attempt to use lambdas:

def list_of_lambdas(x):
result = []
for n in range(x):
result.append(lambda m: n + m)
return result

for func in list_of_lambdas(3):
print(func(3))

5
5
5

(All the closures share the same "cell", meaning the same "n", which is 2 at the end of that loop. Worse, if you 'yield lambda ...', that example would look like it worked. So, yes, Python absolutely has references.)
What harm?
Objective-C's method call syntax is modelled on Smalltalk's.
You still need some way to securely seed a CSRNG. That's what we use the entropy pool for in Linux. The idea is that we mix multiple sources, and hopefully at least one can't be guessed by a particular attacker.

For example, you might use three hardware random number generators; one might be compromised by the Chinese MSS, and one might be compromised by the KGB, and the third might be compromised by the NSA --- but hopefully they won't be all compromised, and even if they are, hopefully they aren't working together.

Or maybe we're mixing randomness from the UEFI and the TPM. Neither can be audited, and we know that many firmware engieners are incompentent. But hopefully, if the UEFI BIOS has some terrible bug, or can be remotely compromised because Intel snuck in a Minux OS with a web server without telling us in their CPU's, maybe the TPM provider didn't make a similar mistake.
2D/3D browser games is a niche. Far from being JS common use case.

Even more so in the context of this article. First paragraph:

> We will demonstrate how to do a complete port of a web application from React+Redux written in JavaScript to WebAssembly (WASM) with Rust.
> Each course is 20 classes (i.e. 40h), and after 10 you're supposed to be reasonably conversational

How on earth are you expected to be "reasonably conversational" after 10 classes (20h) worth of Mandarin?

It's just impossible.
That feature is still there. The guy to whom you replied was mistaken.
If you want to quibble, then in reality, there is only specular light reflection. It’s just that rough surfaces bounce light in many directions because the surface is rough.

In theory, if you had a high enough resolution texture and used enough samples you could actually represent all materials with only specular reflection.

Diffuse light is simply an approximation we use. We effectively have a value for “roughness” of a surface and assume that some percentage of the lights scatters in all directions using various approximations of how rough surfaces typically reflect light.

So yeah, it’s always “light bouncing off things”
If you're reading this and work in a role that helps companies turn profit from these practices, fuck you.
...aaand here's how to justify the text in reader-view for that final bit of perfection.

https://twitter.com/cvs26/status/1206607533617471489
Correcting Scrooge's Economics
I’m very disappointed when I see new languages (cough Rust) not even consider named arguments. The added readability at call sites just seems like a no-brainer to me.
I'm sorry, but after skimming his wiki I'm not seeing the relevance of that relationship. Are we to infer that being ethnic Chinese without close ties to the mainland would create a conflict of interest?
I don't understand why this reporting doesn't include the phone companies? They have far more data.
You should check how Erlang / Elixir database drivers handle that.

In my experience with Elixir there are never many processes that have a state to save in a database. Eventually it's the same load no matter if the implementation is actor based or object oriented.
> even though it's about 2x the price.

^^ that's probably why...
Yeah, apps are bad, but what concerns me (well, scares me to my bones, actually) is the prospect of malware below the app level. The operating system, drivers, and hardware are all ripe for abuse at an unimaginable scale. The "baseband" blob in particular seems like a holy grail of invasive surveillance. And, theoretically, there's a huge opportunity for the manufacturer of the PCB and every chip on it, to add what is logically a blob - a region of the chip that is mostly dormant, but reacts to some signal and come's alive. And we cannot verify that these features don't exist because they are too small!

I mean, if I was China I'd be actively pursuing inserting this kind of trojan horse in everything. Yeah, you'd only get to use it once at scale, but that's all it would take. And you'd probably get away with targeted use for a long time before anyone discovered it.

This, that is, national security, is the best reason to pass "right to repair" laws, and build out replacement hardware and software options that are verifiably open. Heck, if I was with NSA I'd be pushing hard to fund that kind of work with NSA money.
You know, I really like this idea. It's simple, straight-forward, the website loads, and its demographic is mostly everyone. Good stuff. One qualm is that two scrollbars show up, probably from some overflow: scroll stuff. Would consider looking at that.
Oops, my mistake. I did try to check my belief on the IBM website by looking for an 'about the company' section but it was so reader-hostile I gave up and assumed that IBM was the name they were going by these days. Arm is definitely Arm, though, not anything-risc-machines.
Wealth and Personal Finance for Hackers
You can have per-application IP routing if you run applications within individual Linux containers. E.g.:

sudo pflask --netif=macvlan:enp4s0:net0 tmux

Then inside tmux run a VPN client and the sensitive application.
Did white people get where they are from being nice?
That had been my conclusions over the years. Erlang (or Elixir) are ironically one of the nicest environments for OO code these days (given they are usually categorized as "functional")
That doesn't really pass the smell test for me. Even native speakers of a language in its native country are explicitly taught grammar and vocabulary in school. I could believe the Wikipedia article's weaker claim, that there's an extra step between instinctively remembering "了 is the perfective particle" and being fluent in the perfective aspect. But the idea that explicit instruction is useless, that consciously knowing grammar won't help you acquire it at all, seems obviously wrong.
Reminds me of the pg essay on Lisp, where he points out that, if you use a lower powered language, you simply don't know what you're missing in the higher powered languages. You think those features are useless because you can't imagine using them, and you can't imagine using them because they are impossible to express coherently in the language in which you think.
So have I. MobX + TypeScript has been one of the better experiences I’ve had.
I'm good with this.

The only rebuttal I ever hear is, well, how are your favorite websites going to stay up if they can't be free? Will you pay for them all?

And the funny thing is, the websites I use fall into three categories:

1. Free, and super cheap to host, unlikely to be affected by loss of advertising revenue at all (e.g., my hobby blog)

2. Free, and I can live without them easily, because the entire commercialization scheme is inherently destructive to a positive experience(youtube; facebook)

3. Free, but have other commercialization schemes underway or provider their owners with some other sort of value, and would very likely remain viable in their current or similar format without advertising (Penny Arcade; SMBC Comics; Stratechery-ish; H-N; RP online)

4. Non-free (Netflix, medical journals; various patreon-based fora/discord channels/etc.)

1 & 4 are the primary sources of value for me. 2 could disappear overnight and I would barely notice. 3 would either adapt to survive, or die, and the total loss of value to me would be non-zero, but small.

So by all means. Kill off the ads. Don't give me any bs about the value of the free internet. It's worth what I paid for it.
I don't think you need base stations, given atomic clocks shared between the network and possibly on some of the client devices, the client devices could form a large phased array receiver and then mesh the data between the ground based mesh.

Base stations help, but aren't required.
I've heard of a lot more variable stars over the last few years, all of them having unusually low dips.

The explanation is simple--I'm noticing now, and I didn't before--but it's amusing to imagine there's some other reasons. Aliens building Dyson swarms, whatever. Never mind that the timeline doesn't work out...
Satellite internet is too slow to do much. It reminds me of the dial up days.
I'm saying that (1) there is no perfect or near-perfect match; (2) it isn't clear which available option is the "best" match, because the three obvious options each sacrifice something different.

If you're interested in the theory:

Vowels are generally thought of as being points in a three-dimensional space. The dimensions are:

1. Whether the vowel is high or low -- if your mouth opens wide (chin closer to feet), it's a lower vowel; if your mouth doesn't open far (chin closer to eyes), it's a higher vowel.

2. Whether the vowel is front or back. The traditional way to explain this to linguistics students is to give them all lollipops. You put the lollipop on the middle of your tongue with the stick jutting out of your mouth. You can observe that the stick juts farther forward when you're pronouncing the FLEECE vowel than it does when you're pronouncing the GOOSE vowel.

3. Whether, as you pronounce the vowel, your lips are rounded or not.

Dutch "ui" is a diphthong, a transition from one vowel to another vowel. It appears to be a transition from (lowish, front, rounded) to (high, front, rounded). This is difficult for English because, in English, all front vowels are unrounded.

If you'd like to preserve the lip-rounding aspect of "ui", you need to use back vowels, at which point the MOUTH vowel is a near-perfect (low, back, xx[1]) -> (high, back, rounded) match.

If you'd like to preserve the frontness of "ui", the English FACE vowel is available, which is a transition from (lowish, front, unrounded) to (high, front, unrounded). CHOICE is a different option; it's (lowish, back, rounded) -> (high, front, unrounded). With CHOICE, you're choosing to match the rounding (and not the frontness) of the beginning of "ui", but transition into an end that matches frontness instead of rounding.

Which part of a sound is more important for purposes of matching a foreign sound to a native sound is a very interesting question, and to the best of my knowledge nobody has any idea why different languages make the choices they do. My (American) ears think the MOUTH vowel is the best match for Dutch "ui", even though it's an even better match for Dutch "ou". But someone else might disagree.

For an example of "differential splitting", consider that in modern English, W, V, and F are three separate sounds. In Old English, W and F were "real" sounds ("phonemes"), and V was a variety ("allophone") of F. In modern Mandarin Chinese, W and F are also phonemes, and V is an allophone of... W. Clearly, if you speak modern Mandarin, what's important about the V sound is not the same thing that would be important if you spoke Old English.

[1] Rounding is less obvious for low vowels -- a certain amount of lip rounding is induced by opening your mouth so far.
Thanks for the link to the author's site - most of it's over my head, but I love how deep he's into this particular topic.

Browsing the papers, like 数理漢文学への道 (the road to the "mathematical study of Chinese literature"..?), I see that the reality of working with a natural language is fraught with exceptions and ambiguities, requiring more and more logical rules to be added in order to closely represent the real-life usage of grammar.

So I think you're right that Chinese is not necessarily easier than any other language, to diagram this way. It's due to my lack of knowledge, that I imagined Chinese grammar to be more strictly logical than, say, English which is well-known for its quirks and idiosyncracies.

In a way, the approach of mathematically representing a natural language reminds me of earlier years of AI research before machine learning - like expert systems and inference engines - to manually build models of knowledge and mental processes.

(Well, in the case of this kundoku research, it looks like it's concerned with the syntax structure only, and not about the content/meaning of the words and characters.)

> It gives this assembly-like feel to the whole thing, where kanji=memory cells and kaeriten=instructions.

Wonderful imagery - I can see why you were working on "a virtual machine for transforming texts (texts are code and data) in kanbun".

I didn't get it before, but when you said "texts are code" - now I see that you were feeding kanbun text into a VM that interpreted it as code..!?

A somewhat related topic I'm interested in is mathematical representations of music. It feels like a similar endeavor, to build up a set of logical rules to attempt to model the real-life usage of musical "grammar". There are so many exceptions and "illogical" (i.e., strangely dissonant) ways that people express themselves, that will always be "one step ahead" of any set of rules. (On the other hand, there are some fascinating examples of algorithmic music, beyond what humans are able to create.)

Anyway, thank you for an introduction into a thought-provoking topic.
Please keep canned arguments like "whataboutism" off HN. They're repetitive and never lead anywhere new or interesting.

https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
A possible solution is: coarsely label the incoming mail, or just label everything incoming if coarse label is not possible.

In Google Apps Script, fetch all mail with that label, process as wanted, like sending replies, moving, deleting; & then remove the label.
It should be easy to implement on a modern IDE, right? I think intellij exposes a setting for example.
The collection, purchase, sale, and distribution of sensitive user information without the users consent.
The only counter-argument I've heard was that it has the consequence of making the argument name part of the API (i.e. changing the name would be a breaking change, so all parameter names of exported functions "leak" into the public interface). That always seemed like a very minor drawback to me, I too would appreciate to have named arguments in Rust.
There's a quote from Joe Armstrong saying something like that

> As Erlang became popular we were often asked "Is Erlang OO" - well, of course the true answer was "No of course not" - but we didn't to say this out loud - so we invented a serious of ingenious ways of answering the question that were designed to give the impression that Erlang was (sort of) OO (If you waved your hands a lot) but not really (If you listened to what we actually said, and read the small print carefully).

https://stackoverflow.com/a/11809324/903589
Take a look at Request Control, it’s more complex but it can do pretty much anything (from removing utm parameters to skipping redirects)

https://addons.mozilla.org/en-US/firefox/addon/requestcontro...

Start with the rule “[hostname=nitter.net]” for twitter.com requests
That's not how you would persist to the database. Processes (Erlang VM threads) have mailboxes that process messages (like records to be saved to db) in a queue. Everything is built around message passing, each process just handles its own narrow job.
Sure, and that's why we still have the entropy pool in Linux. It's where we do the mixing.

My apologies if I didn't understand the point you were making.

And yes, I would love to see us adding more entropy sources in the future. The problem is I don't have a lot of time, and a lot of other projects to work on, but I've been trying to recruit people to add support to pass entropy from UEFI into the kernel (which requires changes to Grub, NERF, Coreboot, etc.), being able to pass entropy from one kernel to the next when using kexec, etc. I can't do it all myself; this is something that requires a lot of people to make things better.
Ya but Apple could blanket urban areas with 5g no problem, or rent space like FI, especially depending on how antitrust investigations go over the next 5 years.
I wonder what prevents a fish that goes down to 100 meters from going down to 300 meters or 3000 meters. Does it feel an internal pressure that tells it to not dive further, or is it the amount of light or availability of food it seeks? Since fish wouldn't suffer from decompression sickness, I wonder if they could dive much deeper if they wanted to.

Now that I think about it, I've scuba dived to 130 feet and it didn't feel any different to me than being at 10 feet. The only reason I didn't go deeper is because the depth gauge, divermaster, and training told me not to go deeper, and not because I was feeling the pressure.
It’s not that they’re hostile to web apps, it’s that Apple defines the iPad Pro browser as a desktop browser.

Apple made clear that they intend the iPad Pro to present a desktop browser view of the Internet, and has successfully defended their intentions against the wishes of developers to do otherwise. They openly said they’d be doing this and the result is exactly as they intended.
I'm in Europe and that is a basic plan, but a lot of people pay more. I am guessing at 10 euros a month you might get 1GB a month, which is not enough for most things.
Now someone should take this to the next level and makes a fountain that implements an 8-bit adder.
The range of words you learn with Pimsleur is limited because the method makes sure you actually retain every word it tries to teach you. Having a solid grasp of a small vocabulary (a few hundred words) is an excellent way to start off with a language.

> But I think you won't be able to really grok "random" speech before having a good grasp at pretty much all the vocabulary you would encounter.

But you will be able to grok small conversations about subjects you're familiar with. You can expand from there. When you try to learn a new language, you should be speaking from day one, no matter how limited the range of subjects you can speak about.
Could you explain how you come up with your increased latency numbers vs ground based fiber?

1000 miles is about 5ms.
Good luck figuring out a sane UI for that for average mobile user.
Finally moving out of SF was the best decision I ever made. It only became clear once I was removed from SF for enough time. Fuck that place. Yeah, it's the home of technology, but it's slowly rotting and dying and it makes its resident miserable terrible people.

I'm happy to be living somewhere I love now (HK). And if things ever change, I'll hope not to make the same mistake and stick around so long.
Speaking of dying, the world would be so much better if people died without pain. They would spare themselves and the closed ones from a lot of pain when the end result is obvious (death).

Pain hurts. Both physically and mentally.
Think of the wake of a ship slicing thru water. The very distant past you can barely see anymore. The present is very bubbly and froth with waves. After the wake is completely gone, did it even happen? The body of water is calm and smooth again, no record of this "event". See Alan Watts on cause and effect; really discrete events like birth, death or is all of nature just 1 big event?
Are there any videos of this program in action?

EDIT: User dpedu put up a video of it in their comment here: https://news.ycombinator.com/item?id=21853137
There are some difficulties to solve around how higher-order functions should work.
The YC ideation talk with Alan Kay has a small rant from Alan about what he meant with Objects, and how that isn't what objects are used for now. What he described sounds exactly like the actor model.