skysight-inc/HackerNews huggingface dataset:
Can someone explain why the hand drawn version is better? I’m not an artist so don’t really understand. They just look “different” to me.
From what I can find, in the case of regexes, the derivative of a regex R with respect to a character c, is the regex \partial_c R , which matches a string S iff R matches c S.
So, the derivative of (ab)* with respect to the character 'a'
, would be b(ab)* .

I imagine that the same idea applies for more general languages, so, I expect the derivative of a language with respect to a character, is the language of strings such that prepending one by the character results in a string of the original language.

So, if R_1 and R_2 are two different regexes, then the derivative with respect to c of the regex R_1 | R_2 , i.e. \partial_c (R_1 | R_2) , would be (\partial_c R_1) | (\partial_c R_2),

and, if + is used for concatenation of two regexes, the derivative of R_1 + R_2 would be,
((\partial_c R_1) + R_2) | ((if R_1 accepts the empty string, then the language which accepts only the empty string, otherwise, the language that does not accept any string) + (\partial_c R_2))

etc.

... I think.
Are Face Masks Effective? The Evidence
I get that, but I’m still not convinced. Running deficits is fine, but you can’t do it in perpetuity. When do you suggest we stop?
Some Bat Pups Babble Just Like Human Babies
"Fake perspective" was problematic in early flight simulators as well where texture-mapping was used. The classic example being a long runway.

If the runway was a long polygon and you had a long texture map (with a dashed centerline for example) the standard code to map the bitmap to the projected runway polygon would not in fact apply perspective to the bitmap — the intervals between the dashes would be a fixed not perspective distance.

The solution was to break up the runway into a whole bunch of shorter polygons — each with a bitmap of perhaps one stripe/dash.
Not a dependency in the sense of not a statically linked binary? Sure.

Not a dependency in the sense of not requiring a specific version of a Postgres db provider, or a specific version of a Postgres itself, or able to do any work without Postgres existing? Laughably no.

DB agnostic software is very uncommon, even though ODBC is well-established and mature.
1. Be willing to accept run of the mill advice. Your problem is not tricky—it is instead dreadfully frightening and painfully difficult.

2. Go for a walk outside while listening to Brené Brown audiobooks.

3. Talk to humans who can actually calmly listen —- Not people as disconnected as an internet forum nor someone as intertwined as a life partner.
Happy Hour with Architects: Systolic Arrays with HT Kung and Cliff Young
rqlite author here, happy to answer any questions.
Course notes for University of Waterloo CS241 "Foundations of sequential programs"

Part of the course is understanding exactly when Regexps are good enough and when you need something more powerful.

http://anthony-zhang.me/University-Notes/CS241/CS241.html
Compared to what? Coming from anything named Toyota the Tesla voice control is light years ahead.
Not here in the land of the stupid, the US of A.
For ideological consistency, I can only hope the EFF has a lecture prepared about two party consent for kids who show their phones to their parents if they receive a dick pic.
> by yourself

But you can have a friend with you to talk this through. You are not alone, but you need a phone call… not a forum of internet strangers.
I've always found those articles studying common student misconceptions and their causes interesting . There's quite a lot of physics publications dealing with phenomenological primitives and concepts learned in other disciplines and how they influence students' learning of physics and might be misapplied. For example, this one describing common misconceptions about chemical bonding [1]

Some misconceptions are so strong and common that you might even get teachers that have and propagate them. I remember having a thermodynamics teacher who would insist it's impossible to reduce the entropy of a closed (rather than isolated) system, despite making it clear in their classes that you can reduce the entropy of such system by work and / or heat transfer.

