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 10y ago · link · parent

Here is the author saying flossing is useless, a few years ago: http://www.medicaldaily.com/dental-floss-useless-dentist-say...

comment 10y ago · link · parent

My understanding is that, although possible, if the cancer risk does exist, it's very small; here's an article placing it at 3-4 cases per 1,000,000: http://aaem.pl/fulltxt.php?ICID=1011054 (They cite a 2012 meta-analysis which showed no statistically significant effect of mouthwash) Here's a recent large-sample statistical study: https://healthcare.utah.edu/huntsmancancerinstitute/research... They find an 1.15 odds ratio of cancer for mouthwash users, but in the non-smoking non-alcohol-drinking cohort this effect goes the opposite direction (OR 0.83); statistics is hard and there isn't high-quality data to give a real conclusion. But since the overall incidence of oral cancer is roughly 1 in 10000 (http://www.nidcr.nih.gov/DataStatistics/FindDataByTopic/Oral...) I wouldn't be too worried; all these show is that the effect is tiny. (Of course, if you only remember the big headline from ten years ago with a tiny sample size...)

There's a clear line of research showing benefits in mouthwash: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4948552/ It's true that the fluoride in mouthwash does little, and there are some stupid mouthwashes that don't have any real ingredients, but essential oil mouthwashes (like Listerine) and several others (as mentioned in the review) have been shown to have significant gum benefits.

There's also some interesting research with tetrapotassium pyrophosphate and tartar buildup: http://periogen.com/periogen-studies.html Although I expect these studies are manufacturer-funded and thus overstate the effect, it seems pretty hard to deny that it helps.

Note: I'm not a dentist either, but I read this book my dentist recommended: https://amzn.com/B009LPLMRU. It's well-referenced for everything except water fluoridation and her conflict of interest (xylitol products).

comment 10y ago · link · parent

> you want sharp edges instead

It depends on your philosophy: https://blog.codinghorror.com/font-rendering-respecting-the-... http://www.joelonsoftware.com/items/2007/06/12.html

In general antialiasing and font hinting are at odds; you want one but not the other. With recent displays, the pixels are small enough that you can use anti-aliasing all the time, and no hinting: http://lh5.ggpht.com/-tsgwX-9fsRc/U6armqjI6QI/AAAAAAAAB9E/Bw...

Subpixel rendering is just another anti-aliasing technique; it can be used on any bitmap.

Of course, it's also true that the sinc filter is not the best possible. There's interesting research on shearlet transformations http://colorlab.no/content/download/46570/721686/file/2014_C... and other weird filters http://www.ansatt.hig.no/mariusp/publications/Pedersen2015_I.... Or just avoid the filtering stuff entirely and optimize a whole-eye model: http://michaelfrankdeering.com/blog/projects/eye_work/eye_mo...

comment 10y ago · link · parent

For a while now, I've been wondering if font rendering could be improved by using a Lanczos filter instead of a box filter for anti-aliasing. (Conceptually, when you compute the pixel coverage you are convoluting the image with a box filter and then sampling at each pixel's center) The performance impact might be too high, but I haven't seen anyone try the experiment.

comment 10y ago · link · parent

Yeah. It's not the best algorithm.

I looked for a while and http://www-i6.informatik.rwth-aachen.de/unravel/ seems to be state-of-the-art.

comment 10y ago · link · parent

This is just "yet another substitution cipher".

There's an automated program that does quite well: http://quipqiup.com/

Pasting in his first two strings (the "standard pigpen" letters) finds the solution in 5 seconds.

comment 10y ago · link · parent

https://xkcd.com/311/

More budget = more action scenes = less dialogue

In the far future, special effects alone might not suffice to sell films, but for now it's enough.

The other trend to consider is films lengthening; there are multi-part series and also the Netflix streaming model. A 6-hour film can maintain the same (high) action-to-dialogue ratio but still have room for a plot.

comment 10y ago · link · parent

Actually it's pretty normal. Existing cases have found that the phrasing and website design matters significantly.

See for example:

https://termsfeed.com/blog/how-not-place-i-agree-to-checkbox...

https://en.wikipedia.org/wiki/Nguyen_v._Barnes_%26_Noble,_In....

http://blog.ericgoldman.org/archives/2014/07/23andmes-browse...

comment 10y ago · link · parent

Paper: http://act-r.psy.cmu.edu/wordpress/wp-content/uploads/2016/0...

The results themselves are not particularly new; he has been working on similar studies for years:

http://act-r.psy.cmu.edu/wordpress/wp-content/uploads/2013/1...

comment 10y ago · link · parent

Paper: http://pss.sagepub.com/content/early/2016/07/19/095679761665...

The results themselves are not particularly new though; he has been working on similar studies for years. http://act-r.psy.cmu.edu/wordpress/wp-content/uploads/2013/1...

comment 10y ago · link · parent

Notice from Unreal: https://forums.unrealengine.com/showthread.php?118366

Nobody has access anymore. The repo and the user (teardemon) are both gone.

1212.

Brexit as Destructive Creation(peterturchin.com ↗)

1 points · by Mathnerd314 · 10y ago · discuss

comment 10y ago · link · parent

The code has a lot of special cases. Could these be eliminated using machine translation techniques?

comment 10y ago · link · parent

I think Pearl's arguments are primarily about science and humans, not about "scientists" as such. As a human, there is a very clear boundary distinction between the "in" and the "out". Furthermore, there seems be a strong tendency in human thinking to classify the world into objects and their causes or effects. So, for example, there's an acausal theory of physics but then the surrounding explanations are all narrative-based heuristics. And those narratives seem to be easier to process and manipulate, for humans.

Also as Pearl also mentioned, this really only became a point of interest when computer science and artificial intelligence got going, because there non-narrative models seem to be successful as well, like neural networks, finite element methods, and so on.

A similar perspective applies to p-hacking; it's not so much that people deviate from the "one true way" of doing statistics, as that there are a hundred conflicting myths of what statistics should be and often they pick the one that is most convenient, rather than searching through to find the most applicable.

comment 10y ago · link · parent

There is causal content, although not very much.

The model would be something like:

experiment setup -> gas dynamics -> observed measurements

You would instantiate it like so:

(setup apparatus such that P=1 psi T = 289 n=5 mol R=12.2) -> (solve PV=nRT for V, V = ...) -> (V = ..., other values same as in setup)

But as I said, it's all discussed in Judea's book. Particularly, there is the epilogue, a reprint of this lecture: http://singapore.cs.ucla.edu/LECTURE/

Slide 26 is where he brings up Russell's critique of causality.

And this quote from slide 47 is Pearl's response: "Let us examine now how the surgery interpretation resolves Russell's enigma: concerning the clash between the directionality of causal relations and the symmetry of physical equations. The equations of physics are indeed symmetrical, but when we compare the phrases "A CAUSES B" vs. "B CAUSES A" we are not talking about a single set of equations. Rather, we are comparing two world models, represented by two different sets of equations; one in which the equation for A is surgically removed, the other where the equation for B is removed. Russell would probably stop us at this point and ask: "How can you talk about TWO world models, when in fact there is only one world model, given by all the equations of physics put together?" The answer is: YES. If you wish to include the entire universe in the model, causality disappears because interventions disappear - the manipulator and the manipulated loose their distinction. However, scientists rarely consider the entirety of the universe as an object of investigation. In most cases the scientist carves a piece from the universe and proclaims that piece: IN namely, the FOCUS of investigation. The rest of the universe is then considered OUT or BACKGROUND, and is summarized by what we call BOUNDARY CONDITIONS. This choice of INs and OUTs creates asymmetry in the way we look at things, and it is this asymmetry that permits us to talk about "outside intervention", hence, causality and cause-effect directionality. "

And if you can't read, then here he is presenting it in a recent lecture: https://youtu.be/9YMHqO6Z7AI?t=1731

comment 10y ago · link · parent

No, I'm saying it in fact has tons of predictive value. It makes predictions of the form:

R = PV / (nT)

P = nRT/V

etc.

comment 10y ago · link · parent

I recommend Causality by Judea Pearl, he has a pretty good discussion of why science is the study of causal models: https://books.google.com/books?id=LLkhAwAAQBAJ

