Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Laya the open source version of Jev(convaiinnovations.com ↗)
    62comments
  2. What Zig felt like, coming from Rust(besok.github.io ↗)
    7comments
  3. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    341comments
  4. Tin: full-text search for Postgres(planetscale.com ↗)
    3comments
  5. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    156comments
  6. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    3comments
  7. “The Secret Life of Circuits” is here(coredump.cx ↗)
    33comments
  8. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    513comments
  9. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    3comments
  10. San Francisco Onion Futures Company(onionfutures.com ↗)
    91comments
  11. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    118comments
  12. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    154comments
  13. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    discuss
  14. Communication by means of modulated Johnson noise(pnas.org ↗)
    17comments
  15. From Stonemasons to Carpenters(thelastsoftwareengineer.substack.com ↗)
    4comments
  16. Cloudflare Quick Tunnels(cloudflare.com ↗)
    298comments
  17. How to Write with an LLM(sockpuppet.org ↗)
    356comments
  18. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    23comments
  19. SDCC – Small Device C Compiler(sourceforge.net ↗)
    21comments
  20. Saving another 100TB of RAM(cloudflare.com ↗)
    86comments
  21. Science Is Open Software(jepedersen.dk ↗)
    46comments
  22. Learning Another Language May Be One of the Best Ways to Keep Your Brain Healthy(theconversation.com ↗)
    1comments
  23. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    42comments
  24. NASA-IBM Lunar Foundation open-Source Geospatial AI Model(usra.edu ↗)
    5comments
  25. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    111comments
  26. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    6comments
  27. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    116comments
  28. OpenJev(openjev.com ↗)
    275comments
  29. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    4comments
  30. Goroutine Leak Profiles(go.dev ↗)
    6comments

Little is a statically typed, C-like scripting language

18 pointsby 10y agolittle-lang.org
6 comments
10y agoHN ↗

While some of us could switch from C to Tcl easily, our pointy-haired boss could not, he's mostly C and would lose about a half a day to get back into Tcl.

He did what every crazy boss does, he funded a programming language.

These bits made me laugh (and feel some small amount of envy). Is it correct to presume they're referring to you here?

10y agoHN ↗

Hi, pointed haired boss here, reporting for duty :)

I get the envy, it is nice being able to fund a language. I feel vaguely guilty like I was scratching my own itch, because that's exactly what was going on. I'll feel less guilty if someone else says "hey, cool, looks like C" and plays with it.

I think if I did it all over again I'd open source it sooner.

10y agoHN ↗

The envy is actually directed at your co-workers/employees: they get to work on something that has almost completely no hope of becoming commercial :).

I understand why you did it with your VCS, but with a scripting language? I would have made it open source sooner, too. Then again, as the business owner, there are always other angles that need to be considered.

10y agoHN ↗

It was just always work to clean it up and make a website and export the code to git. It was everyone working on it for the last few weeks, it was way more work than I wanted it to be.

The other aspect was that I wanted the language design to settle down before open sourcing it. I wasn't interested in a "design by internet" language, my experience is that stuff that comes out of one mind tends to hang together better. I probably waited longer than I needed to :)

10y agoHN ↗

Thanks for open sourcing it! I'll start building syntax highlighting for it for the editor I use. Should be easy enough since it's based on C.

10y agoHN ↗

We've been using this language internally for a number of years and finally got around to pushing it out the door.

It's unusual because it keeps C's types, so you get compile time type checking (with some run time checks). In particular you get structs which are nicer than the typical scripting language approach of using a hash where you want a struct. The structs tend to be commented, I learn a lot about a program by reading the struct declarations.

It's based on Tcl which might seem a little strange these days, but back in the day we were a self funded startup (18 years later, still no VC money) and there was just no way I could have paid for native guis on all the platforms. So the Tk part of Tcl/Tk was essential. I love what Tk can do, even today. But Tcl syntax drives me crazy unless I'm living in it every day.

Little has been pleasant to use, ctags just work, indent just works (until it hits "if (buf =~ /regexp/)", I think that trips it up because it doesn't know that // is like ""), c mode in editors tend to just work.

If it gains any traction I could imagine that someone tries to make a gcc --little dialect, I'd be all over that idea.

It's been fun developing the language, here's hoping someone has fun using it.