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

I'm not sure how much fiction reflects reality, but it seems like in every Chinese novel I read, the majority of officials are corrupt and greedy. The worst of them usually get in trouble, but a lot of them get away with it.

comment 2y ago · link · parent

News flash, but a lot of stackoverflow answers are garbage - incorrect, out of date, etc.. Does this make it useless? No, you just have to sift through.

comment 2y ago · link · parent

Well, the question-asker should be able to tell if ChatGPT's answer is incorrect. Most obviously, for software, they try it and it doesn't work, or for scientific questions, they look up the references and they don't exist. It is probably even possible to automate such checking to some extent. But similar issues apply to checking human answers - at some point, the answer is correct because it sounds plausible, not because it has been verified.

comment 2y ago · link · parent

> answering questions is hard

I think this assumption is not true anymore - ChatGPT can give an answer in less time and (human) effort than it takes to formulate and devise a question. So it really is about creating a set of curated question-answer pairs, where both the questions and the answers can be auto-generated. In this context, asking the same question different ways is really helpful to an AI. And there is no such thing as a bad question, there are just Q-A pairs that do not contribute significantly to training the model ("boring" questions). I've noticed Quora is experimenting with ChatGPT but they aren't at the point where you can flag the AI's answer as incorrect or misleading and fix it.

comment 2y ago · link · parent

> I'm not about to complexify Rig to be faster when the user is not likely to notice.

Users do notice, one of the comments about Tup is that it is surprisingly fast. Now that could be other things like being written in C and using sqlite but I'd imagine at least some of it is due to being designed to use efficient algorithms.

> build systems are built with limits

But the limits are self-imposed. It is not too hard to extend a build system to add these features, but even before Rig is fully done, you seem to be in "maintenance mode" where no new features are allowed. I myself have also been working on designing a build system (and programming language), but I have deliberately avoided writing any code so that I am not tied down by refactoring when I discover a new paper or approach. At this point though my literature survey is complete, so it is time to start coding. I was thinking perhaps you beat me to an implementation, but I guess not.

comment 2y ago · link · parent

Are they still active? Can't find anything much later than this 2012 video https://www.youtube.com/watch?v=99z-GT8y1jA

comment 2y ago · link · parent

Neither of those sound like you have actually understood the feature. The point of Tup's partial DAG is that it starts from the file changes and only loads relevant dependency information for those files (and its transitive closure). So for example if you have 1 million .c files and one of them is changed, say a.c, then it does 3 lookups: "what depends on a.c?" (a.o), "what depends on a.o?" (the .exe), "what depends on the .exe?" (nothing, it is a target). So dependency chasing is minimal and it takes very little time until the commands for a.o and the .exe are loaded and rerun. In contrast, in your approach, you will still have to go through the million files - maybe Rig won't require an OS 'stat' call and can just check the watcher's list in-memory for each file, but it will still burn a significant number of cycles following dependency chains even though they are up-to-date.

And for command tracing, the most significant issue is that it records both files read and files output. Even with dynamic dependencies it is difficult to record both of these dependency types properly. For example, Shake has this "multiple outputs" feature but it is actually really hacky and doesn't work. https://github.com/ndmitchell/shake/issues/382 The Pluto "sound and optimal" build paper discusses this briefly - they use a two-level file-command graph specifically to solve this problem. Since you have files-as-targets you will have trouble recording write dependencies, similarly to Shake.

comment 2y ago · link · parent

You have the order wrong, first they lobbied (2011), then Bosch introduced (2015) and pulled their saws (2017). Then SawStop reached an agreement in 2018. And the reason Bosch hasn't reintroduced it is apparently interference from cell phone signals. https://toolguyd.com/bosch-reaxx-table-saw-why-you-cant-buy-...

comment 2y ago · link · parent

... no? I looked at your build system, and it seems clear that it does not trace command dependencies at runtime, and it also goes through the entire dependency graph on every rebuild - there is no place to integrate a list of changed files from a filesystem watcher.

comment 2y ago · link · parent

