Announce: LimDB, a fast, persistent table with LMDB under the hood

2023-03-13 Thread radsoc
LMDB is a special beast. Read [this blog post](https://blog.cloudflare.com/introducing-quicksilver-configuration-distribution-at-internet-scale/) from Cloudflare: > LMDB stability has been exceptional. It has been running in production for > over three years. We have experienced **only a singl

Number of requests issue with Httpbeast

2023-03-10 Thread radsoc
When load testing Httpbeast and its new request id, I noticed a difference between the number of requests generated by wrk (same results with hey/oha) and the last id generated by Httpbeast. You can test a similar issue with the current Httpbeast release (v0.4.1) and this short `helloHttp.nim`

Neovim users, how are you setting up Nim?

2022-12-20 Thread radsoc
After watching this video <https://youtu.be/stqUbv-5u2s> I decided to set up Neovim for Nim on my laptop. And here is my nim-gruvbox fork of TJ DeVries' kickstart.nvim <https://github.com/radsoc/kickstart.nvim/blob/master/init.lua> You only have to copy this file into ~/.c

Recursively replace pair of bytes with one byte, within given byte array

2022-08-24 Thread radsoc
I don't know if you have to deal with one large ByteArray or many small ones, but this part of your code (the fastest one) is quite expensive: for j,it in a[i..^1]: result[cntr+j] = it result.setLen(cntr + a[i..^1].len) Run My naive implementation i

Nim v2: what would you change?

2022-08-14 Thread radsoc
Thank you for feeling my pain. Unfortunately `div` is arguably the most used html tag and, for any web developer, using `tdiv`, ``div`` or `dv` is like using `t=` or ``=`` for a variable assignment. What I recommend is using [Nimja](https://github.com/enthus1ast/nimja) and [htmx](https://htmx.

Nim v2: what would you change?

2022-08-11 Thread radsoc
I just found why Nim didn't copy the ["//"](https://peps.python.org/pep-0238/) Python keyword (). Araq: > I couldn't copy Python's design because back then Python only had / and it > sucked so I had to copy a different design.

Nim v2: what would you change?

2022-08-10 Thread radsoc
I'm sorry for the mathletes but we have to remove the "div" keyword: we can't keep on using "tdiv" for the "div" html tag... and "//" is better for you than "div".