Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    303comments
  2. Science Is Open Software(jepedersen.dk ↗)
    10comments
  3. SDCC – Small Device C Compiler(sourceforge.net ↗)
    2comments
  4. Cloudflare Quick Tunnels(cloudflare.com ↗)
    259comments
  5. Saving another 100TB of RAM(cloudflare.com ↗)
    55comments
  6. How to Write with an LLM(sockpuppet.org ↗)
    289comments
  7. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    8comments
  8. Xcode 27.1 Beta Release Notes(developer.apple.com ↗)
    74comments
  9. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    62comments
  10. The Farnese letter(simonklee.dk ↗)
    5comments
  11. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    61comments
  12. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    79comments
  13. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    73comments
  14. OpenJev(openjev.com ↗)
    249comments
  15. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    12comments
  16. Show HN: LiveWorld – Every 24/7 YouTube live camera on one globe(liveworld.info ↗)
    22comments
  17. Goroutine Leak Profiles(go.dev ↗)
    discuss
  18. Claude Code now reads AGENTS.md if there is no Claude.md(claude.com ↗)
    199comments
  19. Cyclomatic Complexity in C#(ndepend.com ↗)
    15comments
  20. Gemini hacked three companies in first known breakout by Google's AI(reuters.com ↗)
    27comments
  21. Minimal Phone 2(minimalcompany.com ↗)
    194comments
  22. LispBM is a concurrent Lisp for microcontrollers with message passing(lispbm.com ↗)
    1comments
  23. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    36comments
  24. Alibaba open-sources AI model that can detect cancer and nearly 150 conditions(scmp.com ↗)
    7comments
  25. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    210comments
  26. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    94comments
  27. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    49comments
  28. Two parallel neural ectoderm progenitors contribute to the developing brain(newscientist.com ↗)
    60comments
  29. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    20comments
  30. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    153comments

XXL: A minimal vector programming language (2016)

82 pointsby 6y agogithub.com
19 comments
6y agoHN ↗

Author here! Sadly the implementation is pretty slow and very memory leaky but I still like a lot of the ideas that XXL explored. I hope to have some kind of spontaneous mental breakthrough in the future and jump back into it.

Previously on HN: https://news.ycombinator.com/item?id=11379461

Also, kick - enjoying your vector language submissions on HN lately, keep it up

6y agoHN ↗

I'm glad to hear you're enjoying them! Thanks for writing XXL; I've found it really thought-provoking!

6y agoHN ↗

Are you the sole person working on this? How much time have you out into it and what's the hardest thing you've bumped into?

6y agoHN ↗

I've been thinking about making a language since 2004 or so but never actually made a serious attempt. I worked on XXL by myself for about four months with the support of my employer. I'm kind of an idiot so I had to learn a lot of stuff to make any progress at all.

The hardest part was figuring out how the execution mechanism would work - what exactly happens when code is evaluated, etc. There is obviously tons of prior art to look at from other languages but I wanted to take my own more minimal approach to the problem and not design an entire virtual machine with bytecode, etc.

6y agoHN ↗

Thanks for taking the time to answer!

Which resources would you recommend for someone who's learning about building a pgoramming language?

6y agoHN ↗

This is a really silly question, but what font/theme are you using in the first json example screenshot in the GitHub readme? I love it!

6y agoHN ↗

I think it was Consolas and the Lucius vim theme.

6y agoHN ↗

For anyone else that ends up seeing this, the font is Source Code Pro and theme is Lucius.

6y agoHN ↗

From the Readme I don't see what's "vector" about this language.

6y agoHN ↗

"No stinkin loops" -> would more appropriately be named minimal array PL

6y agoHN ↗

XXL is array oriented. All values are arrays, even what are usually considered scalar values. Verbs decide how they should behave with single item array arguments. Verbs like the math functions automatically apply themselves to the entire array. This removes a lot of need for looping constructs, which are discouraged in XXL. Some examples:

    3,6,9 * 3
    (9,18,27)
    3 * 3
    9

Let me know if this makes sense so I can update the readme correspondingly.

6y agoHN ↗

This is cool, thanks! Yes, I think the Readme could do with more smaller examples early on.

6y agoHN ↗

Minor nitpick, but I really wish the code in the screenshot had more newlines in it.

6y agoHN ↗

Yes, especially since the description says "only 6 lines!" yet it's clearly more than 6 lines.

6y agoHN ↗

In my humble defense, the latter half of that example (from "'test is { ... }") is the "JSON" encoder being tested / used! But this example could definitely use some work if its going to be featured prominently.

6y agoHN ↗

That's true. It's off-putting and looks ugly to most people.

One of the quirky things about the vector language community is that many of us like to write "wide" code that uses the whole line. The goal is to have as much of the program visible on-screen at one time as possible so you can minimize scrolling around, having to open other files, etc.

I was skeptical at first but I came to like coding in that way. I noticed that when I have to pull up that library's source to look at how something works I sorta lose track of what I was doing and that's how bugs happen.

Of course that example code isn't really a shining example of the practice and should be reworked. Tutorial stuff shouldn't feel dense. Thank you for the feedback.

6y agoHN ↗

I really don't understand the examples. Would be great if the readme could start with some easy examples and build on them (rather than starting with a parser).

6y agoHN ↗

Even worse - it's an encoder, not a parser. I really need to rethink these docs and basically start from scratch. What programming language docs do you really like?