131 karma · joined Jul 12, 2012 (14y ago) · 38 submissions
comment 7mo ago · link · parent
Nanopass had a DSL for describing what forms you delete from each intermediate language and which forms you add. Each pass was generally pretty small then, usually just replacing one form with some set of other forms.
Be cause each pass was really small it was pretty easy to reorder them. Sometimes we figured out if we moved one optimization sooner then later passes worked better. Or we realized some analysis was useful somewhere else so we rearranged the passes again. The pass ordering made it really clear which analysis results are valid at each point in the compilation process.
comment 1y ago · link · parent
I started up QBasic knowing nothing other than that it seemed like a thing for programming computers and programming seemed like a cool thing to do.
I typed in random words, and eventually I typed "screen". When I pushed enter, QBasic capitalized it, so it seemed important. I hit F1 and read the help. It made no sense, but the example ran and had other capitalized words so I could repeat the process.
Eventually I started making really terrible text-based Final Fantasy knock-offs.
comment 1y ago · link · parent
Still, I'm in my early 40s and I find myself baffled when I help my mom with her iPhone. I've been an Android guy ever since that was an option.
comment 1y ago · link · parent
AI 2027 was much more impactful on me. It probably helps that I read it the same week I started playing with agent mode on GitHub Copilot. Seeing what AI can already do, especially compared to six months ago, and then seeing their projections made AI seem like something much more worth paying attention to.
Yeah, getting from here to being killed by rogue AI nanobots in less than five years still seems pretty far fetched to me. But, each of the steps in their scenario didn't seem completely outside the realm of possiblity.
So for me personally, my 80% confidence interval includes both things stagnating pretty much where they are now, but also something more like AI 2027. I suspect we'll be fine, but AGI seems like a real enough possibility that it's worth working on a contingency plan.
comment 2y ago · link · parent
If I remember right, after Firefox 4 they skipped a few versions and started the train model, while also trying to de-emphasize the version number in marketing.
comment 6y ago · link · parent
comment 6y ago · link · parent
A lot of what I've read lately suggests we're discovering a lot of benefits of vitamin D that were previously unknown, and some evidence that the recommended vitamin D levels should be higher than they are.
For a generation or so we've told people the sun is dangerous because of skin cancer, and obviously skin cancer is really bad. But I wonder if we have a case of need to weight risks that are high cost, low probability (skin cancer) compared with low cost, high probability (low vitamins D complications). What is the overall effect of these two things?
comment 6y ago · link · parent
This means early on in the program's run you spend a lot of time translating code, but it pretty quickly stabilizes and you spend most of your time in already translated code.
Of course, if your program is self modifying then the system needs to do some more work to invalidate the translation cache when the underlying code is modified.
comment 6y ago · link · parent
For example, we now know there are a huge number of planets out there, and even planets in the habitable zone. Yet we haven't found any extraterrestrial life, so that suggests maybe the other factors are smaller than we initially would have guessed.
17.
Off by Two(nickdesaulniers.github.io ↗)
1 points · by eholk · 6y ago · discuss
comment 6y ago · link · parent
I worked on V8 for awhile, which uses a sea of nodes representation. This point really resonates with me. I and many of my teammates never completely developed an intuition for the different edges in the graph. There was a lot of trial and error involved.
I remember reading this paper and thinking "wow! this is the solution to all the problems I never knew I had." The generality and simplicity of a single graph that does everything is appealing. But in practice, I think you'd most often be better with SSA over CFG.
comment 8y ago · link · parent
Keep in mind there's barely any error checking, so it may or may not work for you. I hope to improve this over time, and am happy to accept patches to do that as well.
comment 8y ago · link · parent
The main reason was familiarity. R6RS is the Scheme I know best. I learned on R5RS and moved on the R6 when it was the new hotness. I vaguely was aware of R7 (I have friends that were on the standards committee), but didn't really know much more than that it had happened.
There's a technical reason for choosing R6RS as well though. To me the defining characteristic of R6RS is the library system. In my mind, this has a pretty clear mapping to WebAssembly modules. Scheme libraries import some set of identifiers and export another set. WebAssembly modules are the same way, so I basically set it up so that Scheme exports and imports map directly only WebAssembly exports and imports.
I'd definitely be open to supporting other Scheme versions in the future.
comment 13y ago · link · parent
comment 13y ago · link · parent
I have an earlier post that discusses a couple of the optimizations that Harlan does: http://blog.theincredibleholk.org/blog/2013/06/10/some-simpl...
To me the win for Harlan over CUDA is its region system, which lets you work with more intricate pointer structures in the GPU. For example, there is an interpreter for the Lambda Calculus as one of the test cases, which would be much harder to do in straight CUDA: https://github.com/eholk/harlan/blob/master/test/lambda3.kfc
Very soon, Harlan will have support for higher order procedures, which is also not available in CUDA.
comment 13y ago · link · parent