Regex
(w*b)*?|(?<=").*(?=")$
I tried Zig couldn't even get it to compile anything without errors popping
up all over says it all
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)
Excellent :-)
Probably because there is not a windows version :-)
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
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 definitely
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 i
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 Inse
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 s
> 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 bi
> 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! :-)
Keep them coming, its interesting to see what others are using.
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.
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?
That's cool... I don't like beautifiers myself, prefer to leave the code as I
have written it :-)
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
Emacs slows down when you have long lines so not just with Nim.
I am using version 25.1
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
> 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 counti
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 th
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?
Thanks, but as stated in my first comment... I don't want to go down the route
of using streams etc.
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 it
Thanks Stefan, that will definitely come in useful as well.
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
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 bet
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 :-)
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!! :-)
在中国,每个人都需要使用Nim!
在中國,每個人都需要使用Nim!
:-)
One is a string and the other is a constant, so when its compiled I (think) the
constant will be converted to the colors value. I guess what is needed is a way
to convert the string into a constant on the fly, then you would only need the
string in the list. There must be a way to do that?
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
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.
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 wil
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 an
wFontDialog tested, and its brilliant keep up the great work and don't
forget the Print Dialog ;-)
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.
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.
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 yo
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.
Great news, keep up the good work, thanks
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.
42 matches
Mail list logo