Hacker Newsnew | past | comments | ask | show | jobs | submit | healeycodes's commentslogin

Author here, one of the fastest improvements I've seen is @cloud11665's idea here: https://x.com/cloud11665/status/1955958965046595699


You can annotate the code blocks in the README to get generic lisp syntax highlighting.

```lisp

(+ 1 2)

```


Thanks.

It's unfortunately enough of a bad fit for me to prefer no highlighting; my own fault, the price you pay for adding syntax.


Yes, it works on any process that makes a SYS_getrandom call.


Ah, this is a useful distinction. Thanks.


The Lisp variant that the compiler supports at the moment only handles f64 numbers so I don't think this kind of issue is possible.

However, this is a very relevant point. If the goal is just shorter code (as opposed to a mix of shorter code and less run-time operations), then you need to check that folding strings (and similar types) actually makes the expression shorter to represent.


When a val is deployed on val town, my understanding is that it's parsed/compiled. At that point, can you save the parts of the program that people might search for? Names of imports, functions, variables, comments, etc.


A val is just Typescript, no? So unless they are also storing the AST it would be JavaScript and that's it


Awesome! I've been meaning to replace my usage of Python/JavaScript for tasks (which I believe) are more awk-shaped.


As long as you don’t care about unit test ability. Usually if you bothered to write them in Python or JS you usually don’t want to regress back to shell stuff. You’re already in a place where you have a runtime available so you can do way more stuff.

It’s usually the opposite direction that you mentioned that you want to go. You one liner some shell like awk to quickly get shit done without worrying about a runtime being available to you and then if you need it to be more robust and legible because of testing etc or production grade you move to a proper dynamic scripting environment


I'm really happy with the way val town responded to the security issues I raised! Big congrats to them for shipping this change – it sounds tricky on both the product and the tech side of things.



And an auto-repost feature. I still don't understand the difference, I think it depends who "rescues" the article (dang or unnamed power users).


If by auto-repost you mean when we email someone inviting them to repost a story, it's exactly the same thing as the second-chance pool except for a technical difference: if the submission is less than 2-3 days old, we re-up it; if it's older than that, we email a repost invite.


Thanks! I always assumed there was a bigger difference between "you mail me" and "you simple repost", but it makes sense that the time elapsed is a factor.


It was originally a factor for purely internal reasons—whether a story is kept in RAM or not—but I think it actually makes sense to keep.


First I've heard of auto-repost. Is this documented somewhere? Is there evidence that it exists?


Yes (my blog is on my profile).

People email me about things I’m interested in, and I’ve made new friends through it too.

It's nice to look back and see my progress — taking on harder projects, and writing more clearly.

> Does the time spent writing feels worth it to you?

Yes but I've always enjoyed writing.

> Did it help to get noticed/ find jobs or other opportunities?

Yes.

> Do you learn something new from it?

Yes, by writing for it. And, I suppose, by "running it" I learned more about the frameworks I've used.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: