NIM IDE

2021-10-26 Thread Araq
> Trust me when I say: it's better to spend time perfecting a VS Code extension > rather than a standalone IDE. I wrote "NimEdit" and have to agree. However, I'm still proud of how far I got with what is basically `drawText` and `putPixel`. :-)

How to prevent return value from been`=copy`ed?

2021-10-26 Thread shirleyquirk
block: proc byLet(v:int): X = result = X(v) let x{.byaddr.} = result discard byLet(1) block: proc byVar(v:int): X = result = X(v) var x{.byaddr.} = result discard byVar(2) block: proc byCast

How to prevent return value from been`=copy`ed?

2021-10-26 Thread Dabod
I see, will do it. @gemath thank you for the advice.

Metaprogramming in Nim #1 Introduction

2021-10-26 Thread Stefan_Salewski
> would you listen? I always do. Of course you are much brighter than me, but that does not imply that I will always follow you suggestions :-)

Metaprogramming in Nim #1 Introduction

2021-10-26 Thread Araq
To turn this into a productive discussion: If I create issues that basically amount to "just delete this whole paragraph, it's only demotivating your readers from keeping reading", would you listen?

Setting up a Nim foundation

2021-10-26 Thread judfilm
Hello, Thank-you so much to all the devs for making Nim so great. A foundation sounds like a great idea for Nim and I would like to be involved. LibreOffice has the "The Document Foundation" \- / charitable Foundation under German law (gemeinnützige rechtsfä

How to prevent return value from been`=copy`ed?

2021-10-26 Thread Araq
Sorry, I've only skimmed your examples, that orc currently still sometimes does too many copies is simply a bug, please report it on github.

How to prevent return value from been`=copy`ed?

2021-10-26 Thread gemath
[Automatic memory management](https://nim-lang.org/docs/destructors.html) is one step further now. `owned` doesn't do anything in the example, deleting it gives the same result.

NIM IDE

2021-10-26 Thread quantimnot
There are two Nim extensions for VSCode. One written in typescript and not frequently updated, and one written in Nim with frequent updates. I highly recommend using and contributing to the pure Nim one: . You can also use the codelldb plugin for debugging. T

NIM IDE

2021-10-26 Thread Yardanico
We do have a GDB pretty-printer though -

Metaprogramming in Nim #1 Introduction

2021-10-26 Thread Stefan_Salewski
> Oh but of course your book is good advertisement My books was never intended to do Nim advertisement, although some people told me that I would praise Nim too much. The book had the intention to allow kids and unskilled people to start with Nim programming on its own. Currently there seems to

WTF ?! basic computations are faster in py3 than nim1.6 ?!

2021-10-26 Thread shirleyquirk
god this nerd-sniped me. github.com/shirleyquirk/sudoku_solver 1011 sudokus in 520ms

Metaprogramming in Nim #1 Introduction

2021-10-26 Thread Araq
> As I told you, better learn some Nim before making the next video. Such > nonsense is really not good advertisement for Nim. Oh but of course your book is good advertisement for Nim -- you never digress into the irrelevant ("Nim's macros are a PITA like learning C++") or make subtle accusatio

One line comprehension equivalence

2021-10-26 Thread SunnyCorleone
I spent some time trying to use an if in a one line collect, if I had tried to compile, the indentation error would have saved me some time but VS Code squiggly line was misleading. The solution was simply wrapping the if in parens. Just in case someone else finds this thread in similar pursuit,

How to prevent return value from been`=copy`ed?

2021-10-26 Thread Dabod
Example code from strformat import `&` type X = distinct int proc `=sink`(p1: var X; p2: X) = echo &"=sink {cast[int](p2)}" proc `=copy`(p1: var X; p2: X) = echo &"=copy {cast[int](p2)}" proc `=destroy`(p: var X) = echo &"=destroy {cast[int](p)}" pro

re or nre. What should i use? What will be supported in future?

2021-10-26 Thread oyster
does donation help in consolidating nim's library? As the title implies, often there are several alternative libraries for one aim, for example, wxnim/iup/etc for cross-platform GUI. These libs take the name, any search will lead to them firstly. However, on the other hand, none of them is compl

Looking for feedback on Nim for Beginners #27 Object Variants

2021-10-26 Thread carterza
I don't think that will be the case unless your presentation / delivery format changes. As I mentioned in my feedback - the issue isn't the content of the lessons / what you're trying to teach it's HOW you're going about teaching it that I find to be uninspiring / boring / difficult to stay tun

Donation matching drive via HN

2021-10-26 Thread rayman22201
Cheers! Good times for Nim <3 50$ USD [https://opencollective.com/nim/donate/success?OrderId=8k03reyd-5agmq5ew-n4gqlbwo-z7j4nxv9&email=rayimber%40gmail.com](https://opencollective.com/nim/donate/success?OrderId=8k03reyd-5agmq5ew-n4gqlbwo-z7j4nxv9&email=rayimber%40gmail.com)

Setting up a Nim foundation

2021-10-26 Thread royneary
I can share a tiny bit of experience about a free software project that organizes itself as an eingetragener Verein (GNUnet e.V.). The Verein is managed through a git repository (. Maybe the documents in there can serve as an inspiration. I used to be a Be

Metaprogramming in Nim #1 Introduction

2021-10-26 Thread Stefan_Salewski
> One of the differences is that the first line of code is a "generic" proc > while the second is NOT. That said the compiler will generate 2 versions of > the same proc, one for "int" and one for "float", while the non-generic proc > will NOT. On a quick glance the generic version is heavier on

Metaprogramming in Nim #1 Introduction

2021-10-26 Thread Araq
> One of the differences is that the first line of code is a "generic" proc > while the second is NOT. No, they are both generic procs and the second is almost a shortcut for the first (the return types are different).

Great to see Nim popularity rising , Top post of /r/programming on reddit now.

2021-10-26 Thread planetis
> Also clear some FUD haters trying to spread. Same old, same old.

Reporting security issues

2021-10-26 Thread Araq
> I know the team is pretty swamped, but I do want to ensure that the bugs I > found get patched before they fall off my radar. Sorry, yes, we've seen the message and will get in touch with you.

Reporting security issues

2021-10-26 Thread riceman
Hope it's reasonable that I'm pinging on this. I sent an email to secur...@nim-lang.org a bit more than a week ago and haven't heard anything on it. I know you guys are pretty swamped, but I do want to ensure that the bugs I found get patched before they fall off my radar. Also, the method I'm

Donation matching drive via HN

2021-10-26 Thread dom96
@Stefan_Salewski the person allowed me to tweet it out so I don't think the "HNers" clause applies anymore.

Donation matching drive via HN

2021-10-26 Thread Stefan_Salewski
I still do not really understand it. From > Any donations from HNers to the Nim project (in any kind of currency) I'll > match for the next 48 hrs up to $500. > > Even made a YC account because you said you would match HNers' donations So I have

NIM IDE

2021-10-26 Thread juancarlospaco
* Last commit yesterday

NIM IDE

2021-10-26 Thread dsrw
According to VSCode is used by > 70% of developers, so a good VSCode plugin seems like the best way to attract new users. Fortunately we already have that. There's also

Looking for feedback on Nim for Beginners #27 Object Variants

2021-10-26 Thread Kiloneie
Well for a lot of my videos yes it's been like reciting existing information, because some topics simply have good enough examples already. The actual words i use to explain the topics and examples, i try my best to simplify them and not reuse them unless i have no better way. On some of my lat

NIM IDE

2021-10-26 Thread ynfle
What are you looking for in an IDE?

NIM IDE

2021-10-26 Thread treeform
As a person who made and used my own editor for many years, I agree with @dom96.

NIM IDE

2021-10-26 Thread SolitudeSF
> So any opinion about that? useless

NIM IDE

2021-10-26 Thread dom96
Nim used to have its own IDE, Aporia: . Trust me when I say: it's better to spend time perfecting a VS Code extension rather than a standalone IDE.

NIM IDE

2021-10-26 Thread robb1e
that would be time and resource expensive and could lead the developer team attention away from nim development, maybe a community solution would be good, if i'm not wrong a nim ide similar to vim already exists

NIM IDE

2021-10-26 Thread Pumpus
Hi Nim guys! In my opinion NIM is one of the best language around. Point. It should have its own IDE. Commercial solution like Embarcadero Delphi offers a free community edition. Also R Studio offers a free edition for R. Are project like Aporia and similar still in development? I write this j

Compiling TO Nim

2021-10-26 Thread enthus1ast
You could have a look at nimja (. ). It is not a full blown language on its own, but it still resembles all parts of a language/compile: Lexing/Tokenizing, Parsing, Code generation. Lexing:

Looking for feedback on Nim for Beginners #27 Object Variants

2021-10-26 Thread carterza
I've given you feedback multiple times on your videos - yet you keep doing the exact same thing over and over again. Maybe it's working for you - but it continues to be the reason I will never watch your videos. Your videos play like you are reciting snippets from Wikipedia articles / the Nim m

TechEmpower Benchmarks

2021-10-26 Thread Jaap
apparently a cpu bug workaround caused a big dip in the benchmarks between round 18 and 20

TechEmpower Benchmarks

2021-10-26 Thread kobi
this brings the point of running & benchmarking the Nim test suite every build, and noticing regressions in performance.

Looking for feedback on Nim for Beginners #27 Object Variants

2021-10-26 Thread kobi
Yes, for example json module is built like that. when you want a sequence of objects, but don't want the complicated inheritance part. I care less about the speed, things are already quite fast, and more about the use cases it enables. the style of programming, and ease of modifying and changing

Nim receives $100k in Bitcoin donations

2021-10-26 Thread jorjun_arch
What's the Nim story with gitcoin? Possible avenue for future funding?

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-10-26 Thread adokitkat
Hi. That's what I was recently trying to do. I made a static lib in Nim and tried to link it with ESP32's ESP-IDF as a component. However it was not full-on success. I managed to compile and link it together, but float and double (int worked) operations were not behaving correctly - I tested th

Donation matching drive via HN

2021-10-26 Thread Stefan_Salewski
Just donated 350 GBP via PayPal. Please let me know if money arrived, as I had some trouble with PayPal. (Too long not used I guess.)

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-10-26 Thread foldl
Personally, I don't like this approach. My preferred way is: 1\. Write part of the software in Nim; 2\. Link the generated files with existing C code.

Donation matching drive via HN

2021-10-26 Thread rb3
Added a 5 GBP monthly donation

Metaprogramming in Nim #1 Introduction

2021-10-26 Thread Kiloneie
I think i have had the intention of mentioning that i provide the code link and the video's script link at the beginning but then i forgot about it, so it's still being only mentioned at the end. The script is usually about 70-95% the same as what you see in the video(sometimes i improvise), i

Looking for feedback on Nim for Beginners #27 Object Variants

2021-10-26 Thread Kiloneie
Wdym not you D: ? Did you give feedback before that i ignored ? I can't remember. Anyways good points from all of you, i will make some better examples and make an example and talk about the performance benefits and in overall make a comparison to OOP design.

re or nre. What should i use? What will be supported in future?

2021-10-26 Thread Araq
Trollish remarks have been removed.

re or nre. What should i use? What will be supported in future?

2021-10-26 Thread gemath
Yes, it's bad. Like so many things about the language. No environment for high-quality humans like you. Too bad to lose such a world-class necro-flamer, but we will have to get over it somehow.

Metaprogramming in Nim #1 Introduction

2021-10-26 Thread Stefan_Salewski
> written is easier to track while learning. I hope some of you noticed that the kids book has a section for macros and meta programming as well since a few months. Not really new stuff, with some citations of Mr. Arne Doering, but I still have the impression that it is better than all the othe

Compiling TO Nim

2021-10-26 Thread PMunch
If you just want to hack around for fun you can do something like this: import macros macro parser(tokens: static seq[string]): string = var tokens_left = tokens var test_node = newCall("echo") for token in tokens: test_node.add newL

Donation matching drive via HN

2021-10-26 Thread amedeo
Donated £3.00 via paypal