jimmyhmiller
jimmyhmiller on Hacker News
Comptime in zig is definitely quite cool, but not quite the same.
Consider this example.
https://jimmyhmiller.com/split-shot/#/vm
Make the code a comptime argument in zig and you get "store to comptime variable depends on runtime condition".
Posted by
jimmyhmiller on Wednesday April 08, 2026 @11:52AM
from the jimmyhmiller.com dept.
I try to explain what I mean the next few sentences of the post. I have spent a good amount of my career jumping into fairly large code bases. I don't need to take it quite so step by step. I have seen enough code to take shortcuts, to guess at what is there.
But telling people that isn't helpful. I try at the beginning to give more step by step of how I would get into understand the code base if I didn't already know these kinds of shortcuts. (I'm not sure I could write those down, they are just know how and heuristics, like how when you are a starting to code a missing ; can take a much longer time to see than as you've been programming for a while)
Posted by
jimmyhmiller on Tuesday September 24, 2024 @05:51PM
from the jimmyhmiller.github.io dept.
This is something I've had to train myself to overcome. The first step for me was having a place where I clearly signaled that this wasn't my best work. Where the rules were allowed to be broken. That place is my junk drawer of code[1].
I have a zsh alias `alias changes='git add . && git commit -am "Changes" && git push'` that I use for my commits in the repo.
This all may feel silly, but it's what I needed to get back to that time of playing. Where I never worried about the code. But where I also didn't feel I was wasting my time working on code no one could see. I'd definitely recommend trying something like that if you are struggling with it.
[1]: https://github.com/jimmyhmiller/PlayGround
Posted by
jimmyhmiller on Monday January 15, 2024 @02:22PM
from the jimmyhmiller.github.io dept.
Yeah, you could very well be right this is all overkill. But what I wanted to do was handle the general case rather than deal with things on a case by case basis. So to extend your analogy, I consider this blog post a parser generator. It isn't suppose to parse any particular text, but to allow you to create a parser for anything you want.
I've found that my short replies to empirical advocates seem to not connect. There seemed to be an assumption that I just wanted to hold onto my opinions and not think deeply about anything. So I wanted to do the exact opposite. Be as pedantic as I could (in the space of a shortish blogpost).
I think you missed the point of the article. I actually don’t do TDD at all. I’m actually personally not a fan. So feels a little weird that you thought this was an article trying to justify TDD use.
The TDD example was just an example. I wasn’t taking the actual finding of the TDD research I was talking about a hypothetical finding. You can replace the examples with AIs like copilot and stipulate a large effect size. Nothing I said would really change. You still have to look at your desires to figure out what you ought to do given that research.
In the article I’m assuming ideal conditions. So if you think a large effect size is important, throw that into the ideal conditions. I don’t think that changes anything I wrote. Maybe I’m missing something?
Yeah feel like an idiot for this one accidentally submitted this on mobile without noticing the autocorrect putting spaces. And the missing of io. And the fact that it was the title not the url… I wasn’t actually trying to submit. Just fat fingered it. Made a new post. Would love if this was deleted.
Posted by
jimmyhmiller on Saturday April 22, 2023 @01:19AM
from the jimmyhmiller.github.io dept.
Posted by
jimmyhmiller on Saturday April 22, 2023 @01:12AM
from the self-post dept.
I think all papers are flawed in their own way. So it is not meant as a slight. It is actually my favorite programming related paper. That said:
I think Naur was just a bit to vague and assumed background knowledge of Gilbert Ryle where most people don't have any. I think a lot of people finish reading the paper and don't realize what Naur's notion of theory is or how his radical conclusions follow.
This blog does pretty good job summarizing Naur's points. (My only quibble is equating mental models with theory in Naur's sense, but its an okay approximation). I definitely recommend people read the original paper. It's a flawed but beautiful paper.
Shameless self plug:
We just did an episode on Naur's Programming as Theory Building in the most recent episode of the Future of Coding Podcast.
https://futureofcoding.org/episodes/061
The page was using zeit 1.0 before, which means it was a container and not a serverless function. (I know you know Rauchg, just explaining for other people). This container was actually failing because of rate limiting by wikidata causing an unhandled promise failure.
I had made a fork of this to show it working on zeit now 2.0 with 'stale-while-revalidate' so that it only update once every minute. But obviously I took that fork down once I saw this comment.
Thanks for the reference. Espresso doesn't support recursive records. Does system in your paper allow for those? Is there anything particularly tricky about supporting them?
With Clojure you get that feedback loop by running everything in an open repl. No startup time needed.
Isn't this case about North Carolina (the government) banning sex offenders from social media?
I'm on tree styles tabs 0.18.2016090802 and firefox 50.0 and haven't had any problems.
Hey, awesome idea. Can't wait to try it out. Unfortunately I'm getting a 504 when I try to register. If you could let me know when things are back up and running that would be great.
I did the same thing and pointed to a node_modules folder on a project I had. Worked fine for me.
Well, rather than commenting on download size I'll talk about the program.
This looks really awesome! I've been wanting a nice js repl for a while and this one definitely has a lot of the qualities I was looking for.
Auto complete is very nice. Color syntax looks great. The biggest thing I would like to see is to persist history. I'd love to up arrow through previous sessions.
Overall nicely done!
Boulder is one of the places I was looking to move. But looking at houses there it seemed far from affordable. Is that not the case?
Maybe I'm a bit confused, but it doesn't seem by your announcement that you are opening up the source, just inviting people to try and hack. Having the source open would make it much easier to spot security problems.
How does resolve deal with asynchronous calls? The name almost suggests that you might be able to return a promise?
The site appears to be down. Anyone have a mirror?