GUI app with nim

2023-06-25 Thread alexeypetrushin
> since we have to know both javascript and Nimlang if we need to coin a some > complex GUI interface Same for C UI, you hardly will be able to build complex GUI without knowing layout managers, event handlers, styling etc. pretty well. And also fun time debugging lots of tricky bugs, as you go

thoughts on a backend target for bun?

2023-06-25 Thread Araq
> async red/blue functions That "problem" is completely overblown and comes up all the time anyway in other contexts. Other programming languages have a distinction between "pure" functions and impure ones, some environments have the notion of "save to call in a signal handler". You can call a

thoughts on a backend target for bun?

2023-06-25 Thread alexeypetrushin
> is there any asyncio implementation where this isn't the case? Yes, node.js has fibers library, that turns async into fiber - like thing. It worked well. In theory, it has flaw as you can't say looking at JS code with fibers if it's atomic or not, as it could have call to fiber, and unlike asy

GUI app with nim

2023-06-25 Thread PMunch
Did you give wxNim a try yet? It's cross platform, uses native widgets, and very mature in terms of widget collection. I tend to use either that, or Gtk which is very mature and nowadays looks pretty good on other platforms than Linux.

GUI app with nim

2023-06-25 Thread oyster
as for any suggestion on 'GUI based on web', it seems to be a nice solution at first. However I think it is totally a fraud since we have to know both javascript and Nimlang if we need to coin a some complex GUI interface with more data transforming between javascript and Nimlang

GUI app with nim

2023-06-25 Thread FP
for plotting it could be possible to do some wrapper to Dislin or Plplot I though about QtChart but it is quite expensive

The Algorithms In Nim

2023-06-25 Thread FP
That's cool stuff. Nim versions do not appear in the main pages whereas there is a separated Algorithm only for Nim, I am missing something or what (even Zig versions are available sometimes)? Why doing this whereas there is something very very similar (Rosetta code

GUI app with nim

2023-06-25 Thread FP
You're totally right, that's why I think there is really a space for any great language (and Nim is one) to fill this missing space. Nowadays Linux is much more present in companies than in the past. The language that will do it could be very, very attractive for many people.

GUI app with nim

2023-06-25 Thread FP
I don't want to use web base API such as Electron, because the result are too big (memory, CPU) for the result. Not very to deploy, I prefer native apps.

GUI app with nim

2023-06-25 Thread FP
NiGui is very nice but too far to be used in a commercial app, there are many widgets missing.

thoughts on a backend target for bun?

2023-06-25 Thread jasonfi
It has its faults, but there's a lot of NPMs that make life easier. But integration with Nim could seriously boost server-side performance.

GUI app with nim

2023-06-25 Thread oyster
I don't think there is such a cross-platform GUI lib with plotting ability for Nimlang. People has invented/bound too many GUI libs to prove that he is capable of programming in Nimlang. However some of the lib is abandoned, some of the lib is far from mature. On windows, you can use

GUI app with nim

2023-06-25 Thread elcritch
Oh can you tell us more? Does it support Linux?

Why slight change to macro breaks it?

2023-06-25 Thread alexeypetrushin
Thanks, I also found that `a.repr` fixes the issue. It prints `Sym "v"` for `capt2` and `HiddenDeref(Sym "v")` for `capt1`. This is Madness

Why slight change to macro breaks it?

