Live data from Hacker News

Ask HN: What are you working on? (June 2026)

news.ycombinator.com

901–910 of 1001 posts

Re: Ask HN: What are you working on? (June 2026)

#907
So I was working on a clone of Sid Meier's Pirates [0] but with a princess theme for my daughters.

I figured it would be good to have some minigames in the above so tried making unrelated small turn based games as an experiment.

That in turn led me to making a Soviet tractor factory simulator [1].

0 - https://store.steampowered.com/app/3920/Sid_Meiers_Pirates/

1 - https://alexpotato.com/games/tractor47/?l=hn3

Re: Ask HN: What are you working on? (June 2026)

#909
an array language. now I'm working on the tokens->three address code->bytecode translation. I'm hoping to get that done this week, then start implementing the more important builtins&library functions. you'd be surprised how many functions you can bootstrap just by implementing grade/argsort.

for example:

  // C++ (naive version, sorry)  
  vector bin(vector& x, vector& y) {  
    vector r;  
    for (int a:x) r.push_back(lower_bound(y.begin(),y.end(),a) - y.begin())  
    return r;  
  }



  # Jet  
  ord
or course this is not at all apples to apples, though it works to show the difference in possible approaches. in C++ I'm just turning an already implemented binsearch into something useable for arrays, and in jet I'm doing some weird array tricks to implement it from scratch using grade up (asc).

moreover, the C++ solution is O(m*log(n)) and jet is O(m+n) (though with a large constant factor) - but of course we can do much better once I implement it as a real builtin

Post reply on HN