Jason Chan 2023-07-27 18:56:05 Iāve been re-building Subset.so to make it way easier to reuse templates directly in the editor. The idea is that you should be able to build beautiful spreadsheets without starting from scratch. For example if you want to build dashboard with a P&L and inputs, you can find both templates and drop them into the same editor. The concept is pretty common in design editors like Canva where you can look up and drop in design elements, but havenāt seen it done with spreadsheets before. Hereās a 7 second demo
Jason Chan 2023-07-27 22:59:00 literally made a 10x improvement to our product when we started using it
Lu Wilson 2023-07-28 14:53:56 Awesome, glad to hear it, I've shared it with the rest of the team :) Really like how you easy you're making it to use templates here
Marcel Weiher 2023-07-30 08:23:29 I implemented support for property paths in my native compiler.
scheme Hello
{
/hi/:p1 {
get {
'hello: ',p1.
}
}
-main:args
{
self waitOnPort: 8081 intValue.
}
}
So that little test program can now be fully compiler to an ARM64 binary.
]stc SchemeDefHTTP.st
]file SchemeDefHTTP
SchemeDefHTTP: Mach-O 64-bit executable arm64
]./SchemeDefHTTP
2023-07-30 10:16:36.680 SchemeDefHTTP[51040:2409943] will listen on port: 8081
From another shell:
]curl [localhost:8081/hi/Marcel](http://localhost:8081/hi/Marcel)
hello: Marcel%
]wrk [localhost:8081/hi/Marcel](http://localhost:8081/hi/Marcel)
Running 10s test @ [localhost:8081/hi/Marcel](http://localhost:8081/hi/Marcel)
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 57.33us 15.35us 1.13ms 80.91%
Req/Sec 75.02k 3.81k 78.81k 95.54%
1507905 requests in 10.10s, 198.45MB read
Requests/sec: 149295.29
Transfer/sec: 19.65MB
So more expressive than something like sinatra, but running at cool 140K requests/s.
The dichotomy between expressiveness/comfort and performance is a false one, a bit like the one we used to have between user-friendly but crashy client-operating systems and solid but unfriendly server operating systems. Now my phone and my watch both run Unix.
Kartik Agaram 2023-07-30 18:57:59 Very interesting.
Are your code samples in a shell? Hard to tell what you're typing and what's output.