skysight-inc/HackerNews huggingface dataset:
Ask HN: Have you had any success building a multiplayer app using GQL?
For building multiplayer apps with complex interactions and conflicts it seems as though OT is the current industry standard with CRDT making some new strides.
However, it seems as though these technologies are fairly complex and come with lots of trade offs and nuance.
For many less complex apps, it seems as though you could take a slightly more naive approach similar to [Figma's multiplayer tech](https://www.figma.com/blog/how-figmas-multiplayer-technology-works/).

I am curious if anyone else besides Figma has taken this approach and what their experience was.
Did it end up actually saving implementation time and reducing bugs vs using a more established solution?
Were you able to implement it on top of existing state management solutions like Apollo/GQL or did it require handrolling something?
> It is built by a former contributor to both Chromium and Firefox, and is built out of personal opinion on how Web Browsers should try to understand the Semantic Web.

Could you share more about this vision?

> writing my own SGML parser

How did you land on SGML?

What do you think of a browser/mode that parses markdown, so we can have a "markdown web" with less complex clients?
If only content moderation and human expression were that simple. Alas, it is not to be.

If you read it carefully, I just “made fun of” people who are unimaginative. Is that an innate trait? Should my content be censored?

Should a comment on a video of a tall person that says “how’s the weather up there?” be censored using criminal liability?

This criminalizes even hosting the discussion about what beliefs along these lines are or are not correct. Someone posts about their (mistaken) beliefs, in essence asking about a disproven theory correlating race and IQ. Other people correct them, educating them as well as any other lurkers. Should the sysadmins go to jail for not deleting the entire thread?

Being wrong on the internet should not be illegal.

There is absolutely not a bright line, and it is somewhat naive or perhaps even dishonest to claim otherwise.
I never actually got to the VR part because there has been no real interest/participation with what I made so far, but as far as the 3D environment (plus scripting) I made VSIM (vintagesimulator.com) which is a little along these lines and the aim was to do VR eventually. But hardly anyone ever used it so I moved on.
Wow. Someone is feeling guilty, I reckon.
That’s where https://miragejs.com/ helps. I’ve built few fully functional prototype apps with full UI/UX without a single line of backend code and with front-end acceptance tests.

If you’re prototyping greenfield product, it’ll morph many times as you build it. Once you’re happy where it is, and you’ve stabilized on data structure (not database schemas), then just start replacing mocks withr your API calls. Acceptance tests will tell you if you’ve done it right.
I am making a tool to make new habits and routines effortless.
Starlink has its place but it's not anywhere close to reaching the terrabits that fiber optic can do.
Aside from Android support, my key suggestion would be to clearly think through on-boarding. Visiting the page, I see a $13 monthly plan, in an era of free and $5 iPhone apps. I don't know if it's any better or worse than free, so I'll pass.

On the app's page, I'd suggest clearly describing what one gets for free (before paying for a plan), so people can try it. For an app like this, I'd want to know what I'm getting before I install. Many apps just install and ask you for a credit card before anything happens. From there, I'd like to know what I'm paying for before I swipe my credit card. Clearly describing free versus paid version is key.

But my last iOS device is an iPad 2, so I don't think I can even do the free version.
It expresses at least one idea that people find morally reprehensible. It being honest is not a redeeming quality.

Additionally, looking through your comment history, I feel your comments are really written by a human, but they do have a very eerie similarity to comments written by GPT2 bots.
It's easy to forget these days that we in the Western world are not all one big house with the same rules, and reality checks can be jarring. It behooves us to remember the differences, lest we be overly shocked when we see a diner in an American restaurant carrying a sidearm or a European getting arrested for teaching a dog the Nazi salute.
Anything you cannot biologically change is hate speech. It’s not complicated and it’s objective.
An SF Bakery Owner Teamed Up with Twitch to Save Local Restaurants
> How long until internet companies decide that relatively small and litigious markets aren't worth their time and simply ignore laws like this?

We saw it happen with GDPR already. Though we also see many companies play ball with censors, e.g. in places like China. If suddenly a Winnie-the-Pooh cartoon is judged to be "hate speech", it's easy to just censor the cartoons. Most users won't exactly care, there's plenty of government-endorsed content that they're still allowed to access.
You can be optimistic and read this one https://tvtropes.org/pmwiki/pmwiki.php/SugarWiki/TVTropesWil...
I found this book to be the most approachable Deep Learning book that actually helped me build something.

https://www.manning.com/books/deep-learning-with-python
Elixir: It's Not About Syntax
Silicon wafers are not made of Sande, they are made from Quartz (fact check me). Arizona has 113 quartz mines ..

https://thediggings.com/commodities/quartz/usa
Yes, learn words not characters! The hardest barrier to that is the lack of spaces.

I wrote https://pingtype.github.io to add spaces, pinyin, literal and parallel translation so I can read interesting text (song lyrics, Bible) instead of just textbooks.

It also has a keyboard which uses radical decomposition, but usually it's easier to copy paste the input.
Ed: regarding the benchmark, as best I can tell, the top listing for ruby runs under puma:

https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

PostgreSQL is obviously not written in ruby, but the other components are very much "ruby code". There appears to be c/Java extension for ssl and parsing http, though - but AFAIK the main server is ruby.

https://github.com/puma/puma/tree/master/ext/puma_http11

Tangential, but you might
enjoy:

https://deno.land/v1#http-server-performance

> A hello-world Deno HTTP server does about 25k requests per second with a max latency of 1.3 milliseconds. A comparable Node program does 34k requests per second with a rather erratic max latency between 2 and 300 milliseconds.

> Deno's HTTP server is implemented in TypeScript on top of native TCP sockets. Node's HTTP server is written in C and exposed as high-level bindings to JavaScript. We have resisted the urge to add native HTTP server bindings to Deno, because we want to optimize the TCP socket layer, and more generally the op interface.
As far as I remember from the public discussion, unfortunately this application relies on the centralized model, rather than the decentralized approaches proposed. IIRC uses the same approach that Germany originally proposed, then scrapped.
US is making a lot of noise about it, but the current administration lacks the competence to actually do it. The US generally doesn't do this kind of state-directed enterprise dirigisme, outside of Boeing.

Remember Foxconn Wisconsin? https://www.theverge.com/2020/4/12/21217060/foxconn-wisconsi...
That somehow reminds me of how APL languages work. Operators with low-level meanings compose into phrases that act like higher-level operators. Eventually you read the language in phrases.
> Let's do some simple math of how long it's going to take you conservatively to learn the 8105 characters given in the Table of General Standard Chinese Characters if you follow my velocity of 50 characters a day. And I'm going to add another 30 minutes, so we have 2 whole hours a day.

...

> 324.2 hours for all characters in the course of ~6 months. This seems very possible to me and a very good investment of time at that. After these 6 months you'll be free to pursue gaining vocabulary in the form of combining the characters you know into words, pronunciation and listening/speaking.

That's treating language learning as batch job, even though pipelining it would probably make more sense. You don't have to first learn all the characters and then all the words and then how to pronounce all the words and then finally you can dare to utter your first sentence.

I think it's better to do it the other way around: find a sentence you want to say or understand. Look up all the words in that single sentence, their characters and pronunciations, then memorize only those. Then learn another sentence. That way you always have some context for the new knowledge, instead of just treating it as a random collection of facts.

If you frontload on characters, it's easy to overlearn things you don't actually need. I have an Anki deck with 9385 Chinese words and 4174 distinct characters, so I know only slightly more than half of the 8105 characters the author intends to learn. But I'm functionally fluent, since the other characters basically don't appear in modern texts, except for very specific contexts. I picked a random character I didn't recognize from the list: 笸. According to Wiktionary, it's only used in the words 笸箩 and 笸篮, each of which refers to a specific kind of basket. https://en.wiktionary.org/wiki/%E7%AC%B8
We had a recent example along these lines with certain sports and records where there were some hate speech references to a potential biological basis for differences (men vs women and masters age vs non masters).
I've never been a fan of Chekhov's gun. Interactions and details that aren't directly connected to the main plot do a good job at giving the world texture and making it feel alive. Fiction that does away with too many unrelated details (and I'd argue a lot of fiction does this) often feels artificial and empty to me.
Yeah, maybe I should rewrite one day, but customers wouldn't care much and I am content wit Ruby.
First off - this is really neat, especially the focus on privacy and the use of AI at the edge.

