Better HN
topnewbestaskshowjobs
Log inSign up

Mathnerd314

3,006 karma · joined Nov 1, 2009 (17y ago) · 1,339 submissions

Making the ultimate programming language https://mathnerd314.github.io/stroscot/

In the past I developed SuperTux (http://supertux.lethargik.org) when I was bored.

Submissions

comment 5y ago · link · parent

Just checking the article, it's a scraped auto-translation of a polish article: https://tvn24.pl/poznan/poznan-malze-filtruja-wode-sprawdzaj...

So it seems to be one of those content-farm sites, similar to the ones responsible for disseminating fake news on social media

comment 6y ago · link · parent

It's safe considering the threat model: the worst his site has seen is some DDOS attacks. With a MITM his site might end up hosting a 0-day, but hijacking is unlikely to begin with due to how low-profile his site is (outside of tech circles). And they'd have to attack DNS as well as his certificate.

comment 6y ago · link · parent

There's a simple solution: cap the number of users. With a closed system you don't have to worry about the registration mechanisms being gamed, and moderation of a fixed-size group is easy to plan out.

Similarly you could use an invite system with limited invites, if you want growth at a constant rate- although this could still lead to moderation problems if you don't grow your moderation team at the same rate.

comment 6y ago · link · parent

https://www.eff.org/deeplinks/2020/07/new-earn-it-bill-still...

> Sen. Leahy’s amendment prohibits holding companies liable because they use “end-to-end encryption, device encryption, or other encryption services.” But the bill still encourages state lawmakers to look for loopholes to undermine end-to-end encryption, such as demanding that messages be scanned on a local device, before they get encrypted and sent along to their recipient.

comment 6y ago · link · parent

There's another step at the beginning: after you have a problem, you search for similar projects that might have already solved your problem.

And in fact this step seems to generate most of the bug reports - you get "please implement feature X" and "does this have feature Y?" and so on, from people who have used your software for all of 5 minutes (or not at all).

It's only after a lot of time is wasted that a new project is started. Alternatively, it could be that the people who try to use/reuse software and the people who write new software are completely separate, so that no amount of bug tracker work will lead to new source contributions.

comment 6y ago · link · parent

Yes, Julia has multimethods. This is called out in the article:

> Open functions (functions that can be extended with new pattern-matches), open data-types (data types that can be extended with new patterns), and MultiMethods ('open' specialized polymorphic functions with 'open' set of classes), and PredicateDispatching, are all viable approaches.

comment 6y ago · link · parent

"Vice reported", "Vice said"... link the original article: https://www.vice.com/en_us/article/xg8jq4/spotify-joe-rogan-...

comment 6y ago · link · parent

The teachers present themselves as knowing the answer. They also get really mad if you point out mistakes they make, at least in middle school / high school.

comment 6y ago · link · parent

preview link with some reviews: https://www.masterclass.com/classes/gordon-ramsay-teaches-co...

> "Nobody is putting sea urchin on eggs. What is this?"

comment 6y ago · link · parent

That happens all the time, since Python is dynamically typed. For example a[10] gives an IndexError if a has less than 11 elements. So with static typing, we should restrict indexing to ensure that the number of elements needed are present, and remove indexing from general lists. But you wouldn't remove indexing from lists, that's one of the main functions...

comment 6y ago · link · parent

He talks about it a bit as the "magic numbers". You can see the big table: https://github.com/jart/cosmopolitan/blob/c91b3c50068224929c...

I guess there's also syscall emulation stubs for Windows but since he only supports "stdio and sockets" maybe not.

comment 6y ago · link · parent

The 24156986 is semantic though; the ids are assigned sequentially to submissions. Early submissions have tiny ids like 495. So they are at least as meaningful as bug tracker ID's or version numbers.

Now, it is true that version numbers etc. could be more meaningful. Jeff Atwood wrote an old article about the "infinite version" in Chrome, where the version number basically doesn't matter until you're checking to see if you're up-to-date. Personally I've switched to using dates / times in my ID's. HN could do that too; an ID like 2020-08-14-10-12-13-99 is longer than the current ID's but not by much. But overall it seems hard to draw a line in the sand where dates are semantic and version numbers aren't.

comment 6y ago · link · parent

I think there's also "death by VC": raising too much money, losing control of the company, and then the company heads in an infeasible moonshot direction. One example might be Google's buy-and-kill strategy. But PG's essay is really about the early months of a startup, whereas this is later in the game.

comment 6y ago · link · parent

Revenue for Uber last year was $14 billion. Divide that by 300k workers and you get $47k/year. The average full-time driver makes $36k/year (https://www.thestreet.com/personal-finance/education/how-muc...). So drivers are getting 75% of Uber's revenue. This matches up with other sources that say Uber's commission is 25%. Is there a reason 25% is a bad number, besides that Lyft's commission is lower (20%)?

comment 6y ago · link · parent

When there's no airflow in the refrigerator, then it takes a long time to chill food, the reverse of how a blast chiller can chill food really quickly by moving lots of air. But maybe the water chills the air to make up for this, IDK. It would be interesting to experiment.

comment 6y ago · link · parent

That Guardian article also mentions "green routes", taking side streets or pedestrian / bicycle walkways. There's a lot less pollution in those areas than on a busy road.

comment 6y ago · link · parent

Ah yes, forgot about uring. Apparently readdir was "next on the list" at the end of last year: https://twitter.com/mathjock/status/1205996402930855937 But I don't see it in the tree. I'm guessing sockets got more priority.

comment 6y ago · link · parent

I'm still looking for a program that takes a video and turns it into an animated 3D scene. All the stuff I've seen is on static scenery, besides some neural nets that can tweak camera angles.

comment 6y ago · link · parent

This is the syscall: https://www.man7.org/linux/man-pages/man2/getdents.2.html

You opendir, read 100 entries, do whatever with them, read 100 more, repeat, then closedir. So it's a buffered interface similar to normal I/O.

There's been proposals for doing readdir+stat in one syscall, but nothing merged yet. https://lwn.net/Articles/606995/

comment 6y ago · link · parent

There are more recent videos: https://www.youtube.com/watch?v=ecVv2IB7f5k

Here is "Hero" made with Blender, for comparison: https://www.youtube.com/watch?v=pKmSdY56VtY

Blender's pseudo-3D has more freedom with camera moves, but the capabilities look pretty similar otherwise.

comment 6y ago · link · parent

The tl;dr is they found some genes relating to iron metabolism and other key cellular processes that are correlated with longevity and healthy ageing. It doesn't seem particularly actionable unless you're a DNA researcher.

comment 6y ago · link · parent

There might be a market for a Pihole book, if the existing documentation is insufficient (https://docs.pi-hole.net/ looks pretty thin). But Clojure seems unlikely.

comment 6y ago · link · parent

I lost interest once I hit the level cap, level 65. Although they did raise it, there's little reason to chase after imaginary internet points.

The Kongpanions were supposed to be used in games but after a few weeks I had enough Kongpanions to saturate any game that used them. Again, more imaginary internet points.

comment 6y ago · link · parent

The issue for Cloudflare is whitelisting the DDoS protection script included on each page. It's under a lot of URLs so it would have to be content-based.

comment 6y ago · link · parent

It is mostly the MLA handbook, https://style.mla.org/punctuation-and-quotation-marks/ and https://style.mla.org/the-placement-of-a-comma-or-period-aft....

I guess I misremembered. The old reference from the 1800's is https://babel.hathitrust.org/cgi/pt?id=hvd.hx521x&view=1up&s..., he clearly puts the quotes on the outside too.

comment 6y ago · link · parent

I found an old printer's manual a while back. The original typesetting guideline was to put the quote and the period in the same column, one above the other. This evolved to punc-quote on typewriters.

So I blame proportional fonts for their missing ligatures. :-)

comment 6y ago · link · parent

There are plenty of other minimalist text editors, so I'd say this is a one-day-hack kind of thing.

comment 6y ago · link · parent

It's a white content-editable <p>, for anyone trying to figure it out.

comment 6y ago · link · parent

It's also called product differentiation. Oil is a commodity, but there are grades of oil and the amount of sulfur varies, so there is "sour" oil, "light" oil, etc. similar to "fair trade" chocolate.

comment 6y ago · link · parent

As I see, it means small businesses are getting squeezed too, just like poorer individuals who also have small cash buffers. It's possible to interpret this as economic efficiency, but it is efficient in the same way communism is efficient, i.e. efficient at misallocating resources. Tight budgets are like tight rubber bands and if there's enough stress something will break. I think that's enough terrible analogies, you get the point.
1
181920
45