Wishlist: Ideal UI library for Nim

2023-06-28 Thread Araq
> Good example. [...] Nim has plenty of sugar and if you struggle to create a DSL that you would like, it's just you. Months ago I already told you to simply copy Karax's for your purposes but you wouldn't listen, of course.

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-28 Thread Calonger
Pronounced same "glimmer" You not pronounce ?

Wishlist: Ideal UI library for Nim

2023-06-28 Thread Araq
It wasn't my intention to suggest "we need a new UI, from scratch". No, that's not required. It is my intention to unite the efforts under a vision. And as we have seen both at least nimx and Fidget come close. What I don't understand is the objections against "works both in retained and immedia

Wishlist: Ideal UI library for Nim

2023-06-28 Thread alexeypetrushin
> Instead of using a DSL for declaring the GUI it just uses tuples Yes. Good example. That's why "syntax sugar" are important, it's quite vital part allowing to explore new approaches, write flexible and compact code for different domain models.

Twitter Clone in 60 lines of Nim

2023-06-28 Thread alexeypetrushin
Hi, would like to share a major update of the Mono Web Framework: [Twitter Clone in 60 lines of Nim, 7m Video](https://youtu.be/7Owct-njg0s) [Twitter Sources](https://github.com/al6x/nim/blob/main/mono/mono/examples/twitter.nim) Simple and clean code, fluid interactive UI, plain Nim C-runtime n

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-28 Thread basilajith
Within the Discord server, it's Nimmer all the way...

Wishlist: Ideal UI library for Nim

2023-06-28 Thread kobi
I'm sorry to state the obvious for everyone, in my opinion this is a huge task, and we don't really need a gui made from scratch especially for Nim. I applaud the effort of course, but we don't need it. We only need a library that is easy to get started with, non-friction, Nim way. It can simply

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-28 Thread jasonfi
ChatGPT gave a few suggestions: Nimble Ninja NimWizard Nimblefingers Code Nimrod Niminator Nimmaestro NimJedi NimChampion NimCraftsman NimWhiz

Wishlist: Ideal UI library for Nim

2023-06-28 Thread elcritch
Note I really agree with @JohnAD about not trying to do both retained mode and immediate mode, or even a declarative UI layer initially. Here's a list of things I think would be good for a pure Nim UI: 1\. Figure out either async or a good event system upfront * Pretty much _all_ of the widel

Undeclared field - Unrecognized proc

2023-06-28 Thread sls1005
It seems that `HOOKPROC` specifies the calling conversion, so closures cannot be used here. But I don't see how `self` is used in the callback, therefore you could just remove it from the parameter list. Otherwise (if it cannot be removed) you should follow @mashingan's suggestion.

Wishlist: Ideal UI library for Nim

2023-06-28 Thread elcritch
> I agree that fidget looks like a good starting point. But: The core rendering engine is the most advanced I think for a native Nim UI, and I added a number of small improvements in Fidgetty too. Though it's font handling doesn't use the re-written more powerful font handling that pixie now of

Wishlist: Ideal UI library for Nim

2023-06-28 Thread ElegantBeef
It's mainly meant for my game framework, but perhaps some inspiration on some of these problems can be rung out of Instead of using a DSL for declaring the GUI it just uses tuples(This would be a smidgen nicer with object constructor having generic inference).

Wishlist: Ideal UI library for Nim

2023-06-28 Thread alexeypetrushin
Markup should be avoided. With non-nim markup, you won't get type safe event handlers, or a safe way to pass data, inputs, events, bindings, up/down component hierarchy. A problem on that way is a refusal of Nim to improve Nim DSL capabilities. Need to specify things like `auto`, bloated `do` bl

Wishlist: Ideal UI library for Nim

2023-06-28 Thread guaracy
I think that REBOL is a good place to dig Red is using native widgets, but...

Wishlist: Ideal UI library for Nim

2023-06-28 Thread JazzPlayer
> I think we should look into Godot's widget system for inspiration. It > supports theming, looks really nice and has many widgets. Along with the Godot's UI system, I would suggest to take a look at [lvgl](https://lvgl.io/). It is designed for embedded systems but it has a very rich UI system.

Wishlist: Ideal UI library for Nim

2023-06-28 Thread mildred
My 2c on this, I believe that to be able to pull that off, using a native framework (Gtk, Windows API, ...) is required in order to handle the native behaviour of the platform. It's not that complicated to be able to make an UI framework that can draw basic widgets, but once you want unicode, te

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-28 Thread SpotlightKid
We're all just Nimions.

Wishlist: Ideal UI library for Nim

2023-06-28 Thread SpotlightKid
I find that list of requirements or recommendations a lot more sensible then Araqs, where the wo clash.

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-28 Thread SolitudeSF
called by who? show me these people.

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-28 Thread ElegantBeef
Here I thought I was called Beef.

Wishlist: Ideal UI library for Nim

2023-06-28 Thread JohnAD
And, regarding the "targets" in my previous post, text-mode is a different target. So, text-mode Windows is a difference target to GUI Windows. For that mater, Windows, MacOS, and Ubuntu are different targets. Supporting all of them is 2 X 3 = 6 targets. About 20 times as much work. I'm not disc

Why is a Nim enthusiast/programmer called a "Nimmer"?

2023-06-28 Thread basilajith
Isn't it a harder to pronounce? Try both the American and British pronunciations. "You're a Nimmah, innit?" Wouldn't a name like "Nimsta", or "Nimster" be better?

Wishlist: Ideal UI library for Nim

2023-06-28 Thread JohnAD
I've seen attempts at this come-and-go over the last 40 years; I even got involved in some of them. I can give some casual advice if someone wants to try this. 1. Start with a spec; an informal one. This is where you explain to the others why you are going to say "no" a lot to feature request

Wishlist: Ideal UI library for Nim

2023-06-28 Thread Araq
> If you want a programmer designing the interface, sure anything would work. > Just make sure the comp times are low ;) "But! It should be compiled to a DLL so that my build times don't suffer. ;-)" Wow, almost as if I thought a little bit about it before posting. :P

Wishlist: Ideal UI library for Nim

2023-06-28 Thread jmgomez
If you want a programmer designing the interface, sure anything would work. Just make sure the comp times are low ;) Now, if you want someone else to jump in and be able to use templates or style it.. Wouldnt be better to use a known markup lang? I mean, outside Microsoft (Silverlight/WPF), Xam

