Show Nim: Curly, an efficient thread-ready parallel HTTP client

2024-01-21 Thread ajusa
This is amazing work as always! Not sure if you've documented this elsewhere, but what is the difference between curly and ? Is curly more intended for use on servers (running Linux), or does it work on Windows as well with the libcurl dll? Is it possible to i

Malebogia

2023-08-29 Thread ajusa
Looking at the implementation, it seems like the `parMap` template is actually closer to `apply` from [sequtils](https://nim-lang.org/docs/sequtils.html#apply%2CopenArray%5BT%5D%2Cproc%28T%29_2). Is it planned to include a true "map" operator? One that returns a new list that may be of a differ

Pigeon 0.2

2022-11-20 Thread ajusa
r the name of the variable that is specified in the proc, I instead need to extract out all of the types and "flatten". Again, that's more a symptom of trying to use standard form submission instead of JSON. [1]: <https://github.com/ajusa/simple-twitter>

html2karax first release!

2022-01-28 Thread ajusa
Awesome, thank you so much for this tool! I've been using a slightly modified version of it for a while - specifically I made it so that it operates on stdin rather than a file. Then all I need to do is `cat | html2karax raw /dev/stdin` and paste in some valid HTML to get it as Karax. I think t

Twitter in 100 lines of Nim, no JS

2022-01-17 Thread ajusa
I've been using HTMX quite a bit recently, so I went ahead and updated the Simple Twitter repository I had <https://github.com/ajusa/simple-twitter>. With HTMX, you have something similar to the original post where interactions hit the server, but you control where the HTML goes. T

HttpBeast 0.4.0 is here

2021-12-14 Thread ajusa
Made a PR for the-benchmarker: :)

Karax steps forward

2021-05-16 Thread ajusa
Hello everyone, As many of you probably already know, [Karax](https://github.com/karaxnim/karax) is a core Nim web framework. It can be used as a DSL to generate HTML (good for templating on the backend) and to create Single Page Applications in Nim. Karax was mostly written back in 2017, and

Twitter in 100 lines of Nim, no JS

2021-04-08 Thread ajusa
Yep, I did read that along with any other Karax related materials I could get my hands on. Tweetbox in that tutorial corresponds to PostView in mine I think. I'm still a bit confused on deleting elements in a list and updating them though. In my case I just use the index + parent seq directly, b

Twitter in 100 lines of Nim, no JS

2021-04-08 Thread ajusa
I took it up! Here's a link to my repository: <https://github.com/ajusa/simple-twitter> I've only been using Karax/Jester for a week, and I've Norm a bit before then. The total number of lines comes out to be 98 if I'm not mistaken. Some of the code is... pretty