There are also forward build systems (https://arxiv.org/abs/2202.05328), and Tup's partial dependency graphs.

comment 2y ago · link · parent

This paper suggests that pseudocode is more understandable to LLM's than natural language. So building off of that, one should not write comments in the method bodies, one should translate a function body (in mixed English and pseudocode) as a unit. LLM's can memorize a lot but there is a limit so I guess it would have to be structured as a multi-level translation. You mention in the Readme that it is persnickety, this is probably due to the use of "auto-complete" in the prompt. I would use an intro like "here is a function body in pseudocode", then prompts "split it into chunks by inserting labels", "translate whole body preserving chunk labels", "re-translate each chunk using whole body as context", "fix type errors". I think the biggest issues besides prompt engineering are cost and latency though.

comment 2y ago · link · parent

Here is an example removal (2021): https://www.imore.com/apple-going-remove-idos-2-emulator-app...

It seems that they considered loading game images as "running executable code". So in particular what was banned was running code downloaded remotely, meaning any emulator that could download game images from the web or load game images from the filesystem was banned.

comment 2y ago · link · parent

The phase 2 prompt is complete, but the phase 3 prompt's initial part ends in "When constructing the main function, ...", and no mention of random seeds, so I guess this paper is not reproducible at all.

comment 2y ago · link · parent

From the article link in the readme, this is a dig at Facebook.

comment 2y ago · link · parent

I think it's the training data, there is not a lot of JSON. It's much easier to get it to generate list-style data, like "foo:\n* prop1 - val1\n* prop2 - val2", or similar formats, as the models seem to have seen a lot of that sort of data.

comment 2y ago · link · parent

I think the biggest trick is to move around, so it isn't as simple as getting a single address. Like with Bin Laden, a lot of the work was figuring out where he was. And Ross Ulbricht, maybe he wouldn't have been caught so easily if he changed hosters occasionally and the VPN had listed 100 internet cafes in different cities as connecting IP addresses instead of just 1. Certainly that's the way Tor works, always hopping around routers. It's maybe a bit pointless though, once they get your legal name it's pretty much a matter of time.

comment 2y ago · link · parent

My understanding was that the proprietary drivers work fine.

comment 2y ago · link · parent

In the repo the model weights file is 9.37GB, whereas sdxl turbo is 13.9GB, and I don't see any mention of huge context windows, so probably it just needs a decent graphics card.

comment 2y ago · link · parent

Yeah, it uses GPT2: https://github.com/lllyasviel/Fooocus/issues/1345

comment 2y ago · link · parent

Do lawyer fees count as damages?

comment 2y ago · link · parent

Well, the transformation doesn't change semantics, so technically you aren't "baking in" any form of evaluation strategy. It is a bit obscure but ANF is achievable by a series of simple rewrite rules, Figure 1 in https://dl.acm.org/doi/pdf/10.1145/141471.141563 or Figure 7 in https://dl.acm.org/doi/pdf/10.1145/173262.155113. But the transformations are certainly biased towards CBV, the syntactic notion of "machine value" that ANF uses doesn't make much sense in call-by-need or call-by-name where any expression can be a thunk.

That does remind of another thing that CBPV glosses over though - it is only a fusion of call-by-name and call-by-value. In particular it doesn't model call-by-need particularly well, there is no notion of sharing thunks that are duplicated during evaluation. Actually call-by-need is sort of arbitrary, generally one is better off using "an implementation-specific evaluation strategy somewhere between CBN and CBV", which again is not modeled well by CBPV, as the choice of CBN or CBV evaluation is encoded in the IR so cannot be easily changed by the compiler.

comment 2y ago · link · parent

> He has been at Amazon for years, has been promoted a couple of times

I guess this is the Dilbert principle? Hire a few incompetent people, promote them to middle management so they don't screw up the actual work. It probably does work when you have a constant supply of skilled programmers at the lowest tier with 6-month turnover. (NB: that is just Amazon rumors, no idea what actual turnover is like)

comment 2y ago · link · parent

Red Hat's recommendations for swap: https://access.redhat.com/documentation/en-us/red_hat_enterp... I would say the relevant info is "at least 4GB" on any system with >8GB of RAM.

comment 2y ago · link · parent

I hadn't thought about it that way, but it makes sense. I would say the main difference is that ANF is type-preserving, whereas CBPV introduces new types. But they are similar in that they are IRs with accompanying translations from standard lambda calculus. You can see the translations of CBV/CBN on page 11 of https://www.cs.bham.ac.uk/~pbl/papers/tlca99.pdf

comment 2y ago · link · parent

I got really excited about call-by-push-value about 15 years ago, when I first encountered it, but at this point I think it is overhyped, particularly the presentation of "values" and "computations" as duals. For example see http://www.itu.dk/people/mogel/papers/eec.pdf, it is a CBPV-style lambda calculus except computations are a subset of values and there is no duality. Similarly in Levy's book, he discusses "complex values" like 1+2 which allow pure computations to happen inside the "value" type, more evidence that they are not duals at all.

If you squint at CBPV, there is exactly one primitive that sequences computation, `M to x. N`. In Haskell this is just the monadic bind `M >>= \x -> N` or `do { x <- M; N}`. If I had to bet, I would place my bet on monads, not CBPV.

comment 2y ago · link · parent

> > Congressional procedure is not even remotely as complex as what you need to know to build an average office building

> [Citation needed].

We can just compare the books, per the article the Congressional procedures are 1000 pages and the International Building code is 832 pages https://shop.iccsafe.org/2021-international-building-coder.h.... So at first glance building seems easier. But then when you crack it open, you also need to read up on gas, mechanical, plumbing, fire, and energy efficiency, so there is an extra 200+186+270+692+302=1650 pages. So I think it is true - a Congressperson only needs one book, but to build an office building you need 6 books (and probably 6 people, each specialized in a book). Now building a residential house, that is the IRC which is roughly comparable in page count to Congress, and you do see house flipping businesses run by a single well-versed entrepreneur.

comment 2y ago · link · parent

It's sort of the ugly duckling of intermediate languages. In his talks SPJ generally promotes join points: https://www.youtube.com/watch?v=Gml1m-3L47s&t=4388s https://youtu.be/LMTr8yw0Gk4?t=80 I still like the sequent calculus though. Sequent calculus is a bit more symmetric than join points and doesn't have the issue of writing a function two ways as a join point and non-joint point.

comment 2y ago · link · parent

By who? Only comparison I have seen is that it sucks vs. EXL2 https://oobabooga.github.io/blog/posts/gptq-awq-exl2-llamacp...

comment 2y ago · link · parent

he's around on GitHub https://github.com/Grumbel

comment 2y ago · link · parent

https://www.fox5atlanta.com/news/grammarly-georgia-college-s...
1
101112
45