HNHacker News
TopNewBestAskShowJobs

cryptoz

19,612 karma · joined June 22, 2009

Interested in AI, climate, weather prediction, space

https://codeplusequalsai.com

Previously: PressureNet

submissionscomments
cryptoz··on How Waffle House helps Southerners and FEMA judge a storm's severity
I thought this index was over, as Waffle House faced legal issues? And is now closing earlier than it would have. The index fell because it became an index (what’s the name for that?)
cryptoz··on Virtualizing iOS on Apple Silicon
Well, I never owned one of them, so maybe I'm not supposed to comment on this. But their website was very clear: The OS on the first iPhone was OS X.

https://web.archive.org/web/20070112064939/http://www.apple....

cryptoz··on Virtualizing iOS on Apple Silicon
> iOS (or iPhone OS)

Slightly OT but the first iPhone ran OS X at launch.

I think as time went by and the "OS X" running on phones diverged more and more, they renamed to iPhone OS and then iOS some time later? Something like that anyway.

cryptoz··on Canvas is a new way to write and code with ChatGPT
150,000,000 tokens per minute and 30,000 requests per minute is unusable?! Maybe that’s just Tier 5 but the API is most definitely not unusable.

I’m firmly in the camp that their rate limits are entirely reasonable.

cryptoz··on Canvas is a new way to write and code with ChatGPT
The confetti is out of the cannon!
cryptoz··on Please Don't Make Me Download Another App
That should be getting kicked off the store then! Didn’t google implement a solution to this like 10 years ago, notification channels? Does iOS still not having something like that? Is Uber lying about the content of the notification for the channel?

I thought it was against all the app stores rules to spam notifications that the user doesn’t want. Maybe I am mistaken.

cryptoz··on Ask HN: What are you working on (September 2024)?
I'm still pretty early in terms of figuring out if this approach is better for larger projects. I can confidently say it works great on small things - for small changes on small files the AST approach works pretty well. You can say things like "add a click listener to the button that calls a function to tally the user's score" to a simple game and it will do it. That is, less than a minute after typing the prompt, you will see the code update in the editor and see your preview-webview update with your changes applied.

However, I have noticed that the AST code quality heavily depends on how common it is in the training set. I think I will have to add documentation to it through RAG or something - because OpenAI's models that I'm using seem to have limited experience writing esprima for JavaScript for example.

So it's hit or miss. In some cases I do feel like I'm throwing stupid compute at solving small problems and it's unnecessary - however, as I work on the project, it is getting better and better at successfully making the modifications. Some of that is me improving the prompts, some of it is OpenAI improving the models themselves, and some of it is the infrastructure I'm building for the project itself.

I did notice a huge improvement when o1-mini released. It is dramatically better at writing the AST code than GPT-4o or 4o-mini. I haven't tried Claude 3.5 yet but I've been hearing it does an exceptional job at code writing - not sure about my AST requirements though!

cryptoz··on Ask HN: What are you working on (September 2024)?
I'm getting LLMs to modify your source code by writing code that modifies the Abstract Syntax Tree of your code rather than the code itself. I wrote a simple blog post to explain it: https://codeplusequalsai.com/static/blog/prompting_llms_to_m...

My initial goal is to let users make webapp prototypes and iterate on them by writing tickets for the AI to complete.

I for some reason call it Code+=AI: https://codeplusequalsai.com

cryptoz··on Ask HN: How have you integrated LLMs in your development workflow?
> But it’s virtually useless for editing or changing code where it will often produce code that doesn’t compile, has bugs and/or doesn’t solve the requirements.

That is the exact problem I am trying to solve: modifying code with LLMs really sucks most of the time. I am trying a solution with Abstract Syntax Trees: I have the LLM write the code that will write the code you need. That is, modify the source tree rather than the text representation.

I wrote about my approach here: https://codeplusequalsai.com/static/blog/prompting_llms_to_m...

I do have it working for some cases quite well, but there are lots of pitfalls with this approach too. It does take a lot of context and the LLMs aren't really that well-versed at writing specifically esprima code for example. BeautifulSoup does work better, I guess because more people use it and there's more data in the training set.

I'm adding one language at a time, currently have HTML, CSS, Javascript and Python all kind-of working. It's pretty neat but I'm not sure how well it scales yet to larger projects and more difficult requirements/implementations.

cryptoz··on AI can generate recipes that can be deadly. Food bloggers are not happy
It is shocking to me that Instacart is still showing absolutely disgusting-looking AI-generated food pictures next to AI-generated recipes. Honestly every single one looks absolutely vile - none of them even look like food at all. And I see them every single time I go grocery shopping.

I swear they don't even have a human review any of it for even 1 second. These pictures are just....really really gross-looking. They don't even look like food. They don't even look like staged pictures for marketing of food. They look....cursed from the devil himself.

cryptoz··on Entire Subreddits Full of Bots
Not sure what this is meant to be but...I really miss r/subredditsimulator. Was absolutely hilarious back in the day.
cryptoz··on Flow Computing aims to boost CPUs with ‘parallel processing units’
I’ve not yet had this problem but I surely will now! Thanks I guess.
cryptoz··on Deep space radio signal reaches Earth after 8B years
I don't know anything about this at all. But I often think about it! I read something once that led me to believe there is no dark matter here on Earth. But I know nothing about this so don't take my word for it. My question has been, if the universe is expanding, am I expanding? Is Earth expanding? Surely it would have to be, (?!) because I keep getting told that the universe isn't expanding into anything but rather, space itself is expanding. Well, I am part of space itself, so am I expanding? Ever so slightly?