It seems like the occupancy limit problem for small rooms is much more challenging than the building-density problem, since a single error could DOS the room.

How do you account for that?
That is not how I read that, at all. My reading is that the moral failing is on society for not providing other options to them. Not that it is a moral issue for them to earn in that manner. If someone, who otherwise would not want to do this work, must because there are no other options to pay the bills it is an issue with society.
Microsoft Inclusive Design
Read Nassim Taleb's essays.

https://medium.com/incerto/the-logic-of-risk-taking-107bf410...
We're discussing an application written in JavaScript that runs outside a browser. So the point is that it is unsurprising to discuss node. It's like if we discussed writing a network app in Python and someone said that the GIL was a problem. Technically, there are python implementations that don't have that problem, but in practice we would almost certainly be talking about something that would have been using cpython, so it's relevant.
And personally I don't feel the benefit of giving out that much information (in such an uncontrolled manner) is worth it, so I would probably opt out. Then again, you're not going to see my face in any restaurant at all for the foreseeable future so I don't have to provide fake info to opt out.
There isn't necessarily any contradiction here. Lay off people whose work you no longer need / are not doing their jobs well, to hire people whose skills you need.
A billion dollars per mile of rail is an excessively overpriced cost of construction that ought to have severe political pressure to explain why so much money is being wasted.

Construction cost of subways outside of places like NYC that apparently have no concept of cost control is typically about $100-300 million/mile.
Covid-19 Deaths in the Past Two Weeks per US County
I'm not so sure that the leverage will change.

If remote work were to go mainstream and that became the norm, employers won't pay different salaries based on location: they will pay one salary based on the cheapest location. It's not that different from outsourcing work today — there might exist manufacturing workers in the Rust belt that are capable of doing manufacturing, but employers just shift all their supply chains out to cheaper countries, since there's little difference between a Chinese person's labor, and a Pennsylvanian's labor.

Similarly, if everyone is remote, then the difference between employees that live in low COL areas and employees that live in high COL areas starts to really blur. There might be exceptions to this for extremely high skilled engineers, but they're marginal cases.

If we move to an all-remote (or even a "most-remote") engineering culture, then software engineering jobs will simply be "outsourced" to the cheapest COL areas.
the linux command UI (for actions/services) and spreadsheet UI (for data) are the best interfaces that have lasted for over 40 years.

Anything else is ephermal.

History is littered with millions of enterprise software that can't beat the simplicity of a spreadsheet or the flexibility and efficiency of a unix command line
The reason penne and linguine are still missing from stores
Hey, I'm Mark Nadal and I was accepted into Mozilla's "Fix the Internet" program - it has been fantastic so far & huge respect to everyone at Mozilla for putting this on.

Note: I doubt anyone will see this comment as HackerNews has shadow banned my account because my Open Source project competes with some of YC's investments (it undermines & destroys the need/market for some of their crypto-coin scams).

I interviewed with YC a few years ago and their entire process was terribly unprofessional - I've gone through 3 accelerator programs now, and interviewed at many more. YC itself seems pretty awesome, but beware of the politics - if a single person (HN mod in my case) feels like you are a threat to their status, that person has enough marketing power to hurt you. Find the GOOD people in YC and work with them, don't leave it to chance or you'll fall out of good graces.