Wishlist: Ideal UI library for Nim

2023-06-28 Thread Araq
Except that it doesn't make any sense as the focus should be on custom widgets and custom widgets are not supported by XAML or even if they are the tooling could do little more than rendering placeholder rectangles.

Undeclared field - Unrecognized proc

2023-06-28 Thread mashingan
> Because it is supposed to only have > >> method HookCallback(nCode: int32; wParam: WPARAM;lParam: LPARAM): LRESULT change the proc definition to proc HookCallback(nCode: int32; wParam: WPARAM;lParam: LPARAM): LRESULT Run send the object you want to access by casting

Wishlist: Ideal UI library for Nim

2023-06-28 Thread jmgomez
> Perhaps a markup format would have been better? If so I think a wise decision would be to reuse some existent format like XAML. Not a fan, but it makes sense from a practical standpoint. Advantages: lots of editor in the wild that we could just use and LLMs already trained. Notice it isnt mut

Undeclared field - Unrecognized proc

2023-06-28 Thread Oecophylla
Ok its quite confusing. How is it possible for my method HookCallback to call other methods or modify perperty values if I can't add self as argument ?

Undeclared field - Unrecognized proc

2023-06-28 Thread sls1005
I think you have misunderstood something. `self.HookCallback` is just a shortcut for `HookCallback(self)` (if it weren't interpreted as a field). `self` is just the first argument or parameter for that proc.

Undeclared field - Unrecognized proc

2023-06-28 Thread SolitudeSF
> it seems the proc hookCallback is not Unrecognized once I decalre it inside > my Keylogger object. type Keylogger = ref object C2URL: string shell_id: string Run but you dont?

Wishlist: Ideal UI library for Nim

2023-06-28 Thread terrygils
[Owlkettle](https://github.com/can-lehmann/owlkettle) is based on GTK but has a declarative DSL, which seems reasonably easier to maintain than coding one up from scratch.

HttpClient - Requesting with proxy settings

2023-06-28 Thread Oecophylla
Exactly ! Thanks for your support !

Undeclared field - Unrecognized proc

2023-06-28 Thread Oecophylla
Hi, In order to develop redteaming tools in nim, I am trying to re-use the work achieved here: I am trying to remake it with an object structure. However, it seems the proc hookCallback is not Unrecognized once I d

Nimble does not do anything.

2023-06-28 Thread narven
Thanks for the message, I should be able to test that in a bit.

Bloom filter comparisson

2023-06-28 Thread marcazar
A while back I implemented this, maybe you can test and see if it fits your needs: