How to implement a generic arbitrary node-graph with unknown number of generic types?

2024-04-27 Thread Araq
Idea: Ultimately an "observer" is a callback so use closures or `std / tasks` for type erasure.

How to implement a generic arbitrary node-graph with unknown number of generic types?

2024-04-27 Thread Isofruit
Its good to know that the TS approach appears to be mostly a stopgap measure. However, the problem with RxJava is that it relies on generic methods, which I recall nim having issues with, so that approach is kind of dead in the water.

Help storing *reference* instead of copy in an object constructor.

2024-04-27 Thread jrfondren
1. pointer in Thing, var param (drawback: you have to make sure that the pointer stays valid): type Thing = object list: ptr seq[int] proc initThing(list: var seq[int]): Thing = result.list = list.addr Run 2. ref original

Help storing *reference* instead of copy in an object constructor.

2024-04-27 Thread ElegantBeef
Nim has no mechanism to safely reference a value type, as such you need to raise the `original` to a `ref seq[int]` like so var original = new seq[int] original[] = @[1, 2, 3, 4, 5] type Thing = object # I would like `list` to be set to a *reference *of `or

Help storing *reference* instead of copy in an object constructor.

2024-04-27 Thread DMisener
How can I change **initThing** so that it stores in **list** a _reference_ to **original** so that when **original** is changed, **list** reflects the change. The current code just makes a copy :-( var original = @[1, 2, 3, 4, 5] type Thing = object # I would

Compilation Problem: "Error: cannot open C:\..\..\..\lib\system.nim"

2024-04-27 Thread dwhall256
Does this seem related?

Compilation Problem: "Error: cannot open C:\..\..\..\lib\system.nim"

2024-04-27 Thread Phyton
Windows Defender is disabled, but this post did lead me down the right rabbit-hole, however. Thanks for that! :) I figured out my VPN is doing it. x.x Thank you. I'm now going to try to build my "Hello, World!" app.

How to implement a generic arbitrary node-graph with unknown number of generic types?

2024-04-27 Thread brainproxy
Related: Looking at docs for other Rx implementations for statically typed languages, e.g. RxJava and RxSwift, `pipe` doesn't seem to be in the picture, but `Transformer` and `compose` are a thing i

Compilation Problem: "Error: cannot open C:\..\..\..\lib\system.nim"

2024-04-27 Thread Phyton
As stated in the subject line of this thread, I'm having trouble with compiling. Upon receiving this error, I browsed my nim-2.0.4_x64 folder only to discover that I have no lib directory. How do I get this directory? Also, I did notice a separate issue... I'm on Windows 11 and also have had so

How to implement a generic arbitrary node-graph with unknown number of generic types?

2024-04-27 Thread Isofruit
Heyho, I've been playing around with implementing reactivex (or rather expanding an existing lib to more fully implement reactivex), which is a lib to implement reactive programming, aka observables, subjects etc. . This allows you to make values depend on one another via a push instead of a pul

Nim on the go: Smartphone, termux and ... "no" docs.

2024-04-27 Thread planetis
The doc generator has an option to ouput [pdf](https://nim-lang.github.io/Nim/docgen.html#document-types-latex) files. Arch for example, used to generate them by default, but now it only installs the .md files under /usr/share/nim/doc/ . Which is another option I guess if you have a markdown re

Introducing nginwho - An nginx log parser, Cloudflare IP restorer, and untrusted traffic blocker

2024-04-27 Thread thegraynode
Hi all, I've been admiring Nim and have written some programs in it. Recently, we had to tackle a problem at work and decided to go with Nim. That is how **nginwho** came to life and we are gladly opensourcing it. **nginwho** is a lightweight, efficient and extremely fast program offering thre

Nim on the go: Smartphone, termux and ... "no" docs.

2024-04-27 Thread janAkali
You can install [devdocs.io](https://devdocs.io/nim/) as a Progressive Web App in your phone's browser. I've tried it in firefox for Android, but chromium-based browsers should also work. It does work offline, just note that you should "enable" a documentation first and then download it from op

Glycogen Control What Is The True Reality Of This?

2024-04-27 Thread kakaku932
Glycogen Control Australia is a vital source of energy for the body, particularly during periods of increased energy demand, such as during exercise or fasting. This type of complex carbohydrate is stored in the liver and muscles, where it serves as a buffer for glucose, the body's primary sourc

Please review my types: ref object or plain object

2024-04-27 Thread ninovanhooff
I did have terrible performance issues related to the seq being copied when stored as a temp variable in a function scope. Thinking back on it, the problem there might have been that I used let while I should have used var. I suspected as much with the direct result assignment. (hence the commen

Menophix: Read About Product And Benefits, Reviews

2024-04-27 Thread menophixit
What keeps ladies under 30 from going through menopause? They have solid testosterone levels. The body changes over this normally using aromatase enzymes. Converting testosterone to cerebrum-determined estrogen. Consider this bread-production method. By taking care of yeast sugar, carbon dioxide

Please review my types: ref object or plain object

2024-04-27 Thread ninovanhooff
Found a discussion on the return question here: Thanks for the help @Araq

What Is Wealth Brain Code?

2024-04-27 Thread menophixit
The Wealth Brain Code gives strategies for defeating cash issues. It teaches rules that lead to monetary success. Understanding and utilizing these principles can alter your attitude. You'll move toward creating financial well-being and meeting monetary objectives. Center standards include: dev

Nim on the go: Smartphone, termux and ... "no" docs.

2024-04-27 Thread take1234
Oh! That's good news. The package installer of Gentoo Linux just states nothing after the installation was finished. I will check, where the docs has been stored. For unknown reasons to me, I thought the docs were online only. Don't know, what the impression was...may be an dangling pointer or s

Please review my types: ref object or plain object

2024-04-27 Thread Araq
Where you used `ref` and where not seems ok as far as I can tell. However, usually you start with the non-ref version and then only if either performance is bad (copies) or else the logic requires shared mutable state to work properly things are changed to `ref`. `result.headPose = state.riderH