Discounted rates for "Nim in Action" and "Mastering Nim"?

2023-07-11 Thread basilajith
Oh, thank you so much @Niminem. My Discord username is @basilajith.

crosscompiling - SSL

2023-07-11 Thread Yardanico
The actual issue in your case is pretty simple - you're statically compiling with musl, and statically compiled binaries can't load shared libraries (at least not the "default" way). So if you want to reuse the rpi openssl, it'd be better if you just cross-compile to whatever glibc version is on

crosscompiling - SSL

2023-07-11 Thread guzba
You'll probably have an easier time using for simple HTTP requests.

crosscompiling - SSL

2023-07-11 Thread mantielero
Thanks for the info. How can I use it with `std/httpclient`? I just want to call a google script from the RPi.

crosscompiling - SSL

2023-07-11 Thread arnetheduck
In chronos we use to avoid this problem - ie the ssl library is compiled as part of your application.

Keep, Note Taking App in Nim

2023-07-11 Thread grd
As a "note keeper" this looks very nice! You made a fantastic video! The note app that I use is Joplin and I have to say that Joplin is very mature and has many features, but Joplin is not web based which means that in order to make it working you need to sinc it and also you need to install the

Table lookup problem

2023-07-11 Thread TKD
Thanks. I just updated my devel to the latest version and it works! I was using `1.9.5 git hash: 2054f1c3a9c78ac13593e90845807e9e64f22553` but I am now on `1.95 git hash: 9ddd768cce291e5c562cde23baeeefb47aa79c86`.

Table lookup problem

2023-07-11 Thread TKD
By fail, I mean it does not produce the correct answer. The output should be 0.99 but the second `getOrDefault` produces 0.0.

Table lookup problem

2023-07-11 Thread aEverr
bug exists on 1.6.14, but not on devel it seems

crosscompiling - SSL

2023-07-11 Thread mantielero
Using `-d:nimDebugDlOpen` gives the following when run: Dynamic loading not supported could not load: libcrypto.so.1.1 Run

crosscompiling - SSL

2023-07-11 Thread mantielero
I end up with the following line in order to crosscompile from Linux in x64 with the target RPi1: nim c --cpu:arm --os:linux --cc:clang --os:linux --clang.exe="zigcc" --clang.linkerexe="zigcc" --passC:"-target arm-linux-musleabi -mcpu=arm1176jzf_s -fno-sanitize=undefined" --passL:

Table lookup problem

2023-07-11 Thread SolitudeSF
works on devel

Table lookup problem

2023-07-11 Thread TKD
Can someone help me understand what is going on here. The first `getOrDefault` works but not the second and how can the second be fixed. Everything I have tried fails. type FooTable = Table[string, int] Bar = Table[FooTable, float] let bars = { { "b": 0 }.to

Suggestion to improve proc type infer, and some complains

2023-07-11 Thread sls1005
I was trying to point out the fact that an anonymous proc without parameter type is currently supported by `=>`, but cannot have `void` return type. Not that I support the new syntax. I think the documentation for `=>` should be added with some warnings that some kind of expressions might not wo

Suggestion to improve proc type infer, and some complains

2023-07-11 Thread demotomohiro
If `on_click (e) => echo e` or `on_click proc (e) = echo e` works on your code and you write it in many places, then new overloaded proc like `proc on_click(fn: proc(e: Event2))` cannot be added because existing `on_click proc (e) = echo e` become 'ambiguous call' compile error. So it might prev

Suggestion to improve proc type infer, and some complains

2023-07-11 Thread sls1005
This also failed: on_click (proc(e: auto): (auto | void) = echo e) Run mismatch at position: 1 required type for fn: proc (e: Event){.closure.} but expression 'proc (e: auto): (auto | void) = echo e' is of type: proc (e: GenericParam): auto or v

Keep, Note Taking App in Nim

2023-07-11 Thread jasonfi
Looks fun, but a slight name clash with Google Keep (also a note taking app).

Suggestion to improve proc type infer, and some complains

2023-07-11 Thread sls1005
> It seems allowing anonymous procs... But it's allowed. I mean, this works: import sugar type Event = object proc on_click(fn: proc(e: Event): int) = discard on_click (e) => (echo e; 0) Run The problem of "`on_click (e) => echo e`" is that it has `void` fo

Compiling nimrtl.nim as static library

2023-07-11 Thread hunterbr
thx for clarifying, in my case I would need it for a very special static analysis case, no big deal IMHO from a language perspective. Totally understand why it is not supported, just wanted to double check I am not missing something.

Keep, Note Taking App in Nim

2023-07-11 Thread alexeypetrushin
**Keep** helps you manage Notes, [5min Video Demo](https://www.youtube.com/watch?v=q_YrbArhXXE) Screenshots Features **Note** is a collection of **Blocks**. Blocks could be of different types: `title`, `section`, `subsection`, `text`, `list`, `table`, `cards`, `code`, `image`, `images`.