Sublime Text user experience

2020-10-30 Thread ElAfalw
Interesting topic. I am using Sublime myself. What are you guys using?

Handle missing library at runtime?

2020-10-30 Thread ElAfalw
Currently, I'm making use of `db_mysql`, which means that there must already be a `MySQL` driver installed. If MySQL is there, the program compiles fine and runs fine. If MySQL is not installed, the program still compiles fine but throws an error (that's on Mac): could not load:

Sublime Text user experience

2020-10-30 Thread moigagoo
I use ST with nimlsp and it works great. There's currently only one issue I find critical, it's reported and waiting to be fixed (it's something to do with Windows paths, nothing extraordinary).

What Nim projects are you working on?

2020-10-30 Thread Niminem
I've starred just about every one of you smart bastards repos. Keep killing it out there

Nim videos and tutorials survey

2020-10-30 Thread Niminem
Appreciate all the feedback guys. I'll make the YT channel tonight and drop the link here. Will be starting with Macros because they're fun as hell ; )

Sublime Text user experience

2020-10-30 Thread slonik_az
> Another interesting option is textadept, in part because it uses the same > plugins a well known and well liked Mac editor uses. Plus iirc there also is > a terminal version. Moreover, there is already a nim plugin for textadept, albeit not updated since late 2018

What Nim projects are you working on?

2020-10-30 Thread mrhdias
No, I don't have any benchmarks yet. Now, my main goal is to upload and download big video files (between 20Mb and 200Mb) with a small memory footprint. The videos are product demos for e-commerce sites. But in the future I will make the comparison!

What Nim projects are you working on?

2020-10-30 Thread jasonfi
I know the GitHub page says that FastKiss is still in development, but do you have any benchmarks yet? Comparing this new framework to Jester would be interesting.

What Nim projects are you working on?

