Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    5comments
  2. San Francisco Onion Futures Company(onionfutures.com ↗)
    46comments
  3. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    360comments
  4. Typesafe-computer-use drives a Mac toward a goal for 1/50th of a cent per step(github.com/awlevin ↗)
    11comments
  5. SDCC – Small Device C Compiler(sourceforge.net ↗)
    14comments
  6. Science Is Open Software(jepedersen.dk ↗)
    25comments
  7. Cloudflare Quick Tunnels(cloudflare.com ↗)
    272comments
  8. Saving another 100TB of RAM(cloudflare.com ↗)
    60comments
  9. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    20comments
  10. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    75comments
  11. NASA-IBM Lunar Foundation open-Source Geospatial AI Model(usra.edu ↗)
    discuss
  12. How to Write with an LLM(sockpuppet.org ↗)
    312comments
  13. Goroutine Leak Profiles(go.dev ↗)
    2comments
  14. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    90comments
  15. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    4comments
  16. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    85comments
  17. OpenJev(openjev.com ↗)
    257comments
  18. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    65comments
  19. The Farnese letter(simonklee.dk ↗)
    6comments
  20. Xcode 27.1 Beta Release Notes(developer.apple.com ↗)
    92comments
  21. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    12comments
  22. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    3comments
  23. Minimal Phone 2(minimalcompany.com ↗)
    208comments
  24. Cyclomatic Complexity in C#(ndepend.com ↗)
    17comments
  25. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    97comments
  26. Claude Code now reads AGENTS.md if there is no Claude.md(claude.com ↗)
    219comments
  27. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    45comments
  28. LispBM is a concurrent Lisp for microcontrollers with message passing(lispbm.com ↗)
    3comments
  29. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    69comments
  30. Alibaba open-sources AI model that can detect cancer and nearly 150 conditions(scmp.com ↗)
    11comments

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?