I think I read that no, in fact, I am not expanding. The space that I occupy is also not expanding. In fact, no space anywhere near us is expanding. The expansion (we think?!) happens due to dark matter (?) which is not evenly distrubuted and which we can kind of measure (?) and we can know that there isn't any here (?)

Maybe someone who knows more about this can fill in the question marks or otherwise correct me.

cryptoz··on Tetris Game Shows Promise in Reducing PTSD Symptoms
The only time I've ever lucid dreamed was when I played an obscene amount of tetris, and I could actually play games in my sleep. Like games that followed the rules, falling pieces randomy, I could rotate them, lines would disappear, the whole thing. It was really really wild.
cryptoz··on Launch HN: Marblism (YC W24) – Generate full-stack web apps from a prompt
How do you make modifications to code once it is generated? This is the most interesting part to me - you say there is a chat assistant that can make changes? Does it rewrite the whole file, or how does that work? Do you use git diffs?
cryptoz··on OpenAI is good at unminifying code
Finally someone else using ASTs while working with LLMs and modifying code! This is such an under-utilized area. I am also doing this with good results: https://codeplusequalsai.com/static/blog/prompting_llms_to_m...
cryptoz··on Programming with ChatGPT
My favorite thing to do with ChatGPT and coding is making fast prototypes. Since you know hallucinations might be a problem, and since ChatGPT struggles with larger contexts and files, just play to its strengths. I have lots of ideas of "small" to medium webapp ideas, and you can often get ChatGPT to write most of the code of a prototype and have it work quite quickly.

Prototypes are fun! Obviously production code or serious projects are different. But I've found a new joy in building software since GPT-4 came out - it's more fun than ever to build small ideas.

cryptoz··on Tell HN: Coca-Cola staging servers are showing up in search results
Okay so the US link isn’t showing up for you in Canada, sure, but it does happen in the US.
cryptoz··on Tell HN: Coca-Cola staging servers are showing up in search results
I did try a few things but didn’t get in haha
cryptoz··on Tell HN: Coca-Cola staging servers are showing up in search results
ok, sorry, second result.
cryptoz··on Just use Postgres
I don’t. How are new grads supposed to learn the ups and downs of different choices they make? Just being told they’re led astray in a blog post isn’t gonna work - it’ll backfire.

I used node as a new grad for things it wasn’t meant for and that’s how I learned what it is good at and what it isn’t.

cryptoz··on Nu-Klear Fallout Detector (ca. 1962-1968)
We had one of these in the house when I was a kid in the 90s. Seriously wild to learn what it was when I was like 12, after some years of not understanding ha. Never really was sure if it would work or not.
cryptoz··on Google Pixel 9 Pro
Oh :(
cryptoz··on Google Pixel 9 Pro
Samsung Galaxy S4 had one a decade ago. Also had a humidity sensor! A true weather station (barometer and light sensor too!)
cryptoz··on Show HN: Dropbase AI – A Prompt-Based Python Web App Builder
Hm, might be a DNS issue, not sure. I'll look into it, thanks!
cryptoz··on Show HN: Dropbase AI – A Prompt-Based Python Web App Builder
Aha, thanks for that detailed answer! Really fascinating to hear others' approaches to this area of building simple but full apps with LLMs. I'll definitely be following your progress, curious to see where this goes. And I will read your blog post this afternoon!
cryptoz··on Show HN: Dropbase AI – A Prompt-Based Python Web App Builder
Ooooh, this is interesting. I think I'm building something quite similar! May I ask, how do you solve the code modification problem? In your demo video it shows the AI prompt is modifying code, not just generating it first-time, but I am curious how you do it. Are you using diffs?

I wrote about my approach here using ASTs: https://www.codeplusequalsai.com/static/blog/prompting_llms_...

You wrote in your post that you 'regenerate' a file - is that how you do it? Is it reliable? How does that work on big files? Does it fail at reproducing the rest of the file that should remain unchanged sometimes?

Thanks for answering any of these! Great project!

cryptoz··on How to think in writing
Disclaimer: I'm not OP and I haven't read the full post yet.

But the quote above says "If..." and then makes a statement that isn't true and then having a conclusion based on that false premise. I can tell you it isn't true because I can recall countless times in the last few months alone where writing down my ideas has resulted in a muddier thought; lost ideas while writing them down; confusing me and missing some parts; it does not "always make them more precise and more complete". So the rest of the statement is just silly.

Sure, sometimes writing down ideas helps clear things up. Most times even. But always?! Definitely not.

cryptoz··on Ask HN: Anyone here burnt out of the AI hype?
Not me. But I do get it, sometimes hearing the grandiose expectations gets to be too much. These days I just tune it out mostly and keep my head down working (on an AI project…)
cryptoz··on Storm2k – old style phpbb2 forum running forever, discussing tropical weather
With a record setting early Cat 5 hurricane and while weaker, now likely headed for TX/MX border (also where Starbase is located), I thought it maybe is a good time to share my favorite place online in the summer.
← PreviousPage 5 of 34Next →