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

"goes into". https://youtu.be/yG1OZ69H_-o?t=1039 You mean this slide of the Joker with title "Do I really look like the kind of language that would define its behavior?"

As far as I can tell there is no reason LLVM couldn't compile a document like "On x86 division by zero throws a #DE exception. On ARM division by zero returns zero. On x86 shifting by more than 32 bits shifts by (cnt mod 32) bits. On ARM shifting by more than 32 bits clears all bits. [...]" that specifies all undefined behavior. The current "nasal demons" behavior is preferred in the name of performance on some SPEC benchmarks that nobody was asking for, screwing OS writers and anyone who expected sane language semantics.

comment 4y ago · link · parent

Wikipedia found a database dump from 2017 that relates the DOIs to hashes: https://en.wikipedia.org/wiki/Help_talk:Citation_Style_1#cit...

comment 4y ago · link · parent

And all the publications he links to have stopped publishing.

comment 4y ago · link · parent

Yeah, this is documented: https://academia.stackexchange.com/questions/187677/how-does...

I think using hashes is probably an improvement, the issue is the links are broken.

comment 4y ago · link · parent

I checked the supplementary material (https://www.nature.com/articles/s43016-021-00381-y#MOESM1). The scores have been revised post-publication. Lucky charms is 56, steak is 33 to 26 depending on how it is cooked and whether the fat is eaten, ground beef is 26. Still around the same.

comment 4y ago · link · parent

Looking at the Tuft website https://sites.tufts.edu/foodcompass/research/data/ it's clear they were focusing on within-category ratings. Celery juice > apple juice and quinoa > tortillas is not going to surprise anyone. And for seafood, salmon has been promoted many times as a miracle diet food. I can't spot any obvious problems in these within-category charts.

If you take a within-category metric and try to selectively apply it across food groups then of course you will get weird results. Is a broad-band metric more useful? I'm not sure. There are meal replacement products (shakes, bars, etc.) but besides those I think you need to break down your diet into at least a few food groups - protein, vegetables, etc. Just taking a random selection of items will probably be deficient in some important nutrients.

397.

CiteSeerX has broken all paper links

3 points · by Mathnerd314 · 4y ago · 3 comments

comment 4y ago · link · parent

Amateur chemistry may be dead but you can still experience it vicariously on YouTube. For example Explosions&Fire has documented playing around with many chemicals. There are probably a lot more channels but I haven't delved too deeply into this area.

comment 4y ago · link · parent

No, according to the Gervais principle engineers are losers who don't know how to run a company. An organization run by engineers would waste their time on unprofitable but technically interesting distractions. The closest economically viable structure is a sociopath plus a small amount of losers, i.e. a startup. But startups don't get $60M contracts until they've grown enough to acquire some middle management.

comment 4y ago · link · parent

I assume you're referring to Feynmann's remarks in the https://en.wikipedia.org/wiki/Rogers_Commission_Report. The issue there was that management advertised a safety factor of 1 in 10^5 failures while the engineers thought it was more like 10^2, so numbers were fudged across the board to look reasonable. It really was a communication issue in that there was not accurate information on the riskiest parts of the launch. I guess you could argue here they are dealing with fudged time estimates. OP, like Feynmann, did his own investigation and obtained presumably accurate information. The Rogers report resulted in a new "NASA Safety Office"; OP's investigation was the perfect opportunity to launch his own team but he blew it.

comment 4y ago · link · parent

It's not clear how long the project lasted but it was at least 3.5 years. So the time-line couldn't have been that rigid; yes there was a Gantt chart but those are like horoscopes. And since the requirements kept coming in there was no fixed scope.

As far as the customer goes you can say something like "we'd like to deliver a prototype early" and then it sounds like you're exceeding the contract. You just have to get them to prioritize features while avoiding discussing the fact that it's impossible to deliver all the features they requested. Basically you treat the lists as a wishlist rather than a requirements list. Maybe you come clean later once they like the prototype.

I'm not saying it would have saved the project, I'm just saying it's better than giving up and saying "the project is doomed" like OP did. But maybe OP wasn't cut out for a leadership role.

comment 4y ago · link · parent

It seems like Agile would have been a great fit. Too many requirements, no real information - it's exactly the situation where throwing out prototypes and getting feedback can lead to a solution.

comment 4y ago · link · parent

For more, see https://www.complang.tuwien.ac.at/kps2015/proceedings/KPS_20... (clearly distinguishing C* which corresponds to the hardware from "C" which is the subset of C* that excludes all undefined behaviour) and https://arxiv.org/pdf/2201.07845.pdf "How ISO C became unusable for operating systems development".

comment 4y ago · link · parent

It's not similar at all. It used to be C operations mapped 1-1 to the hardware, so undefined behavior meant unspecified but well-behaved in the sense that it would not randomly change unrelated registers. Now it means "nasal demons", i.e. the compiler can just ignore any execution path with undefined behavior and eliminate it as dead code.

comment 4y ago · link · parent

Seems like it gets popular about once a year.

comment 4y ago · link · parent

Well, based on https://cbldf.org/criminal-prosecutions-of-manga/, it seems you probably can beat the charges, but it will take years and an expensive legal defense. People have been prosecuted and usually take plea bargains, so some amount of jail time can be expected. Simple cases of "manga is child porn! yadda yadda" can probably be overlooked but if the police don't like you for some reason, getting arrested is definitely a risk. Although there is supposed to be "innocent until proven guilty" even getting arrested can disqualify you from many jobs.

comment 4y ago · link · parent

Reddit does have a soft-ban process where they place subreddits in "quarantine". You have to click through a warning and/or subscribe to the subreddit to see its contents. AFAIK most quarantined subreddits get banned though. The real effect is to migrate content to other sites.

comment 4y ago · link · parent

... Or will we? Anti-aging research is an area.

comment 4y ago · link · parent

I didn't see https://www.nature.com/articles/s41467-022-28735-5/tables/2. It looks like going from 0 to 3 drinks would be a 2% decrease in brain matter.

comment 4y ago · link · parent

Treating patients with morbid obesity led to a 2% increase in total brain matter (https://www.sciencedirect.com/science/article/pii/S1871403X2...), and depression causes differences around 2% in brain areas (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6306287/#!po=29...). The study says one additional drink/day is a change of 0.034 SD or around 0.3% change. So around 6 drinks/day is enough to cause changes similar to these.

comment 4y ago · link · parent

Yeah. And it's a daily average, so you can have 3 standard drinks every Saturday for example (aiming for the TMREL of 6g). I'm not sure about the maximum per day; there was a heart disease study that defined heavy drinking as 60g in a day,but I haven't seen any studies specifically on drinking patterns at this low intake.

comment 4y ago · link · parent

The overall conclusion of the study is "We observe negative relationships between alcohol intake and global gray and white matter measures". But if you look at Figure 3, it is consistent with a J-shaped risk curve with risk equal to nondrinkers around 16 grams ethanol per day, like the 16.9 number found for 40-64 year old males in https://www.thelancet.com/journals/lancet/article/PIIS0140-6.... So I would say this study adds another reason to not overdrink, and confirms that current drinking expectations are too high, but isn't a reason to abstain entirely.

comment 4y ago · link · parent

This is like saying you should be able multiply 4-digit numbers without a calculator. Is it possible? Yes. Is it something anybody uses outside of school? No. In practice it's a skill that's pretty much useless because using a calculator (or debugger in the case of OP) is both faster and easier. I myself got very good at mental arithmetic during math competitions, but 20 years later I find that I've forgotten most of the tricks because I never use it.

comment 4y ago · link · parent

I think that's just a story about how Amazon is always trying to quantify performance and getting it wrong. Seriously, Google quantifies a lot of things too but they don't screw up. If Bezos still hand picks examples and that's the only way real change can happen, that's probably why Amazon has a reputation as a meat grinder.

comment 4y ago · link · parent

Well usually there are lots of signals. Overreacting means you might do something that's misguided and expensive. Underreacting means you miss a signal or two and delay a big risk until the information is certain. The pay-off is asymmetric.

If you have a process for spending money in place and people with too much free time on their hands then overreacting might be OK. Too much research never hurt anyone so "overreacting" by investigating thoroughly is probably not wasting your time. But if your reaction process is throwing money at ideas you'll probably just get scammed.

comment 4y ago · link · parent

There is an example in the paper, where they say the compiler synthesizes masked array reads. Any branching on secrets will be eliminated via transformation to bitmask manipulation, so a memory read that was conditional on a secret will always be performed.

More generally, complex memory access patterns like reading/writing an array at a secret index are forbidden, you have to transform them into looping over the whole array and testing if the current index is equal to the secret index. It seems doing such transformations automatically is possible but FaCT just errors because the resulting code is slow.

comment 4y ago · link · parent

Testing in the playground: and? maybe true = maybe; and? maybe false = false; or? maybe false = maybe; or? maybe true = true; if maybe then "t" else "f" = "t".

So some kind of 3-valued logic with a conversion to true.

comment 4y ago · link · parent

That's dated 2020. But I guess you're right, https://madisonrecord.com/stories/614637059-why-pritzker-for... is Dec 2021 and says it's still open. I guess they could be delaying the charges while they investigate related members like Madigan. But the evasion was in 2015, statutory filing date is March 1 2016, and the statute of limitations is 6 years after, March 1 2022, so their window is already closing (I guess they could still do tax year 2016/2017).

comment 4y ago · link · parent

The point is they have different definitions:

bribery - transfer of value in exchange for official action.

lobbying - communicating with an official for purposes of influencing official action, not including providing public testimony or legally required communications

Legalizing bribery would allow transfer of value. Generally information is considered free, so has no value, so lobbying is not a transfer of value and hence is not bribery (legalized or otherwise). If you want to argue that lobbyists are giving officials hot stock tips that make the officials millions, hence information has value, I suppose it's possible, but it doesn't seem like the issue you're addressing.

What you seem to dislike is that many people are paid to push laws. But this isn't much different from other forms of sales - every company has a marketing department that tries to lobby potential customers. There is no obligation to buy and similarly the politician has no obligation to enact the suggested changes. But without direct communication it seems like it would be hard to enact sound policy. I don't see any obvious alternatives to lobbying to get the required information besides a massive "big brother" government surveillance program that tries to identify potential problems with big data and solve them before they happen.

comment 4y ago · link · parent

AFAICT that was settled in 2020 when Pritzker paid the extra taxes. I think if there were any charges they would have been announced by now. But it does seem Pritzker has some connections to Madigan (https://patch.com/illinois/chicago/pritzkers-7m-connection-m...), which might sink his re-election campaign. But so far he's doing well in the polls.
1
131415
45