[1] https://www.researchgate.net/publication/225227224_Some_Stud...
I’m unconvinced by the post OP was responding to. It’s a utility, it provides some means to get things done. *nix provides many means of parsing text and running commands, each have their idioms based on their own axioms. It seems as if a composer is lambasting the clarinet because they don’t care for its fingerings. I’ve only used xargs sparingly, can somebody enlighten me as to why it’s bad, aside from the fact that there are other ways to do some things it does?
Admiration of your backstroke?
That sounds interesting. Is it deterministic? That is, can you recreate a game story by making the exact same choices?
One level down, and underneath Bevy, there's WGPU, which was on HN a few days ago. That's an all-Rust layer of middleware which connects to Vulkan, and makes Apple's Metal and Microsoft's Direct-X look a lot like Vulkan. So you get cross-platform graphics. All three APIs are really very similar; the differences exist mostly for "product differentiation". WGPU also supports WebGL, but not consoles or phones. Having a common interface for all those targets is a big win.

Now, that's not a game engine. It's just a graphics API, and a low level one. One level up from that is Rend3, which handles GPU memory allocation and queuing for WGPU. At this level, you put in meshes, textures, material parameters, and transforms. Images come out. No rigged mesh yet, so no characters.

I've been using Rend3/WGPU, and here's some early video.[1] This is a small area of Second Life. I'm working on the issues of handling very complex user-created content efficiently. Most games are constantly reusing the same textures and objects, but Second Life user created content is not like that.

Frankly, it's to soon to be using these libraries for a project with a deadline.

[1] https://vimeo.com/553030168
> if it is some BS it is all BS

Have you read any books, newspapers, scientific journals, or online material recently?
I'm in the same place as you, and I've been trying to figure out if there's some intersection between games and my current web dev specific skills that's both a safer route than traditional indie dev, and somewhat less tapped out. I have a couple ideas, not really sure if they're good though.
In my article about Pluto¹, which is an evolution of the Jupyter concept specific to Julia, I said that these notebooks “may be a way to realize Donald Knuth's concept of literate programming.”.

[1] https://lwn.net/Articles/835930/
It would be weird for it to be faked in the context of the Apple-Epic trial where this came from.
It makes sense to me that people should have a healthy skepcticsim for "captured regulators".

Trust, but verify?
Would you mind expanding with a couple of examples? (E.g. using "foo bar" as a single line or split by whitespace).

I suspect I'll really like your way of doing things, but an example would be very handy.
2/3rds of their original letter was spent describing a parental control over sensitive content detection in iMessage as an end to end encryption back door. At best, that is highly cynical. At worst, it is an intentional conflation of different features to raise false alarm.
None of your arguments justify police brutality against black people.
Comet Bernardinelli-Bernstein
No, process substitution must be provided by the kernel/syslibs, it is not feature of bash. For example there is bash on AIX, but process substitution is not possible because the OS do not support it.
Yeah I came here to say something similar. I feel like there's a middle ground, but this isn't it. Almost like a Firefox of phones that gets rid of the unethical, unhealthy and addictive junk and keeps the essential stuff. Maybe it's more of an operating mode that we can enable on existing phones.

Stuff I absolutely need when AFK: Maps, slack, whatsapp, windy, tides, gmail, expensify and a few others.
Stuff I don't need: Facebook, twitter, news apps that "ALERT!!!" me when it's nothing important, etc.
There's nothing new under the sun. Almost all ideas will have already been done by somebody else. And if nobody has even tried it, then it's possible it's not a good idea.
Rather strange formatting of messages for a court document.

The claim "we are the greatest platform for distributing child porn" sounds just like something pulled out of the air (we have the best privacy so they must want to use our devices/services) and not something backed up by facts.
I don't think it was learning to be more moderate, I think niche communities were pervaded with new users, which in turn caused a shift in culture and therefore later developed into new moderation policy. It's also been heavily corporatized as well, there are far less distal independent entities being a "big deal" and more centralization. But I haven't studied the patterns extensively and this is just collective anecdotal assessments of the shifts experienced from 2004 to present.
> Arrays can be used to keep a runnning count of top-n records (this may need to be sorted on insert, though comparing largest/smallest entry can mitigate this).

Honored and wise Morbius, I humbly beg to differ; top-N record arrays never need to be sorted on insert, because a binary heap is 25 lines of code. Then all you need for top-N is:

