why use nim over c#?

2023-03-01 Thread Lantos
"The risk is being frustrated and giving up. But doing something you're intrinsically curious and motivated about also give you strength to overcome the obstacles. Though don't hesitate to take a break if you're stuck, you can try a new language or a small project or do something else before com

RST in nim.

2023-03-01 Thread Araq
> It is not js compatible (I tried making an api, and it was slow) What is it? Not compatible or slow? > It only supports nim highlighting, not other popular languages Not true. > This one might not be related, but i can’t figure out how to capture the > warnings it produces. There is some ca

RST in nim.

2023-03-01 Thread Nlits
I needed a way to turn RST to html in nim, so I looked at `packages/docutils/rstgen`. Here are some issues I have with it: * It is not js compatible (I tried making an api, and it was slow) * It only supports nim highlighting, not other popular languages * This one might not be related, but

why use nim over c#?

2023-03-01 Thread mx1990
thank you well even though i was already set on learning c++ anyway, i still did some searching around and it just seems like 80/20 from what ive read is stuff like, ive been using C++ for decades and i say don't bother, stay way, pick up Rust instead, etc. obviously c++ has its advantages sin

why use nim over c#?

2023-03-01 Thread mx1990
thank you for your detailed reply even though time is limited i definitely want to commit more to nim now i think i should learn more about strings i guess. see this is why i am taking up a lower level language, to learn how these things work at all and not just have it be a bunch of magic

why use nim over c#?

2023-03-01 Thread mx1990
i actually have happened to have read that article a week or so ago, thank you for your that. it is fascinating. come to think of it, i've also considered learning Rust which i think is great for what it is, but it doesnt seem ideal for game development unless im wrong

why use nim over c#?

2023-03-01 Thread mx1990
thank you for your reply, and i am very impressed by your work and that of your fellow devs :) c# i work with mainly because unity supports it and i think it's a fine language for someone still trying to find his way. outside of unity it's great for creating personal apps as well, though some .

`send` for `AsyncSocket` does not work when communicating with shared libraries

2023-03-01 Thread Chronos
I wrote a plugin system because my server impl is going with the ideal of 'keep everything as minimal as possible', so networking for X.Y.Z version in their own plugins, combat systems implemented in their own plugin... Etc I mainly wanted something that could be split up and have components eas

uing - a fork of ui that wraps libui-ng instead of libui

2023-03-01 Thread neroist
Hi everyone! I created a fork of [ui](https://github.com/nim-lang/ui) that wraps [libui-ng](https://github.com/libui-ng/libui-ng) instead of the old and unmaintained [libui](https://github.com/andlabs/libui) library. I made this fork because libui seems to be abandoned (ATOW, most recent update

`send` for `AsyncSocket` does not work when communicating with shared libraries

2023-03-01 Thread Araq
Not that the issue isn't interesting and worth investigating but why did you program a plugin system? IME these are to be avoided unless really required, they can quickly introduce needless complexity that can kill a project.

Compilation error (type mismatch)

2023-03-01 Thread yalexr
import std/asyncjs import std/jsconsole import std/sugar proc f() : Future[string] {.async.} = return "hello" discard f().then((s : string) => console.log(s)) Run nim js -d:nimExperimentalAsyncjsThen test.nim ... [successX]

Compilation error (type mismatch)

2023-03-01 Thread DomoSokrat
The examples were using `-d:nimExperimentalAsyncjsThen`, so I had a look at the source. Yup, `then` needs `-d:nimExperimentalAsyncjsThen`. So try `nim js -d:nimExperimentalAsyncjsThen test.nim`.

why use nim over c#?

2023-03-01 Thread Araq
> @Araq, is string "copy on write" coming with nim 2.0? If not, is it planned > for a specific release? It's not particularly hard to do but not scheduled either. PRs are welcome. :-)

Compilation error (type mismatch)

2023-03-01 Thread yalexr
And simpler still ... import std/asyncjs import std/jsconsole import std/sugar proc f() : Future[string] {.async.} = return "hello" f().then((s : string) => console.log(s)) Run $ nim js test.nim Error: attempting to

Compilation error (type mismatch)

2023-03-01 Thread yalexr
I feel I'm running in circle. Nope. `then` is just not recognized. Another example: import std/asyncjs import std/jsconsole import std/sugar proc f() : Future[string] {.async.} = return "hello" proc log(s : string) = console.log(s) f().t

`send` for `AsyncSocket` does not work when communicating with shared libraries

2023-03-01 Thread Chronos
Heya, I'm using Nim for a Minecraft Java Edition server implementation, and in the project I am using a plugin system using shared libraries. The issue I am encountering right now, is that when calling `await socket.send("myString")` within a shared library, no data is actually sent to the conne

why use nim over c#?

2023-03-01 Thread pp
Mee too I ask myself what does it means `timeout`, seems weird that a lot of tests have this result. ^_^

why use nim over c#?

2023-03-01 Thread didlybom
@Araq, is string "copy on write" coming with nim 2.0? If not, is it planned for a specific release?

Compilation error (type mismatch)

2023-03-01 Thread geotre
`then` is [here](https://nim-lang.org/docs/asyncjs.html#then%2CFuture%5BT%5D%2Cproc%2COnReject) in asyncjs. Your code looks like it should compile as long as you await or discard the future

Compilation error (type mismatch)

2023-03-01 Thread yalexr
Thanks @xigoi . One compilation error remains: `Error: attempting to call undeclared routine: 'then'`. Code here: import dom import webaudio import std/asyncjs import std/jsconsole import std/sugar proc createNoiseProcessor(c : AudioContext) : Future[AudioNo

This will help you to select the appropriate number

2023-03-01 Thread Chalshanry
For example, scammers may obtain mobile phone numbers through fraudulent means, such as phishing or hacking, and use them to conduct fraudulent activities, such as identity theft, financial fraud, or selling fake products. To protect yourself from unwanted marketing calls and texts, it's importa

anonymous records / subtyping ?

2023-03-01 Thread Araq
Tuples already offer field names in Nim but Nim's "standard" DB modules don't use them for good reasons that I won't go into. If you need something more convenient, use an ORM. If you think that means you cannot use custom queries you are mistaken, ORMs offer that and my [Ormin](https://github.c

anonymous records / subtyping ?

2023-03-01 Thread nimnam
>From my point of view the benefits of ORM are: > * you will not have typos (cause it fits the type system) > * you can add additional simple checks like age < 100 > * no need to worry about order such eg INSERT .. (id, name) VALUES (..) > How about querying ? SQL is very flexible. Eg win

BioScience Keto GummiesACV Keto Gummies, Keto Gummies Canada, | Is It Worth Buying

2023-03-01 Thread Franuumith
BioScience Keto Gummies is a special weight reduction recipe that empowers your body to enter ketosis for solid weight reduction. The fixings in BioScience Keto Gummies help in the development of ketones in the body which are the primary fuel hotspot for the cerebrum.Heftiness is a typical issue

Nimble package submission process broken?

2023-03-01 Thread ringabout
Progress All thanks to @Yepoleb

JS backend: Can't return a proc that iterates over an openArray

2023-03-01 Thread moigagoo
Thanks for the good point! I'll update my code, I like your variant. It's clear and safe. My PR that enables this syntax for JS brackend has already been merged. So I think it may stay there. The current behavior is probably better than the obscure compiler error.