Re: Split on whitespace except for between quotes

2019-09-10 Thread Neil_H
Regex (w*b)*?|(?<=").*(?=")$

Re: Came across a video talking about NIM

2019-08-30 Thread Neil_H
I tried Zig couldn't even get it to compile anything without errors popping up all over says it all

Re: Linters in Emacs

2019-08-30 Thread Neil_H
I couldn't get any Nim linter to work in Emacs (doesn't stop me prefering Emacs though), and I just have this in my init.el for Flycheck: (require 'nim-mode) (require 'flycheck-nim)

Re: wNim - Nim's Windows GUI Framework

2019-08-11 Thread Neil_H
Excellent :-)

Re: What text editor are you using for Nim?

2019-08-09 Thread Neil_H
Probably because there is not a windows version :-)

Re: What text editor are you using for Nim?

2019-08-08 Thread Neil_H
Wasn't Vim the name of some detergent at one time? My Emacs takes about 20 seconds to start up but when it does, its amazing. better than detergent anyway ;-) Hehehe

Re: What text editor are you using for Nim?

2019-08-03 Thread Neil_H
Unfortunately Kakoune is not available for Windows so that's not an option for many users. As for modal editors like vi being faster than Emacs...maybe, once you are in the right mode... but having to check what mode you are in all the time (even if you put mode changes on keys) will

Re: What text editor are you using for Nim?

2019-08-03 Thread Neil_H
Yep, but I can also map Ctrl-x Ctrl-s to just Ctrl-s in Emacs if I wanted... but the default is fast enough... and Ctrl-s is mapped to search (another common editing task) anyway. And Emacs has macros that can be mapped to key strokes as well, so I cant see any Vim advantage there. Emacs Lisp

Re: What text editor are you using for Nim?

2019-08-03 Thread Neil_H
Here is an example of Vim v Emacs. Using default keys for both editors... Saving the current file. something we do quite often In Emacs I simply keep one finger on the Ctrl key and then press x followed by s... file saved continue editing text In Vim I have to press Esc to come out of

Re: What text editor are you using for Nim?

2019-08-03 Thread Neil_H
As I said at start of this thread ive been using Emacs for the past few months and starting to get use to it... and ive just re-installed Vim to have another look... and No, I still don't like this... press Esc then press I for insert press Esc again blah blahcrazy... sometimes you

Re: What text editor are you using for Nim?

2019-08-03 Thread Neil_H
> I tried textadept but the autocompletion feature seems a litte bit buggy; > notepad++ works fine but minimalistic; the intellij plugin seems not to be > maintained so I still stick with vscode… I tried Textadept myself a while back and didn't like it because as far as I know it was only 32

Re: What text editor are you using for Nim?

2019-08-02 Thread Neil_H
> I used to use Vim, but @leorize made me change to nvim because he is still > refusing to port his excellent nim.nvim plugin to vim8. (hint! hint!) hahaha... that's definitely a good enough reason to stay with nvim! :-)

Re: What text editor are you using for Nim?

2019-08-02 Thread Neil_H
Keep them coming, its interesting to see what others are using.

Re: What text editor are you using for Nim?

2019-08-02 Thread Neil_H
I did try VS Code, and I didn't like the JSON customisation files but mainly I don't like its by Microsoft, because what do Microsoft do they update and change everything and usually every week... not good if your trying to get used to one editor.

Re: What text editor are you using for Nim?

2019-08-02 Thread Neil_H
Why, after using nimpretty longlines.nim do some of your lines have the extra element ..."adsf" tagged onto the end the end of the array?

Re: What text editor are you using for Nim?

2019-08-02 Thread Neil_H
That's cool... I don't like beautifiers myself, prefer to leave the code as I have written it :-)

Re: What text editor are you using for Nim?

2019-08-02 Thread Neil_H
I am reluctant to upgrade at the moment because I am using a lot of packages plus my own customizations. And I don't think the slowness with scrolling with long lines would have been fixed anyway, so no gains by upgrading. Try emacs with lines like this, I also have one or two even longer

Re: What text editor are you using for Nim?

2019-08-02 Thread Neil_H
Emacs slows down when you have long lines so not just with Nim. I am using version 25.1

What text editor are you using for Nim?

2019-08-02 Thread Neil_H
I don't wanna start any text editor wars here, but just wondered what everyone else was using for writing Nim? And do certain editors offer better features than others, not just syntax highlighting but things like debugging support etc. I'm using Emacs myself, and even though I find Emacs slow

Re: What do you think about the programming language NIM?

2019-07-31 Thread Neil_H
> Of course Python being taught in schools and universities helps its > popularity, but I don't think at all it's the only or even main reason for > the popularity. The other reason of course is around the time python was introduced the main languages being used were C, C++ and Java (not

Re: Read lines from file thats in a variable

2019-07-31 Thread Neil_H
Because I have Regex already done that will only work on the whole file. And I am going to use the splitLines iterator, but the file will also be in memory at the same time, in this day an age of large amounts of ram, and since I will only be dealing with certain types of source files I don't

Re: Nim VS The World (CoffeeScript/Boo/PureBasic/C#/ES2018/Python)

2019-07-31 Thread Neil_H
I wrote bigger programs than those in MaxScript for 3D Studio Max :-) As for Pascal, well that was just an example, there are many others out there.Liberty Basic, Free Basic, Scala, Clojure, Steel Bank Common Lisp, SmallTalk, Erlang…….need I go on?

Re: Read lines from file thats in a variable

2019-07-31 Thread Neil_H
Thanks, but as stated in my first comment... I don't want to go down the route of using streams etc.

Re: What do you think about the programming language NIM?

2019-07-31 Thread Neil_H
I like Nim for all the reasons given here... for me personally, comparing with other languages... Python, I started to learn Python and found it quite easy to pick up, however I decided that its growing way to big as a language, too many people are changing it too much, and for me on Windows

Re: Read lines from file thats in a variable

2019-07-26 Thread Neil_H
Thanks Stefan, that will definitely come in useful as well.

Re: Read lines from file thats in a variable

2019-07-26 Thread Neil_H
That will do it, thanks. The only think that concerns me is writing the lines back to memory after ive edited them in some way, like a Regex routine does when it goes through the whole file I guess I will have to deal with that when I come to it. Cheers

Read lines from file thats in a variable

2019-07-26 Thread Neil_H
Okay, so I read in a file like this: var testFileAll = readFile(testFilePath) And now I want to do some work on each line, yet this doesn't work: for line in lines(testFileAll): echo line So is there no lines procedure for a file that's been read in? I really don't want to have to copy

Re: Nim vs V language

2019-07-25 Thread Neil_H
I did use assembler on the commodore 64 a long time ago producing 6502 machine code, but for now ill stick with Nim but maybe switch to Pascal (I tried Python, Perl, Rust, Fortran, D Language) if Nim cannot do what I need. Thank you for your input :-)

Re: Nim vs V language

2019-07-24 Thread Neil_H
Vlang? Does the V stand for Vile? ;-) AnywayJeez what language next...cos we have... Golang, DLang, VLang…. hows about BamaLang, then we'd just need the Ding Dong language and we'd have (yes you guessed without regex)…. Bamalang a Ding Dong!! :-)

Re: How to Maintain a Nim Chinese Community

2019-07-24 Thread Neil_H
在中国,每个人都需要使用Nim! 在中國,每個人都需要使用Nim! :-)

Re: Nim VS The World (CoffeeScript/Boo/PureBasic/C#/ES2018/Python)

2019-07-20 Thread Neil_H
PureBasic lacks many features (some of which I have mentioned here) that considering how long its been going should be included, it maybe okay for small apps but how many big applications have been produced with it? It kinda reminds me of a AutoIt but with a GUI designer...but unlike AutoIt and

Re: wNim - Nim's Windows GUI Framework

2019-07-20 Thread Neil_H
That's cool, yep add it to the examples I think actually seeing the colors visually (why I wrote it) will always be better than just seeing the color as text.

Re: wNim - Nim's Windows GUI Framework

2019-07-19 Thread Neil_H
A little app to display wNim commonly used colors…. forgive any bad code, I only started learning Nim a month back so feel free to change it, make it better etc :-) # Displays a window with all the commonly used wColor constants # Its only been designed for full screen (1920 x 1080) use, it

PCRE Version

2019-07-18 Thread Neil_H
I am trying to find out what version of PCRE Nim uses with Import re? I am using a 64 bit version of Nim on windows and have pcre64.dll in my bin folder, but right clicking on it and going...Properties>Details doesn't tell me anything? The only .dll that does give me any details is pcre3.dll

Re: wNim - Nim's Windows GUI Framework

2019-07-17 Thread Neil_H
wFontDialog tested, and its brilliant keep up the great work and don't forget the Print Dialog ;-)

Re: Nim VS The World (CoffeeScript/Boo/PureBasic/C#/ES2018/Python)

2019-07-16 Thread Neil_H
I didn't want to introduce more complexity by using XML (which is a pile of crap and always was) or JSON (which will hopefully go the same way as XML because its just as bad) just to put some strings into an array. Simple things like that should be built into the language.

Re: Source Code Protection

2019-07-16 Thread Neil_H
I reckon it depends on what you are trying to hide? The source code itself or some routine that's running at the same time as your binary? The only way to fully guarantee some source code protection is to obfuscate it before you compile.

Re: Nim VS The World (CoffeeScript/Boo/PureBasic/C#/ES2018/Python)

2019-07-15 Thread Neil_H
Its quite a while since I used PureBasic so it was probably updated since then, however I also found it lacking in other areas, for example, it had a Data command for storing strings etc in your source file, however there wasn't a way to find out how many items were in the data section before

Re: Nim VS The World (CoffeeScript/Boo/PureBasic/C#/ES2018/Python)

2019-07-15 Thread Neil_H
I tried PureBasic for a while until I came across the fact it did not have dynamic arrays I did find a .dll (cannot remember its name) that solved that but unfortunately it made the .exe start up painfully slow.

Re: wNim - Nim's Windows GUI Framework

2019-07-14 Thread Neil_H
Great news, keep up the good work, thanks

Re: wNim - Nim's Windows GUI Framework

2019-07-14 Thread Neil_H
Any chance we will get a dialog to pick Fonts and possibly a Print dialog? Both of which are standard windows dialogs without both of these it wont be really possible to create good windows applications.