for record in input_file:
if record <= aMinheap.minimum:
continue
aMinheap.extract_minimum()
aMinheap.add(record)

I think that, to produce the top 100, this takes about 8 comparisons per record added to the candidate set, rather than the 1000 or so required by your suggested method. The difference won't matter for a big enough unordered dataset, though, since almost all the time will be taken by discarding records in the initial comparison.

I was thinking quickselect was even faster when your data does fit in RAM, but I can't see how that could be true, even though it's linear time: if you have a million records, then the first partitioning step of quickselect will examine all of them (doing one comparison for each), the second partitioning step will examine on average half of them, and the third partitioning step will examine on average somewhat more than a quarter of them (because the expected size for the result of the second partitioning step is more than 250,000 records), and so we end up doing something like e comparisons per record on average rather than 1.

But, with the running-candidate-set approach you suggested, if the million records are in random order, after we're past the first 1000 records, we do only a single comparison for at least 90% of the remaining records (because they're less than the top 100 from the first 1000), and after we're past the first 10,000 records, for at least 99%. So if we did 8000 comparisons in the first 1000, then inserted 900 of the next 9000 records for another 7200 comparisons (plus 9000 comparisons to reject the other 8100), and then another 900 of the next 90,000 records (plus 90,000 initial comparisons), we're at 121,400 comparisons for the first 100,000 records, 1.214 comparisons per record. So, for a small top-N query, quickselect loses the race before it's finished with its second partitioning step. Or am I overlooking something?
"I think we're more cynical"

"I think we're less"

"I'd say it's the same"

It should be pretty straightforward to actually figure this out by sampling posts from different HN "eras" and doing sentiment analysis.

What's the standard practice for sentiment analysis these days?
300K? For what kind of work? At what kind of company?

I know programmers in the US and 300k remote jobs aren't falling from the sky.
I think you can edit your submission.
Head over to lobste.rs, not much activity but it fits your description.

HN's political discourse has been quite unpleasant since last couple of years. Used to be quite a gamut of perspectives, now it is completely lopsided.
I keep all social media apps off of my phone. I do have messaging apps on my phone, such as slack. I find it helps keep me from mindlessly staring at my screen.
Cal Newport in “Digital minimalism” has a plan of attack for addictive loops.

1) force yourself to use the mobile web site vs the dedicated app

2) at the end of the session log out, increasing the friction of using the app mindlessly
From the article:

> It’s important to note: a comment made in a private text message isn’t the same as a full data-driven analysis that compares multiple global platforms and details their capability and usage for transmission of illegal images and videos. Such an analysis would be challenging at best, impossible at worst.

> However, it’s also fairly likely to be an honest, if off-the-cuff, personal opinion.
Thanks! Facata is really a low-level API, so the only SQL that's sent is what's explicitly sent. That means it wouldn't have a 'with' for transactions because that would require SQL to be sent 'behind the scenes'.

Thanks for pointing me in the direction of psycopg2.sql, it looks interesting and I'll give it some thought.
That’s not what he’s doing.
That depends on the language you're trying to parse. If it has a LL or LR grammar, it'll work well. If it's something else that can't be described with something like that or something less powerful, you're going to have a bad time.
Xml and json have no associated semantics, so they’re further away on the spectrum from programming languages.

Markdown has semantics in line with html (when interpreted by the right toolchain, of course), but far less than html.

It’s sort of like “what the line between being alive and being dead”, there’s a lot of grey and the trick is choosing your shade.
Well, this is my friends and me in my early 20s.
The only true way is to use vim/emacs, CLI tools for everything. GUI is for losers.
And the only TRUE and SERIOUS languages for COOL KIDS are C++, Haskell, and Perl. If you don't use them, you are code monkey.

And here I am, doing everything in typescript for my job, use VSCode and Webstorm, in love with GitKraken. What a shame. I'm not a cool kid anymore.
You seem to be mistaking lack of an IDE with lack of tooling ...
Indeed – but is this from that trial?
> Atlantis is maybe still waiting for its Schliemann.