In contrast, look what Mozilla is doing! They're helping move the internet (the world, the community) forward, and are a non-profit foundation. I highly recommend applying to their program. They are GOOD people, doing good work. Please please do everything you can to help them make this a success - the internet depends on it.
I don't. But, I've been playing with a few ideas using that. I suspect ML is mostly complicated curve fitting.

Something like using NLP on SEC filings the second they come out to catch an initial jump in the underlying would be cool to try out.
You need repeaters every so often. Also, someone will "buy" each cable, like Microsoft/Google/etc.

You need one cable for each fiber, they aren't all in one bundle like fiber might come into your office.
It doesn't work on 'threads' yet but it will.
"With the first link, the chain is forged. The first speech censured, the first thought forbidden, the first freedom denied, chains us all irrevocably."
Your overall point is taken. Flamewar ended.

As far as name-calling, it was not my intention at all. If you aren't familiar, the creator of YourBrainOnPorn is literally not a scientist (he neither studies nor practices a science) and doesn't claim to be a scientist.

In describing him as I did, I didn't see any distinction from the descriptions on HN about anti-vaxxers or climate-change deniers.
I am making new habits and routines effortless (or at least way more effortless). I've been repurposing a writing app I threw together for myself years ago, now using it every morning to remain consistent in my routine and track performance.
I think that's a very optimistic outlook, but I'm not sure it fits with a realistic viewpoint that they're taxed that way because people treat them like stocks, not cash.

At any rate, I would like to see Reddit acknowledge this.
JavaScript DOM -REMOVE HTML Element
Ask HN: What is your opinion on mongo db?
I always thought relational dbs are always better except may be really narro usecase of horizontal scalability
Please share your opinion? Maybe I am missing something obvious. Lot of people seem to like mongo db a lot and most of the reasons does not make much sense to me.
I'd think people are offended to know someone - even on a message board - who is happy to speak so publicly and callously about their intimate partners.

It makes this place seem glum and regressive. It's the opposite path to achievement described in the article.
> Couple years

1996...

But I will definitely be adding it to my reading list!
I noticed that too :D
When I teach my students how to write academic papers, I always refer them to this statement. Basically, don't raise questions you're not going to resolve (unless in the discussion) and alternatively, raise questions that you will resolve. There may be an equivalent principle for prose, but I'm not aware of it.

I read a paper recently where every figure made me ask a question that the next figure resolved. "Neurons specifically represent barriers! What happens if a door opens up and there is now a path? What happens if the barrier starts lowering into the ground until you can walk over it? What happens if it floats up into the air and you can walk under it?" It was truly beautiful.
I think lonelappde understands that and is saying that just because something gives you utility and it maximizes some sort of current idea of utility, it doesn't make it good and doesn't necessarily maximize you cumulative lifetime utility.

People who do drugs usually admit that they don't get some sort of lifetime benefit out of them. There is often regret. Social media use is often similar (and yes, this is social media and I should know better than to waste my time on HN). Some people get notoriety, money, etc from their use of social media, but most don't and even those that do may regret it or could have been fairly or just as successful without it. (Cal Newport makes some great arguments along these lines.)
I wonder what'll happen to postings by gilets jaunes now. That's still ongoing BTW, coronavirus notwithstanding.
CERN publishes instructions for building your own particle detector
My use case is making lots of highlights in textbook PDFs and I usually can't highlight for long before it beachballs. PDF Expert is a huge upgrade in this respect.

Readdle just needs to add exact phrase searching/finding; then it'll be wholly better than Preview imo.

You can read more about Preview's struggles with annotations here
https://eclecticlight.co/2020/04/07/how-preview-mangles-anno...
Youtube does some loudness normalization, but it only changes the volume for the entire video, not for specific sections. It also only makes videos quieter, it will never make them louder. You can see this in the "Volume / Normalized" item of the "Stats for nerds" menu.
I see she has the question voice? That a lot of women have? Where it sound like she's asking a question? When she's just stating something?
Is this tunneling traffic from devices to Device.farm's servers? That's what it looks like is happening here[1].

