Math library for renderers and GUIs

2022-08-17 Thread icedquinn
> The Hadamard product is not geometrically meaningful! As of `d0975` there is no longer a `*` defined for vectors. `hadamard(v1, v2)` does what that operator used to do and a version of that for matrices already existed. The definition of a Rotor is identical to a geometric product (scalar+biv

Sugar.Collect macro inside a Sequence causing error

2022-08-17 Thread SolitudeSF
`toTable` makes `Table`, but `newOrderedTable` makes `OrderedTableRef`.

Sugar.Collect macro inside a Sequence causing error

2022-08-17 Thread mohan24
Hello, so i was recently trying to use sugar's collect macro inside a sequence, like this: import tables, sugar, sequtils, strutils let l = @[ {"one":1, "two":2, "three":3}.toTable, collect(newOrderedTable, ( for (i, j) in zip("sun mon tue wed".spl

Can't isolate an object with a DateTime field

2022-08-17 Thread jasonfi
I encountered this error when trying to send an object over a channel with threading/channels. Bug report filed:

Use SciKit-learn for machine learning from Nim? (Andreas please read!)

2022-08-17 Thread davesisk
Hi folks, including Andreas and the other language founders (I hope you read this post)! Since Nim can talk to C libraries, is there some easy way to have a Nim program use SciKit-learn? Let me see if I can describe how much growth in popularity this might create for Nim...facts: * Python w

why Hints comes yet even {.push hint[Name]: off.} is added?

2022-08-17 Thread oyster
I am compiling the examples in with latest cloned-and-compiled nim 1.7.1, but there is a lot of informations(mainly `Hints`, I think it is a kind of warning, am I right?) $ nim c simple_gui.nim Hint: used config file 'E

why Hints comes yet even {.push hint[Name]: off.} is added?

2022-08-17 Thread oyster
btw, what is C:\Users\USER\.nimble\pkgs\winim-3.9.0\winim\clr.nim(218, 37) template/generic instantiation of `fmt` from here (1, 3) template/generic instantiation of `toHex` from here Run is it a warning, hints, or something else? and what is the purpose to show it

Convert Python codes to Nim codes

2022-08-17 Thread whospal
Thanks very much, @PMunch! I've learnt a lot. But for the 2nd algo, in the Python slice g[i::j][:L] is to loop from index i to end with step j. Not i to j => g[i:j]. Python has this [start:end:step] slice. Hence, I don't know how to convert this in nim. #--

Can't isolate an object with a DateTime field

2022-08-17 Thread jasonfi
Here's my test: import times import std/isolation type Test* = object d*: DateTime # Main var test = Test() let isoTest = isolate(test) Run Compile fails with Nim v1.6.6: `Error: expression cannot be isolated: notificationMsg

jnim documentation ?

2022-08-17 Thread davidbruce
Do you have JAVA_HOME defined in your path? You can take a look at all the places it looks for a JVM to use here:

jnim documentation ?

2022-08-17 Thread bcharest
I discover Nim last month and I'm coding for the last 4 weeks on nim and the language is really great !!I'm exploring some modules and now I'm stock with jnim. I'm trying to use jnim and understand how it's work. I downloaded the module to execute some tests but I get this error :

Read/write access to global variable in multithreaded application

2022-08-17 Thread PMunch
For the errors issue it's just a matter of creating a nim.cfg file which sets `threads: on`. Creating this file tells the editor that you're using this option, and you don't have to use `--threads:on` while compiling.

Read/write access to global variable in multithreaded application

2022-08-17 Thread RedByte
I've been trying to get multithreading to work with a shared variable, but for some reason can't make it work. I've tried multiple things, but the following code is the closest I got to what I'm trying to achieve. So I tried to define a global variable with allocShared0 of type `seq[string]`. T

Alternative to gravatar for the forums?

2022-08-17 Thread xigoi
GoatCounter is free for non-commercial projects.

Explain current state of multi-threading

2022-08-17 Thread jasonfi
I've heard that it's advised to use the new channels with ARC/ORC: . This should be at the top of the stdlib channels docs, in my opinion.

C function dependencies in os:any

2022-08-17 Thread elcritch
You could look through this repo for a bare metal example: Nim doesn’t really require too much, or generally require string.h or similar. The main thing to worry about is memory allocation. See the Nim Compiler docs for setting that up:

nimiSlides πŸ›· Create beautiful slideshows in Nim πŸ‘‘

2022-08-17 Thread juancarlospaco
This post should go as-is in the Blog IMHO. πŸ™‚πŸ‘

Explain current state of multi-threading

2022-08-17 Thread gavr
Explain the situation with multi-threading, now it seems to me a little confusing. With GC: refc heaps are local for each thread. Therefore, it is only possible to copy shared data, or manual control via ptr (which is unsafe). With GC: ARC/ORC heap is shared so data can be moved. ARC doesnt use

iterrr: extensible iterator library

2022-08-17 Thread hamidrb80
**UPDATE: version 1.0.4** with [custom adapter](https://github.com/hamidb80/iterrr#custom-adapter) and custom reducer, it's really an _extensible iterator library_! * [here's](https://github.com/hamidb80/iterrr#example-of-generated-code) an example of generated code. * example of defining [

nimiSlides πŸ›· Create beautiful slideshows in Nim πŸ‘‘

2022-08-17 Thread hugogranstrom
> Is it possible to get the current slide number over the total number of > slides ? I have added `showSlideNumber()` and updated the [showcase](https://hugogranstrom.com/nimiSlides/showcase.html) to include it. > I see that the slides are not disposed in a linear way Indeed, you have the opti

Alternative to gravatar for the forums?

2022-08-17 Thread dom96
There is also . Any of these analytics services free for open source projects? They all cost money which is fair, but if we can get them for free that would be nice. Btw there is no chance we can avoid proprietary software completely and I don't think we should

What's the use case for a "block" statement?

2022-08-17 Thread Zoom
> You would get a runtime error if you applied your fold on an immutable > sequence (a sequence of const/let variables), isn't it? No, there's only reading the `input` and no mutation happening. > Isn't it bad style to "force" side-effects? I should have explained myself more clearly. This code

Alternative to gravatar for the forums?

2022-08-17 Thread mratsim
Google Analytics is illegal in France and in Danemark Status uses Fathom Analytics for privacy preserving analytics: There

nimiSlides πŸ›· Create beautiful slideshows in Nim πŸ‘‘

2022-08-17 Thread dlesnoff
The latex equations support may make it a great replacement of beamer, latex package for presentation. Is it possible to get the current slide number over the total number of slides ? I see that the slides are not disposed in a linear way (according to the arrows on the down-right corner). I am

Convert Python codes to Nim codes

2022-08-17 Thread PMunch
Your Nim implementation is probably going to look something like this: #--- # Name:WordSearch.nim # Purpose: Find word in a grid of letters in any directions. #---

nimiSlides πŸ›· Create beautiful slideshows in Nim πŸ‘‘

2022-08-17 Thread hugogranstrom
Thanks Pietro πŸ˜„ Feel free to share any slideshows you make using nimiSlide in this thread. I want to see them all 🀩

nimiSlides πŸ›· Create beautiful slideshows in Nim πŸ‘‘

2022-08-17 Thread pietroppeter
Great job Hugo! πŸ‘πŸ‘πŸ‘ Looking forward to use it! ✨