What do you mean? Everybody knows Professor Jones found it already - https://en.wikipedia.org/wiki/Indiana_Jones_and_the_Fate_of_...
> A state actor can modify an apparent childporn image to match an arbitrarily hash and hand that image to other agencies who will dutifully include it in their database.

Even if a state actor constructs an image that is an NeuralHash collision for the material they wish to find, that only gets them through one of the three barriers Apple has erected between your device and the images being reported to a third party. They also need to cause 30 image matches in order to pass threshold secret sharing, and they need to pass human review of these 30 images.

Arguably investigation by NCMEC represents a fourth barrier, but I'll ignore that because it's beyond Apple's control.

> You just have to blindly trust that Apple

This has been true of all closed source operating systems since forever. Functionally, nothing has changed. And whatever you think of the decision Apple has made, you can't argue that they tried to do it in secret.
I've been using the iPython CLI interface for well over a decade, but I'm embarrassed at how long it took me to understand how transformational "iPython notebooks" (now Jupyter) would be.

I remember seeing new releases of iPython that enhanced the weird web interface feature and being utterly baffled as to why anyone would want that.

I finally got on board with Jupyter notebooks a few years ago and I've used them multiple times a week ever since.
At my first job I spent about US$10k on a super fast compile server which didn't speed up our slow compiles because the bottleneck was the shared 10BaseT Ethernet to the NFS fileserver where we were storing both the source code and the build artifacts. I should have listened to my boss who was telling me it probably wouldn't help.
I know the whole "children back in my day" thing occurs for every generation, but I seriously think there was some kind of turning point or singularity that accelerated decline with the advent of the smartphone. Pretend play, learning to have fluent spoken conversation, regulating emotions with other people, negotiating - all replaced with screen time and online-only interactions that humans are not adapted for.
We need something like a web of trust system that enables local governments to validate official ID's and cryptographic signatures. We can't do a perfect job, but doing the best we can with current technology and building a rational framework of data protection at the citizen level is the only rational course.

A blockchain system makes sense for a distributed record of a web of trust. Instead of a coin and proof of stake, a proof of population based algorithm would allow nodes to join a network.

Such a network could form the basis of any government function and cryptographically protected personal data. You could add trustless age verification for porn sites, for example. Or it could allow checking the vaccination status for college entry, or so on. In the case of identity theft, it should be possible to allow law enforcement or some official entity the ability to issue a new identity key, and revert or modify any changes in private data, flagging the poisoned entries in the blockchain.

Anyway, the point is : it doesn't have to be perfect, it just has to be better than the shitshow we have now. We can eliminate SSNs and do a pretty good job of implementing cryptographically secured trustless identity. We can build a system that maintains privacy as a fundamental principle instead of trying to tack on post-hoc reactive solutions that are always too little too late.
> That depends on the language you're trying to parse.

Yes... but most practical languages do not have simple LL or LR grammars. Hence this blog post and discussion and these problems.
i hope so too
Brace youself for the torrent of "news" related to Apple and bad actors that must be stopped at any price

http://paulgraham.com/submarine.html
He’s obviously wrong, but surely that would apply to anything which embeds the assumption of the blank slate, I.e. almost all modern humanities, and half of social science.
If only Brezhnev had listened. Or were you talking about the American invasion?
The article literally says that.
Poem: A Video or a voodoo? The rhymes for a nation
What a boring trope. electric car companies, hardware companies in general, b2b companies, eink, pinephone, etc, etc.

These companies come across here every day. If you think everything is about selling user data you aren’t paying attention.
2001: The Beast
America's invasion. BRI wasn't a thing back then. Also, the USSR was invited by the Afghanistan government to contain a rebellion, it wasn't an aggressive (imperialist) invasion.
The list of things we could have achieved with that money is what is the most distressing.

Make a countrywide high speed rail system.