2020-10-30 Thread mrhdias
I am currently working on another web framework. The [FastKiss](https://github.com/mrhdias/fastkiss) is a flexible Nim's FastCGI Web Framework. All most things work fine. Tested with Nginx and Apache. [Working Examples](https://github.com/mrhdias/fastkiss/tree/master/examples).

Nim videos and tutorials survey

2020-10-30 Thread adokitkat
Nim macros operate on Abstract Syntax Tree level and are integrated into the language, unlike C pre processor which is just replacing text. They are much more powerful - you can generate code, modify the AST tree directly, change how Nim behaves, etc. See: ,

Sublime Text user experience

2020-10-30 Thread AmjadBHD
This plugin just provides the syntax (grammar), indentation, comments and symbol rules, no python logic included. nimlsp should be used alongside this plugin.

Neural Networks From Scratch in Nim

2020-10-30 Thread Niminem
Hey guys, I'm contributing to Sentdex's Neural Network From Scratch repo for Nim. I thought some of you may be interested. While I wait for him to accept the PR I'll dropping my fork here: I started learning how to program using Python from Sentdex, a really

Sublime Text user experience

2020-10-30 Thread AmjadBHD
> No wonder that Sublime is little used as it has no current and good Nim > support. I bet that once it supports Nim about as well as VSC it'll find > quick uptake. What's missing is a good syntax support as for LSP support, ST's [LSP client](https://github.com/sublimelsp/LSP) is actively maint

Sublime Text user experience

2020-10-30 Thread zetashift
What's wrong with nimlsp and Sublime? I'm not a Sublime user, but wouldn't it be better/easier to improve nimlsp instead of creating another plugin?

Sublime Text user experience

2020-10-30 Thread moerm
Hint: I didn't even really read your post because whenever certain "red flags" appear (like 'rust', 'go', 'xml') I immediately loose interest and switch off. If however you were to create reasonably good support for Nim in sublime (in C, lua, or python iirc) I'd volunteer to serve as lab rat _(f

Sublime Text user experience

2020-10-30 Thread moerm
No wonder that Sublime is little used _as it has no current and good Nim support_. I bet that once it supports Nim about as well as VSC it'll find quick uptake. @AmjadBHD I am very interested in seeing more editors with support for Nim, in particular Sublime Text which, unlike VSC, isn't a blo

Sublime Text user experience

2020-10-30 Thread Yardanico
I wouldn't say that Sublime has much better responsiveness than VSCode, but okay ;) -

Sublime Text user experience

2020-10-30 Thread AmjadBHD
It's not about ram it's about speed and responsiveness. As for popularity all editors lost popularity to the multi-million-dollar-company-driven VSCode that M$ provides it for free just because it loves developpers. Anyway this is not the subject of the thread.

Sublime Text user experience

2020-10-30 Thread Yardanico
I didn't say that "it isn't worth", I just said that few people use SublimeText for Nim and that NimLime unmaintained for a long time

Sublime Text user experience

2020-10-30 Thread AmjadBHD
Just to add a note there's an [extension](https://github.com/BenjaminSchaaf/sbnf) (rust crate) made by one of Sublime text's core devs that creates an ST4077+ compatible sublime syntax file from a BNF like grammar. That + should make it eas

Sublime Text user experience

2020-10-30 Thread AmjadBHD
> and sublimetext is losing popularity in general > and RAM usage isn't that > much smaller than with VSCode really, sublimetext is like at least ~300mb ram Pardon but what I understood is "it's not worth it"

Sublime Text user experience

2020-10-30 Thread AmjadBHD
Hello, I started this thread to discuss improving the sublime text user experience for Nim developpers. For now the only plugin that provides syntax highlighting for sublime text is the the apparently unmaintained [Nimlime](https://packagecontrol.io/packages/NimLime) Which uses the old `tmLangu

What is Kernel32?

2020-10-30 Thread michy
Yes, a @Ward, it is a good habit to treat the source code as a source and representation of knowledge rather than to be tempted to over-clean it to something 'just working'.

Nim videos and tutorials survey

2020-10-30 Thread torarinvik
> I've got generics, templates, macros high on the priority list. What else? Perfect. Else is using GUI frameworks. Btw does Nim have macros in the style of the C Preprocessor?

What Nim projects are you working on?

2020-10-30 Thread torarinvik
This live programming style is just killer. I am seriously hoping in the future sometime there will be programming enviroments that are like Smalltalk just in a 3D format like that. Different modules can interact with eachother ect. Very impressive stuff, and pleasing to the eye.

Nim update failure

2020-10-30 Thread freeflow
Thanks. That worked. Nim 1.4.0 now installed

Overriding ==

2020-10-30 Thread sschwarzer
Araq: > But that happens rarely so the OOP version loses. But what _if_ it happens? ;-) Although the Nim approach is kind of straightforward, I find it relatively verbose and I suppose it won't scale well for many variants in the type. mratsim: > Also called the expression problem. I knew th

Nim update failure

2020-10-30 Thread dom96
You might want to just update your choosenim manually. Just re-download and install the latest release zip.

Nim update failure

2020-10-30 Thread Stefan_Salewski
https://github.com/dom96/choosenim/issues/116

Nim update failure

2020-10-30 Thread freeflow
Ooops. Mistyped when getting output for the post. try the example below C:\WINDOWS\system32>choosenim update self Updating choosenim [# ] 0mb 4kb/s httpclient.nim(1053) downloadFile Error: unhandled exception: 40

Nim update failure

2020-10-30 Thread jrfondren
That's funny, and a bug because it might confuse someone, but it's a misuse of choosenim and should result in --help output and an error. Compare $ choosenim update self Updating choosenim [##] 100.0% 0kb/s Info: Up

Nim update failure

2020-10-30 Thread freeflow
I got the following when trying to update to Nim 1.4 C:WINDOWSsystem32>choosenim versions --installed Channel: stable Installed: * 1.2.0 (latest) 1.0.6 1.0.4 C:WINDOWSsystem32>choosenim self update --verbose Downloading Nim 0.7.4 from nim-lang.org [# ] 0mb 0kb/s Info:

Is there a way for case objects to have cases share fields?

2020-10-30 Thread shirleyquirk
>From the chat about that RFC: Araq:

Get all procs in given module

2020-10-30 Thread cblake
In [cligen.macUt](https://github.com/c-blake/cligen/blob/master/cligen/macUt.nim), I have the caller pass a symbol to any `proc` in the module to a `macro docFromModuleOf*(sym: typed{nkSym})`. Then that can use `lineInfo` to get a pathname and then `staticRead` can slurp the whole file into a `

handmade hero in nim ( warning: noob)

2020-10-30 Thread amalek
> once you require shaders, you need to add something like GLAD and let SDL2 > handle the windowing and inputs (...) only. Not necessarily. If you use [Vladar4's excellent SDL2 wrapper](https://github.com/Vladar4/sdl2_nim) you can use [SDL GPU](https://vladar4.github.io/sdl2_nim/sdl_gpu.html) t

handmade hero in nim ( warning: noob)

2020-10-30 Thread enthus1ast
no i just googled a good example for what shaders are a good fit ;)

handmade hero in nim ( warning: noob)

2020-10-30 Thread 19
That looks very cool! Did you make it? I really like the environment! Yeah you can actually go very far with the default SDL2 renderer but once you require shaders, you need to add something like GLAD and let SDL2 handle the windowing and inputs (...) only. Btw you can go really far with only a

handmade hero in nim ( warning: noob)

2020-10-30 Thread 19
Wow that is awesome! Thanks for sharing your story. The only reason you were able to go one level deeper was because you had some sort of understanding which i currently lack. Also, I'm quite new to programming in general ( 2-3 years experience ). This exercise is purely for educational purpose

handmade hero in nim ( warning: noob)

2020-10-30 Thread enthus1ast
SDL2 is super mature, for input, audio etc, but keep in mind that (AFAIK) SDL2 does not expose shaders to you, so the SDL2 draw calls are also only for prototyping, (AFAIK) you cannot add shaders to the sprites you draw with SDL2 only to the whole image. So something like this is not possible w

handmade hero in nim ( warning: noob)

2020-10-30 Thread 19
I ain't gonna even attempt to bind that c++ lib into Nim. I'm gonna use Nim+SDL2 for the platform layer instead: /

Overriding ==

2020-10-30 Thread mratsim
> And we can add new operations without touching the existing code. In the OOP > version you can add new subtypes without touching the existing code. But that > happens rarely so the OOP version loses. Also called the expression problem.

Get all procs in given module

2020-10-30 Thread lqdev
Unfortunately no, that's not doable. At least not with existing modules. The `macros` module contains a proc `getImpl` which you _could_ potentially use on a module name. I say _could_ , because actually using it on a module returns a `nil` node. The closest I was able to get to this was to cre

handmade hero in nim ( warning: noob)

2020-10-30 Thread enthus1ast
Yes i can understand that this is mostly a learning experience (which is good :) ) But then keep in mind that when you not use graphic api to draw stuff with shaders/graphic api draw calls, that you cannot do a lot of stuff (i guess most of the stuff you want to have actually ;) ) what i mean i

Get all procs in given module

2020-10-30 Thread ElAfalw
Ok, so I've been trying to get _all_ procs defined in a given module. Let's say in `myModule.nim` we have `proc proc1` and `proc proc2`. How can I do something like this (at compile-time): const myProcs = getProcsIn("myModule") Run and `myProcs` containing `[proc1, pr

Mysterious crashed with SIGSEGV

2020-10-30 Thread KnorrFG
Alright, will do 👍