GitHub Actions: workflow to cross compile and release to GitHubRelease

2020-07-26 Thread sergio
[https://raw.githubusercontent.com/sergiotapia/torrentinim/master/.github/workflows/release_asset.yml](https://raw.githubusercontent.com/sergiotapia/torrentinim/master/.github/workflows/release_asset.yml) I had to modify the cp commands, but other than that, the action works flawlessly! Thanks ag

GitHub Actions: workflow to cross compile and release to GitHubRelease

2020-07-26 Thread sergio
Thank you for sharing this! I've been looking for something like this for a while. When I try to build it I get an error: [https://github.com/sergiotapia/torrentinim/runs/912766993?check_suite_focus=true](https://github.com/sergiotapia/torrentinim/runs/912766993?check_suite_focus=true) trying t

Custom TLS options

2020-07-26 Thread zeddev
Hello, Is it possible to change TLS options and editing ClientHello handshake using Nim? Options like extensions, elliptic curves, etc. Appreciate the help

Nimx vs Fidget

2020-07-26 Thread ankhmor
I don't feel comfortable investing time into learning a Nim web or UI framework at this point. As much as I love to explore, life dictates that I get things done. I still, really, really want to use Nim, but want to do it in a safe way, and actually in a maybe beneficial way. By learning how to

Problem building code on macos with nimble

2020-07-26 Thread Vindaar
If you stumble on something using ggplotnim please don't hesitate to ask (here, gitter, discord or as an issue on the repository)!

Error when compiling with smtp import

2020-07-26 Thread jasonfi
That fixed it, thanks!

Proposal: Renaming imported symbols

2020-07-26 Thread lscrd
OK. I understand.

Proposal: Renaming imported symbols

2020-07-26 Thread Araq
The post you're referring to was already deleted. ;-) Can't stand "perfectionists" without manners.

Error when compiling with smtp import

2020-07-26 Thread Araq
No but please try to compile with `-d:ssl`

Proposal: Renaming imported symbols

2020-07-26 Thread lscrd
It’s a quite defendable point of view, but the problem is that I don’t know any language without some ugly points. In C and C++ doing separate compilation with `#include` is absolutely horrible (no modularity). We can find some excuses for C which is such an old language, but not for C++. Compa

Problem building code on macos with nimble

2020-07-26 Thread adilh
Ah! Ok. Thank you very much! many thanks, adil

Nimx vs Fidget

2020-07-26 Thread jasonfi
Why Svelte instead of Karax? Is the WASM for a GUI that doesn't use web controls?

Nimx vs Fidget

2020-07-26 Thread ankhmor
I'm starting to feel that going try a different approach altogether. I will use Svelte and have it import WASM modules generated by Nim.

Proposal: Renaming imported symbols

2020-07-26 Thread lem0nify
@lscrd Yes I can do it and I already found it by myself in a few minutes after I've created this topic. But I found it an absolutely ugly workaround. So I just uninstalled nim forever in few minutes more. : ^)

Error when importing smtp (Nim 1.2.4)

2020-07-26 Thread jasonfi
When I import smtp I get an error message when I compile: > .../nim/1.2.4/nim/lib/pure/smtp.nim(131, 40) Error: type mismatch: got > but expected 'SslContext = void' This is using the latest version of Nim (1.2.4).

Error when compiling with smtp import

2020-07-26 Thread jasonfi
When I add: > import smtp On compile I get: > /usr/local/Cellar/nim/1.2.4/nim/lib/pure/smtp.nim(131, 40) Error: type > mismatch: got but expected 'SslContext = void'| > ---|--- Does anyone else have this problem?

Problem building code on macos with nimble

2020-07-26 Thread shashlick
You need to add requires "ggplotnim >= x.x.x" in your nimble file.

Problem building code on macos with nimble

2020-07-26 Thread adilh
Hello, I have a small problem. I'm trying to compile my little nim file against the ggplotnim package. I created my package with nimble init and I pulled in the ggplotnim package with "nimble install ggplotnim", but when I try to compile the code with "nimble build -d:ssl" I get:

Suggestions for optimization?

2020-07-26 Thread cblake
Incidentally, if anyone cares perhaps finding this in some search, there are three more optimizations one can do here: 1) a faster integer `hash()`, 2) pre-sizing the table based on a guessed average word length (language/dictionary dependent), and 3) using Nim's unusual "duplicate keys" featur

Nimx vs Fidget

2020-07-26 Thread Stefan_Salewski
OK, thousands is maybe a bit too much. I was going to write hundreds of hours yesterday, but that is again too less :-) I started learning GTK in 2007, with the GTK2 book of A. Krause. Learning GTK2 was not that difficult, and that book was a useful resource. But GTK3/GTK4 is much more difficul

Literal types?

2020-07-26 Thread Araq
Maybe like this: type Hello = distinct string const validValue = Hello"Hello" const x: Hello = validValue # ok const y: Hello = "Bye" # not ok Run Or maybe you're looking for `enum`.

Nimx vs Fidget

2020-07-26 Thread ankhmor
@Stefan Thousands of hours is a good thing to know. It's a little overkill for a simple hobby project :)

[Game] Space Nim: a text based outer space game, loosely based on Trade Wars 2002

2020-07-26 Thread jasonfi
It looks like this could be a fun game. Good luck!

[Game] Space Nim: a text based outer space game, loosely based on Trade Wars 2002

2020-07-26 Thread mollusk
Greetings from planet Earth, Those of you who frequent the IRC channel may have seen me (silvernode) there talking about a little space game project I am attempting. I started the project about 4 months ago but scrapped the original code in favor of applying good code practices and feature plan

Literal types?

2020-07-26 Thread jgreene1236
Is there any way to have a literal type like in Python or typescript? E.g. in typescript can do: type Hello = "Hello" const x: Hello = "Hello" const y: Hello = "Bye" // fails Run I couldn't find a way to do this in Nim? Is it possible?

Procedural X86 inline assembler for Nim

2020-07-26 Thread mratsim
Just to clarify, the usual understanding of cryptographic constant-time and O(1) is different. Both does relate to timing but O(1) is about how timing changes with data size while constant-time is about how for a fixed data size there is no timing difference whatever the data is. As an example