Ja

Jam – a functional React-like build system

Hacker News

Jam – a functional React-like build system

Jam is a build system. More exactly, it's a Java/Kotlin function memoizer with a persistent result cache, which turns out to be most of what you need for a build system. To demonstrate the memoization, we can use an executable Kotlin script like this: #!/usr/bin/env kotlin -Xjvm-default=all -cp build/jam-0.9.jar interface FibonacciExample : Project { fun fib(x : Long) : Long = if (x < 2) x else fib(x - 1) + fib(x - 2) fun demo() { println("fib(10) = ${fib(10)}") } } Project.run(FibonacciExample::class.java, FibonacciExample::demo, args) and then run it: % ./fibonacci.kts [compute] demo [compute] fib 10 [compute] fib 9 [compute] fib 8 [compute] fib 7 [compute] fib 6 [compute] fib 5 [compute] fib 4 [compute] fib 3 [compute] fib 2 [compute] fib 1 [compute] fib 0 [current] fib 1 [current] fib 2 [current] fib 3 [current] fib 4 [current] fib 5 [current] fib 6 [current] fib 7 [current] fib 8 fib(10) = 55 The Jam runtime logging displays the fib(x) calls as they recurse down to the fib(1) and fib(0) base cases, and also shows how duplicate calls are eliminated by returning memoized results from the cache. When the script completes the cache is saved to a local file. If we run the same script again, the result is ready to go: % ./fibonacci.kts [compute] demo [current] fib 10 fib(10) = 55

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Missing: mac, agents, macos
86%86% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
TrustMRRFits verified-revenue profile · Missing: mobile apps, ios, personal
54%54% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
45%45% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
32%32% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface, calls · Missing: plus, platform, intuitive
30%30% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
2%2% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Re
React Jam, build a game using React70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

React Jam, build a game using React

Hacker News13
Ho
Holiday Jam41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Holiday Jam

Hacker News4
re
react-d3-speedometer, speedometer like gauge for ReactJS50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

react-d3-speedometer, speedometer like gauge for ReactJS

Hacker News1
Re
React-d3-speedometer – speedometer like gauge for React58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

React-d3-speedometer – speedometer like gauge for React

Hacker News3
Ex
Exploring React-like functionality without React52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Exploring React-like functionality without React

Hacker News1
Wild Fruits
Wild Fruits73%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Handmade jam tarts from Northern, New York

Indie Hackers2$1,700/mob2c
re
react-d3-speedometer, show speedometer like gauge in ReactJS using d350%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

react-d3-speedometer, show speedometer like gauge in ReactJS using d3

Hacker News2
Ga
Games from a jam with a 1 BTC prize39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Games from a jam with a 1 BTC prize

Hacker News5
`/
`// +build` like constraint implementation for Go52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

`// +build` like constraint implementation for Go

Hacker News3
Wr
Writing React like Vue 356%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Writing React like Vue 3

Hacker News1