Basically, if you do not have a notion of causality, you cannot specify a predictive model, which is a pretty fundamental part of science (although, of course, not all science deals with predictive models; sometimes even finding the correlation is an achievement).

comment 10y ago · link · parent

> there was never a situation when I said to myself "if only Data.HashMap (unordered-containers) was faster"

Here's a Haskell programmer looking for a faster hashmap: https://github.com/ndmitchell/shake/issues/418

Shake in fact does use reified generics (a.k.a. Dynamic/Typeable) and a Value type, and recommends disabling idle GC. I'm not sure if there's a "GC write barrier", Shake just uses MVar locks.

comment 10y ago · link · parent

Any imperative algorithm / data-structure, e.g. union-find, can be implemented purely by using an IntMap for memory and a State monad, with roughly equivalent performance: https://hackage.haskell.org/package/union-find

As to whether that actually counts as "purely functional programming", I can't say. Honestly the whole term seems quite misleading. https://chadaustin.me/2015/09/haskell-is-not-a-purely-functi...

comment 10y ago · link · parent

"Functional" languages typically have tail-call optimization and heap-allocated frames. Maybe OOP is a workaround for these missing features...

comment 10y ago · link · parent

There seems to be a deafening silence with audio stuff. Probably because there's no money in it, or rather the money is all held by the recording studios / big distributors, who have no incentive to share their findings. Also Google seems to rank music-software search results really low.

Other cool projects that I only found after intensive search: http://photosounder.com/ http://www.soundhelix.com/ http://www.cerlsoundgroup.org/Loris/ http://www.klingbeil.com/spear/

The guy who wrote this is at Apple now, probably working on Logic Pro; the latest versions have some note-editing features.

comment 10y ago · link · parent

Variants go back to at least 1887: https://books.google.com/books?id=1Vk3AQAAMAAJ&dq=Eat%20Slee... "There was nothing to do now but to eat, sleep, rest, and get ready for another raid on the frontier settlements."

But my guess is it entered popular consciousness with the Lasting Kiss lipstick commercial mentioned in http://www.nytimes.com/1993/08/29/magazine/beauty-lips-that-...: "Put it on. Eat. Work out. Eat. Go to the office. Eat. Sleep with your man. Eat. Repeat the cycle. And guess what? Your lipstick lasts until you take it off. You can kiss those lipsticks stains good-bye!"

comment 10y ago · link · parent

1) A lot of Ubuntu (really Debian's) packages are ancient software that nobody uses. That being said, some packages are not, and there is usually a bit of effort needed to get them to work. OTOH NixOS is still growing, whereas Debian is declining (Ubuntu might pick up the slack, but it's not clear)

2) Most third-party software is indeed broken out-of-the-box on NixOS; but patchelf and fhsuserenv have been developed so that it can run regardless (there's steam, flash, adobe reader... all patched to work. Running a .deb is as hard as specifying all of its dependencies).

1224.

MathML is a failed web standard(peterkrautzberger.org ↗)

247 points · by Mathnerd314 · 10y ago · 169 comments

comment 10y ago · link · parent

SuperTux also has ice (permafrost?), it's in the later levels: https://www.youtube.com/watch?v=9eKhJ8C3xxY

comment 10y ago · link · parent

SuperTux also uses a filesystem abstraction library: https://icculus.org/physfs/

Fortunately it doesn't need to do networking, threading, or IPC; those are definitely a pain. Boost provides an abstraction layer, but it's a big dependency.

comment 10y ago · link · parent

It's been forked due to inactivity, the newest release is available from http://www.secretchronicles.de/en/

comment 10y ago · link · parent

There's a significant time zone effect: http://econweb.ucsd.edu/~magibson/pdfs/sleep_productivity.pd...

comment 10y ago · link · parent

He has done at least a few commits; Github's interface is broken: https://github.com/urweb/gui/commits/master?author=aragnon

comment 10y ago · link · parent

This seems similar in style to a Linus Torvalds rant, e.g. http://lkml.iu.edu/hypermail/linux/kernel/1510.3/02866.html.

Julia is within their rights to enforce a community standard against such rants, but I wonder if those rants are what inspire people to write code and contribute (unpaid) patches...

1
404142
45