This is the message on both the ToS and Privacy Policy pages:

> TO BE DONE...

[1] https://www.cnx-software.com/wp-content/uploads/2020/05/devi...
France is a relatively small market?
The myth of the 8 hour sleep
This is really cool, but why reinvent the wheel? For instance SQLite already has tons of years of optimization regarding storing and accessing files on disk.

To make SQLite decentralized (like Hyperdrive) you can put in a torrent. Index it using full-text-search https://sqlite.org/fts5.html for instance. Then let the users seed it.

Users can use sqltorrent Virtual File System (https://github.com/bittorrent/sqltorrent) to query the db without downloading the entire torrent - essentially it knows to download only the pieces of the torrent to satisfy the query. This is similar techniques behind Hyperdrive I believe just again, using standard tools and tech that exists and highly optimized: https://www.sqlite.org/vfs.html

Every time a new version of the SQLite db is published (say by wikipedia), the peers can change to the new torrent and reuse the pieces they already have - since SQLite is indexed in an optimal way to reduce file changes (and hence piece changes) when the data is updated.

I talk a bit about it here: https://medium.com/@lmatteis/torrentnet-bd4f6dab15e4

Again not against redoing things better, but why not use existing proven tech for certain parts of the tool?
I'm working on a kind of human-curated recommendation engine for movies.
As a movie buff, I'm often frustrated by the film recommendations apps that return results too out of context for me. I also find them quite depressing, they're often nothing more than echo chambers that favor the same movies again and again.

Actually, I didn't become a movie buff with tools like this but with watching the movies liked by the directors of my favorite films.
For instance: Pulp Fiction -> Quentin Tarantino -> Bande à part -> Jean-Luc Godard -> Robert Bresson -> ...

In addition to giving you some ideas about films that you could like, this helps you to better see the big picture (no pun intended). You learn about the important movie periods and movements (French New Wave, Italian neorealism, New Hollywood...), you develop a more serious approach to film, and you can live these mind-blowing moments when you notice similarities between two movies done 50 years apart and that looked at first glance totally different.

I already created the engine (which is giving good results for my profile! It recommends me movies that I never thought of). The challenge was mostly to found all the data required by the engine.
Now, I must admit I'm procrastinating a little bit for developing the actual web app!

(and thank you everyone for your messages, your projects are awesome!)
Correction -- Cruise is majority-owned by GM but not really a GM subsidiary after SoftBank invested in it.
France provided part of that foundation. The philosophy of America's founding fathers regarding freedom of speech, and the First Amendment itself, were inspired by (among other sources) The Declaration of the Rights of Man and of the Citizen from revolutionary France.
Some think capitalism recovered from the 1929 crash only thanks to the enormous destruction brought by WWII (in lives and capital). That's a very costly "duct-tape".
Maybe I muddled my words on this. Java supports "requesting" thread cancellation, but its not safe to forcibly kill OS threads in any language I know of. For the same reason you can't in Java, finalizers won't run. This includes C and C# among others that use OS threads.
https://stackoverflow.com/questions/13285375/how-to-kill-a-r...
https://stackoverflow.com/questions/1327102/how-to-kill-a-th...

Notably C lets you do it with the big warning that it can crash everything. C# made the same decision as Java and doesn't allow it.

Java and pretty much all OS thread-using languages DO allow you to end threads by nicely asking them to stop. This is not the same as forcing them to. In all cases, if a thread is stuck in an infinite loop or a blocking call, it probably won't cancel if you ask it to. It depends on whether the thread is written to handle cancellation properly.

This is also a limitation of some languages with fibers, including Erlang. You can't force a thread thats stuck in certain states to stop running in Erlang even though it uses fibers. Some languages with fibers do allow it though.