goalkicker.com and httpclient

2021-08-12 Thread xigoi
I recommend using [nimquery](https://nimble.directory/pkg/nimquery) instead of a bunch of nested ifs.

goalkicker.com and httpclient

2021-08-12 Thread AIR
Taking a break from working on nim-cocoa, I wanted to see how difficult it would be to pull down all of the free books from goalkicker.com Got it working, just wondering if there was anything I could have done differently? import httpClient, htmlParser, xmltree, strutils, os

Mac GUI

2021-08-12 Thread AIR
I've merged the dev branch with master, so now a static lib gets created when using nimble. I've also uploaded a preliminary xib file converter to the `examples` folder. It doesn't do all of the objects this library has yet, but has a demo.xib file included so you can try it. Any input on the

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-08-12 Thread elcritch
I've begun porting Nim to run on Zephyr RTOS. So far Zephyr's network libraries feel much more stable than Espressif's FreeRTOS/LwIP based networking used on the ESP32's. I haven't gotten any strange malloc related issues with Zephyr yet. =) There will be more work to do in getting Nim to suppo

Embedded device communications libraries?

2021-08-12 Thread elcritch
I'm learning about and testing various "IoT" communications schemes. I'm curious if any other Nim peoples have any experience with various IoT protocols? In particular, I've been reading up on [CoaP](https://en.wikipedia.org/wiki/Constrained_Application_Protocol). It uses UDP packets which can

Weird import issue

2021-08-12 Thread solo989
This is expected behavior. Your unrelated proc calls to_json with the exact same types as echo "v".to_json Run if you change proc to_json*[T](v: T): JsonNode = when compiles(v.to_json_hook): v.to_json_hook else: v.to_json_default Run

Weird import issue

2021-08-12 Thread alexeypetrushin
I finally distilled it into a short example, [play](https://play.nim-lang.org/#ix=3vM2) with [2min video demo](https://youtu.be/kBoSyi8CqEM) explaining where's the problem. Problem: comment out the code marked in comments, which is completely unrelated, and it would produce different results.

Weird import issue

2021-08-12 Thread solo989
They are not bugs. You just don't understand how generics work versus non generics. Araq was mistaken at first and corrected himself when he said, Please have a look at Unfortunately the first example isn't quite comple

wNim - Nim's Windows GUI Framework

2021-08-12 Thread qizhen10005
* Woohoo. WIL WHEATON: Did you know that classic fairy tales are actually more gruesome and horrible than we know them to be? They were actually designed as morality tales to terrify children into staying out of the woods, [url=/ ]Board game RPG game Miniature game[/u

Nim enters top 50 programming languages list on TIOBE Index!

2021-08-12 Thread martin
these indices are funny.

Nim enters top 50 programming languages list on TIOBE Index!

2021-08-12 Thread cdunn2001
Wow. I just googled the user you mentioned. First, a different user names some very good reasons to use Nim: * That repo is labeled "My experiments in weaponizing Nim". And that user gives credit to @ShiteSecure for figuring out the key

Nim online playground using Monaco and Wandbox api

2021-08-12 Thread Fire
God, I am stupid. I was trying the old version. LOL

Weird import issue

2021-08-12 Thread alexeypetrushin
> Your example isn't generic. Thanks, I tried that, it doesn't work. It's actually even stranger. Note in all the examples `proc text` is used and `proc image` isn't used at all, yet it will affect how the code behaves. **Case 1** remove unused `proc image` and it would work, even with non-gene

Nim online playground using Monaco and Wandbox api

2021-08-12 Thread Fire
I am getting a "PR_END_OF_FILE_ERROR" accessing it.