2023-06-25 Thread solo989
add echo treeRepr a to macro capt1*(a: typed, body: untyped): untyped = echo treeRepr a Run and you will find out why. Typed code is nowhere near as predictable as untyped code. I would suggest doing something like this macro capt1Impl*(aTyped: ty

GUI app with nim

2023-06-25 Thread jmgomez
UE has a pretty mature cross platform UI framework and Nim happens to have one of the best plugins for UE :-P I really need to do an UI template project at some point. It has a built in designer, gpu support. ~5 seconds comp times for native Nim. Instant rebuild time for NimScript. Full bind

Why slight change to macro breaks it?

2023-06-25 Thread alexeypetrushin
Why this template doesn't work? It fails with the error `Error: node lacks field: strVal`, using `a.repr` instead of `a.str_val` fixes it. import std/macros macro capt1*(a: typed, body: untyped): untyped = let a_name = ident(a.str_val); let a_type = get_type_inst a

GUI app with nim

2023-06-25 Thread rockcavera
Nobody has yet cited [NiGui](https://github.com/simonkrauter/NiGui), which, for me, is the easiest interface and supports both Windows and Linux. I don't know how support for macOS is going. However, it leaves something to be desired in some respects. [UIng](https://github.com/neroist/uing) I c

GUI app with nim

2023-06-25 Thread SpotlightKid
> IMHO, there is a huge gap to do this kind of cross platform app apart from > java (bad looking) and C++/Qt (not free for commercial). To be fair, it's the same across all languages.

thoughts on a backend target for bun?

2023-06-25 Thread SpotlightKid
> async red/blue functions I'm genuinely interested: is there any asyncio implementation where this isn't the case?

GUI app with nim

2023-06-25 Thread alexeypetrushin
Good luck with that :)

GUI app with nim

2023-06-25 Thread ElegantBeef
> what more do you want? Not to use webui.

Introduction to Applied Linear Algebra series of blog posts

2023-06-25 Thread namisboss
I liked reading it, but I noticed two minor typos. Planetis caught the first one (where both instances of `Output -> 2` are incorrect), but there was another one in the comments a bit later. # Because we know we want to support vector addition for vectors # of *bot* integers, an

GUI app with nim

2023-06-25 Thread FP
Thanks, I will give a try to both.

thoughts on a backend target for bun?

2023-06-25 Thread juancarlospaco
Feel free to contribute Bun API to It is compatible with NodeJS anyway, so is DenoJS too AFAIK.

GUI app with nim

2023-06-25 Thread alexeypetrushin
My old project, something similar to Python Notebooks [couple screenshots, charts, data table](https://imgur.com/a/2ckhaNx) and [video](https://www.youtube.com/watch?v=osTIKicld74). In these examples calculations were made with Nim integrated with UI made with Electron, Svelte and Vega. Current

GUI app with nim

2023-06-25 Thread FP
Hi, I'd like to code a cross platform GUI app (at least Windows/Linux) to do an advanced plotting system of data which are in sqlite databases. I had a look at the list of available GUI packages for nim. I have tested the ones that seems the most mature for the type of work required. It was a b

GUI app with nim

2023-06-25 Thread PMunch
You might want to check out [wxNim](https://github.com/PMunch/wxnim) which wraps WxWidgets and adds some nice macro magic on top. For wrapping IUP I would recommend trying out Futhark

GUI app with nim

2023-06-25 Thread ElegantBeef
Yet another UI library to consider is

thoughts on a backend target for bun?

2023-06-25 Thread alexeypetrushin
> Node.js is great for web frameworks No it's not. It may look great only because other options are terrible (Java) or are not fast (Ruby, Python, PHP). Problems of Node.JS - no session error isolation, no context (threadvar or fibervar etc.), async error mess, async red/blue functions, very ha

Introduction to Applied Linear Algebra series of blog posts

2023-06-25 Thread xigoi
Awesome idea and execution! In the first code example, you didn't explain why `array[0..1, float]` is the same thing as `array[2, float]`, which might be confusing. wierd -> weird

Introduction to Applied Linear Algebra series of blog posts

2023-06-25 Thread planetis
Great article can't wait for the next! Small mistake here: white = @[255, 255, 255] # Print out its length echo white.len() # Output -> 2 Run

thoughts on a backend target for bun?

2023-06-25 Thread jasonfi
Thanks for the reply, I'll get around to testing this tomorrow.

Nim partners with Status.im

2023-06-25 Thread StLa
Status.im is awesome. Are they also trying to make money? I could not find any information about this.

thoughts on a backend target for bun?

2023-06-25 Thread georgelemon
Yep, I need a cool logo (and full examples) > Does Denim provide anyway to automatically build a binding.gyp file Yes, Denim is a hybrid package. Check `~/.nimble/denim` after installation. Simply `denim -h` DENIM 🔥 Native Node/BunJS addons powered by Nim build --rel

Does Nim has the same features that D has when interfacing to Objective-C?

2023-06-25 Thread Araq
While I appreciate that you decided on Nim, I will repeat what others said: Don't think in terms of "no GC vs GC", it's useless, especially for Nim which offers kind of a continuum. "Oh, low level, I cannot use a GC here!" \- "Maybe, maybe not. I bet you can and you're simply repeating bullshit

Does Nim has the same features that D has when interfacing to Objective-C?

2023-06-25 Thread Calonger
Sorry but this thinking always dissappoint .