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 ↗)
    310comments
  2. Science Is Open Software(jepedersen.dk ↗)
    13comments
  3. SDCC – Small Device C Compiler(sourceforge.net ↗)
    2comments
  4. Cloudflare Quick Tunnels(cloudflare.com ↗)
    261comments
  5. Saving another 100TB of RAM(cloudflare.com ↗)
    56comments
  6. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    9comments
  7. How to Write with an LLM(sockpuppet.org ↗)
    290comments
  8. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    64comments
  9. Xcode 27.1 Beta Release Notes(developer.apple.com ↗)
    75comments
  10. The Farnese letter(simonklee.dk ↗)
    5comments
  11. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    79comments
  12. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    77comments
  13. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    61comments
  14. Show HN: LiveWorld – Every 24/7 YouTube live camera on one globe(liveworld.info ↗)
    23comments
  15. OpenJev(openjev.com ↗)
    250comments
  16. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    12comments
  17. Goroutine Leak Profiles(go.dev ↗)
    discuss
  18. Claude Code now reads AGENTS.md if there is no Claude.md(claude.com ↗)
    202comments
  19. Gemini hacked three companies in first known breakout by Google's AI(reuters.com ↗)
    35comments
  20. Cyclomatic Complexity in C#(ndepend.com ↗)
    15comments
  21. LispBM is a concurrent Lisp for microcontrollers with message passing(lispbm.com ↗)
    1comments
  22. Minimal Phone 2(minimalcompany.com ↗)
    196comments
  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. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    50comments
  26. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    94comments
  27. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    211comments
  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 ↗)
    21comments
  30. Size-Specialized Memory Allocation(go.dev ↗)
    3comments

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?