Universal free preschool

Universal free college

(Edit: for scale rather than an example of necessarily a good) Paid off half the mortgages in the US

The list goes on and on. Let nobody say we don’t have money for improvements to our society.
Note this is not a new offer: Released for the first time in September 10, 2019

https://aws.amazon.com/about-aws/whats-new/2019/09/announcin...
Is it possible The vaccine has the opposite effect on some people, rather than helping them to defend, it makes it easier for them to become infected?
i agree, but for an undergraduate understanding of parsing and grammars, recursive descent is perfect

i think the more complex parsing algorithms were good for producing papers, which explains their success in academia but relative lack of success in industry
The political downvoting has also increased dramatically.
Agreed.

> I've increasingly felt that people here are disconnected from reality in a way not seen in previous years.

Well, I don’t think that is surprising given the rise of popularity of HN. The early days had people interested in startups, and hence their virtues, and later came a large crowd that had some interest in tech but had random alignments.

I feel that human beliefs form a distribution where almost anything will believed by someone, and if you gather a large enough crowd you can find a large cohort that will earnestly believe various nonsense things.
Just after the torrent of news that Apple is a bad actor that must be stopped.
Almost never. Logging is the only real solution in real-time distributed systems.
Seems to be the original document:
https://embed.documentcloud.org/documents/21044004-2020-febr...
I'm pretty sure I could get a $25k-$75k bump if I were to hop jobs right now, but I just can't bring myself to do it. Partly because I've only been at my current place for about a year, and the place for that only 6 months. It's just so exhausting going through that whole process, and then taking months to get familiar with the team and codebase.
Ignoring the side show of "wait it doesn't have types" and "lol it's bad because it's lax on types"....

Is having a "STRICT" keyword appended to the end of the CREATE TABLE syntax the best option? I'd have thought this would be a PRAGMA option if ever implemented.
judging from the upvoted topics there are probably more marketing/hr/managerial people now than engineers/scientists
The PlayStation didn't have perspective-correct texture mapping despite having a real 3D rendering pipeline: https://www.youtube.com/watch?v=x8TO-nrUtSI
> Lie? I don't take kindly to such words, because you're ascribing malicious intent where there is none.

Howdy partner, it seems my tone communicated the sentiment as intended. It is unreasonable to ascribe anything but malice in this case, because the rationale strains credulity. Do you know at what point Apple is determining your intent to sync photos? What processes, exactly, are they hooking into in order to trigger the local hash functionality? Is it the resource hogging Photos-Agent frequently complained about? Is this thresholding functionality restricted to cloud content, or is the local database mentioned involved? Does that local database only relate to images uploaded to the cloud, and how would the deletion of local and/or cloud content influence that?

These are all questions that are either unaddressed, provide no assurance beyond "trust us", or hint at logical conflicts between the stated purpose of local scanning and the actual implementation details. With all that in mind, granting Apple and its defenders the benefit of doubt is laughably foolish.
It is taken in grep, just poorly documented; grep -5 means grep -C 5, and grep -0 means grep -C 0. It's not taken in sort, though, so I don't know why they didn't use -0 for sort.
Jokes are not punished on HN as a rule. Low-effort comments are. Double for whining about downvotes.
Thanks, we were thinking of the same thing.
> I run a martial arts school and we have fitness classes

What martial arts do you teach if you don't mind me asking? My cofounder and I are martial arts enthusiasts (we mostly train BJJ and Muay Thai)

I've spent a lot of time thinking about pain points for traditional martial arts schools and applications of our platform. Unfortunately haven't had too many good ideas though; our platform feels more straightforwardly applicable to reducing friction and improving engagement in online group fitness classes (yoga, cardio kickboxing, etc.)

Heard on all your other points! We're going to prioritize improving the landing page and video. Thanks!
My comment was sarcastic. Your points about the imperialist "Afghanistan stalemate" fit the Soviets equally well with only minor modifications.
What mechanism are you suggesting would be at fault for such an outcome?