Wishlist: Ideal UI library for Nim

2024-01-02 Thread Angluca
https://github.com/lvgl/lvgl

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread Angluca
lvgl looks like well.

Sum types, 2024 variant

2024-01-02 Thread arnetheduck
For those thinking of this as a special case of an object variant, it is .. here's an equivalent "desugaring" syntax: type ExtraEither[A, B] = object field: int case _: _ of Le: _: tuple[le: A] of Ri: _: tuple[ri: B] Run It is r

Sum types, 2024 variant

2024-01-02 Thread Araq
> but understand it breaks existing case semantics... While that is a problem, the bigger problem with your proposed syntax is the inherent ambiguity between "new declaration" and "bind to existing symbol".

Sum types, 2024 variant

2024-01-02 Thread Araq
> Implicitly shortening patterns also feels like a bad design. What do you mean?

Wishlist: Ideal UI library for Nim

2024-01-02 Thread oyster
it is nonsense if we do not name the widgets we hope to use in GUI applications button, label, text input are common widgets in most of the UI lib. however, I usualy use table/cell to address/edit data, though there is no huge data in my case. Table, on the other hand, is missing in many libs, a

Strange Behavior About Nim 2.0 Destructor

2024-01-02 Thread Ward
I've observed that certain code using `when defined(nimAllowNonVarDestructor)` to choose the destructor ends up using the wrong version for `refc`.

Nim Compiling to js

2024-01-02 Thread mardon86
How can we transpile nim to js in the browser on the fly, so that we can write nim right in the browser ?

How Can I Ensure Backward Compatibility with Destructors in Nim 2.0?

2024-01-02 Thread Ward
Based on information from , I believe a more suitable approach would be to use `when defined(nimAllowNonVarDestructor) and not defined(gcRefc)`

ccal: Calendar with local holidays via ip location

2024-01-02 Thread inv2004
Looks like 3ch code is not supported by upstream calendar api

Sum types, 2024 variant

2024-01-02 Thread konsumlamm
It's great that proper sum types are finally coming! Though I would prefer syntax like in , which is more ergonomic IMO: type Option[T] = enum of None() of Some(T) Either[A, B] =

karax - embedding stylesheet

2024-01-02 Thread mantielero
My bad. I was comparing the files wrong. In any case, for the record: * `text CssDefault` would convert `/`, `<` and things like that `<` and so on. * `verbatim CssDefault`: would not convert them. This is what I was needing.

Sum types, 2024 variant

2024-01-02 Thread ASVI
Maybe better instead of enum or case name it union or variant. But case is already good

Sum types, 2024 variant

2024-01-02 Thread j-james
This looks mostly fine to me. I'd rather these be called `union` but it's a minor complaint. The distinction between mutable and immutable bindings seems irrelevant. Why not have mutability follow the mutability of the matched-upon object? I would much prefer to do away with `let`, `var`, and `

Sum types, 2024 variant

2024-01-02 Thread ASVI
And for guard better make new where keyword.

Understanding an address sanitizer message for a memory leak caused by global dispatcher (?)

2024-01-02 Thread Isofruit
I guess in lieu of a better question: Does anybody actually use address-sanitizers or valgrind or heaptrack and eradicates potential memory leaks to the point that _nothing_ shows up while they run? The repeated attempts I've made at using these tools always lead me to areas where I never unde

Sum types, 2024 variant

2024-01-02 Thread Isofruit
Makes perfect sense to me. In fact, I like this a fair bit more than default object variants because they are a special type of object and by using case instead of object that is immediately visible!

Sum types, 2024 variant

2024-01-02 Thread Araq
I didn't check the grammar but proc store[T: case](f: var File; x: T) Run looks easy enough to support.

Sum types, 2024 variant

2024-01-02 Thread ElegantBeef
Though since `case` also can be used for flow control I assume the typeclass would also not be `case` as that'd make parsing more complex?

Sum types, 2024 variant

2024-01-02 Thread Araq
Good gotcha, reusing the `enum` typeclass for sum enums will be too confusing. Back to `case`? type Option[T] = case of None: discard of Some: T Either[A, B] = case of Le: A of Ri: T BinaryNode = object a, b: ref

Sum types, 2024 variant

2024-01-02 Thread ElegantBeef
The issue is that there is code that presently works that only works with numeric `enum`s. By accepting both you now have code that appears like it should work but will result in instantiation errors. By all accounts of current Nim`SumEnum` is a specialization of `object` not `enum`, you cannot

Sum types, 2024 variant

2024-01-02 Thread ASVI
Object variants will be obsolete. Deprecation warnings and the messages in the documentation will prevent this

Sum types, 2024 variant

2024-01-02 Thread Isofruit
I would agree on the enum front, not based on any of the points beef made but more fundamentally: The way this looks to me, the naive and unknowing user, is that it's a different of writing object variants where you directly write the enum into the object variant. However what I'm mildly stuck

Sum types, 2024 variant

2024-01-02 Thread morturo
This is great! I've been waiting for something like this for a long time.

Sum types, 2024 variant

2024-01-02 Thread ASVI
use the typetraits. SumEnum will most likely be added to it

Understanding an address sanitizer message for a memory leak caused by global dispatcher (?)

2024-01-02 Thread Isofruit
Hello everybody, I am still working on threadButler and based on suggestions from mratsim and leorize am starting to take a look at it through various tools to look for memory leaks etc. I am currently trying to wrap my head around using [address sanitizers](https://github.com/google/sanitizers

The nim installer for Windows contains malware

2024-01-02 Thread dwhall256
I had my IT dept submit a false-positive report last year. The immediate work-around was to install nim and write my nim source in our designated virus-scan-exclusion path. P.S. What's "the Leo world" ?

Sum types, 2024 variant

2024-01-02 Thread ElegantBeef
The biggest issue I see is the usage of `enum` now makes it so any code that expects a `enum` typeclass has to delimit three different types of `enum` (OrdinalEnum, HoleyEnum, and SumEnum). Consider `parseEnum` it's constrained to the typeclass but obviously will only work on the numeric enums(E

State of fidget

2024-01-02 Thread treeform
Sorry, I stopped developing fidget for a while to focus on low level foundation libraries such as pixie, windy, boxy, bumpy, vmath, etc... Making a whole UI toolkit from scratch is a lot of work for one person.

ccal: Calendar with local holidays via ip location

2024-01-02 Thread dwhall256
Country code is an ISO standard. [Wikipedia has a summary](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). There are two sizes of country codes: two-character and three-character.

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread mantielero
In that regard, I think [lvgl](https://lvgl.io/) is a better option (working even on embedded). I did a proof of concept wrapper for it some time ago:

karax - embedding stylesheet

2024-01-02 Thread mantielero
Hi, I am playing with an asciidoc parser. Now I am trying to embed a stylesheet within an .html created with karax. To do so, I just did something like: const CssDefault* = staticRead("asciidoctor-default.css") html: style: text CssDefault

ccal: Calendar with local holidays via ip location

2024-01-02 Thread inv2004
Few updates: * Support of personal calendars * Custom styles for the ^^^ calendars smth like: `$HOME/.config/ccal/myevents.txt`` fgGreen 2024-01-05 2024-06-01 2024-07-01 2024-08-01 styleDim styleUnderscore 2024-06-02 2024-07-31 2024-08-

Sum types, 2024 variant

2024-01-02 Thread Araq
It would be a straight-forward extension but I doubt a first implementation will have it.

Sum types, 2024 variant

2024-01-02 Thread khaledh-nim
This is great! Looking forward to having this in the language. Any chance we can have some sugar to avoid declaring a payload object for branches? i.e. the following would implicitly declare anonymous types for `BinaryOpr` and `UnaryOpr`: type Node = enum of BinaryOpr

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread Isofruit
I agree with that it looks pretty alright. I mean, I'm partial towards a more GTK-y look generally, but even then this looks perfectly serviceable. I wouldn't mind writing an app in that myself if I weren't slammed with like 5 other things.

Strange Behavior About Nim 2.0 Destructor

2024-01-02 Thread ringabout
progress:

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread nasl
What's so ugly about it? Looks pretty good to me:

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread oyster
This GUI lib has a ugly looking

Elite Gummies [Beware Refreshed Warning] Stunning Read First?

2024-01-02 Thread jinauio
Elite Gummies [Beware Refreshed Warning] Stunning Don't Buy Read First? ☛ ☛ ☛Buy Now Today We Accept Limited Orders☚ ☚ ☚ ☛ ☛ Click Here For Buy☚ ☚ Read More..

Sum types, 2024 variant

2024-01-02 Thread Araq
Happy New Year! I'm posting this here as it's not refined enough for an RFC, yet. Feedback appreciated. # Sum types, 2024 variant In this proposal it is a simple extension to the existing `enum` construct: type Option[T] = enum of None: discard of Some: T

The nim installer for Windows contains malware

2024-01-02 Thread edreamleo
Thanks to all for your helpful comments. Several of us in the Leo world are up and running with Nim.

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread Araq
Maybe it's not. Missing widgets: * HTML view * Text editor with syntax highlighting * Video player * ... ;-) Can you build these yourself? Yes but then do you want to if the basic text height etc is defined by the OS and so you need to test your widget on the 3 supported OSes...

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread aiac
Rust egui is very easy to use. Hope nim also has a similar ;-)

Nim Tooling Roadmap

2024-01-02 Thread Omnomnim
This is fantastic news.

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread Isofruit
As PMunch stated, looks like a nice project to provide bindings for. You could do sth. like owlkettle does and put a declarative GUI-DSL on top of that for far better ease of use (this is what makes me e.g. prefer the owlkettle approach over gintro: I have an explicit immediately visible widget-

Maybe nappgui is best cross platform gui lib for nim

2024-01-02 Thread Angluca

Wishlist: Ideal UI library for Nim

2024-01-02 Thread PMunch
Hmm, a very interesting target for a Nim wrapper!

some MM modes leads to SIGSEGV

2024-01-02 Thread sls1005
> Do this mean there is some bug in my code or use libs? This means there's some problem associated with pointers, usually a nil-derefercing. The bug can either be in your code or be in the lib. It's hard to tell as we don't know how you're using it. Some code snippets would be helpful. Knowing

some MM modes leads to SIGSEGV

2024-01-02 Thread mratsim
Clang + `--passC:-fsanitizer=address --passL:-fsanitizer=address` works fine on Windows.

Oz Vigor Vita CBD Gummies: Reviews, Ingredients, & Price!

2024-01-02 Thread ozvigorvitagumi
►❱❱ Item Name: — Oz Vigor Vita CBD Gummies ►❱❱ Utilized For: — Reduces Pain, Stress, Anxiety And Sale Now... ►❱❱ Composition ➥ Natural Organic Compound 💯 ►❱❱ Incidental effects: — NA ►❱❱ Rating:— Overall rating: — ⭐ ►❱❱ Availability ➥ Online 💲 ➤➤❱❱ Where to Buy ➺ 👉 {Buy Now Here — Click Here

why object variants not support same field name ?

2024-01-02 Thread mratsim
It does if you have the same type type CommandId = enum cmdSearch cmdDownload type Command = object case id: CommandId of cmdSearch, cmdDownload: opts: int Run Otherwise, there are several RFCs related to variants, sum types and

Wishlist: Ideal UI library for Nim

2024-01-02 Thread Angluca

Wishlist: Ideal UI library for Nim

2024-01-02 Thread Isofruit
While I actively contribute and yes it is actively being worked on by can.l (who is the core behind this really nice idea) and myself, this does not fulfill one of the criteria: > Written in Nim with an idiomatic API and DSLs. Of course. But! It should be > compiled to a DLL so that my build ti

some MM modes leads to SIGSEGV

2024-01-02 Thread Araq
Let me try again: > Do this mean there is some bug in my code or use libs? Yes. Potentially in both. > if there are bugs, how to trace, locate and fix the line(s) in source code? Setup a sanitizer, review your own code, review your used libraries. Under WSL you can use `valgrind`, but then you

why object variants not support same field name ?

2024-01-02 Thread Isofruit
And note that the type **must** be explicit, no generics allowed. The reason for that being that you must know the explicit field **at compileTime** so you can link the appropriate procs to it. Keep in mind that "id" is a runtime field. You can't know at compileTime what it'll be. So if you ha

why object variants not support same field name ?

2024-01-02 Thread aiac
type CommandId = enum cmdSearch cmdDownload type Command = object case id: CommandId of cmdSearch: opts: SearchOpts of cmdDownload: opts: DownloadOpts # Error: attempt to redefine: 'v' Run

why object variants not support same field name ?

2024-01-02 Thread Calonger
What is type of expression command.opts ?

Arraymancer - 2023-12-31 - Overview of longstanding missing features

2024-01-02 Thread mratsim
> Regarding running blas and lapack on windows it seems to me that the > situation is a little better now. Download the right dll, place it in the > path and it works. Would there be other benefits to reimplementing blas and > la pack in nim? Do you have an estimation of how much effort that wou

some MM modes leads to SIGSEGV

2024-01-02 Thread oyster
yes, there are some libs to handle `xlsx`, but what about the old `xls` format to be frank, I only know the following excel file( **both** xlsx and xls ) reading libs which can be used by Nimlang * .NET lib, for example NOPI * Python lib, for example, Openpyxl for xlsx, xlrd for xls * C li

ThreadButler - Multithreading with long-running threads that act as "servers"

2024-01-02 Thread mratsim
> Or B) I strip out the long-running threads and just make this an abstraction > over status/nim-taskpools that can be used for all kinds of tasks including > IO, given that they can send a message back when they're done, which is read > from by the main-thread controlling the taskpool. For IO i

Pros and Cons of Use of Dr Oz Vigor Vita CBD Gummies

2024-01-02 Thread ozvigorvita
►❱❱ Item Name: — Dr Oz Vigor Vita CBD Gummies ►❱❱ Utilized For: — Reduces Pain, Stress, Anxiety And Sale Now... ►❱❱ Composition ➥ Natural Organic Compound 💯 ►❱❱ Incidental effects: — NA ►❱❱ Rating:— Overall rating: — ⭐ ►❱❱ Availability ➥ Online 💲 ➤➤❱❱ Where to Buy ➺ 👉 {Buy Now Here — Click H

some MM modes leads to SIGSEGV

2024-01-02 Thread Calonger
Wrong acyclic ?

some MM modes leads to SIGSEGV

2024-01-02 Thread ThomasTJdev
There are two really good packages for [reading xlsx](https://nimble.directory/search?query=xlsx): * [xlsx by ringabout](https://github.com/ringabout/xlsx) * [xl by khchen](https://github.com/khchen/xl)

some MM modes leads to SIGSEGV

2024-01-02 Thread oyster
So bad, my application uses winim to interact with Windows .NET Frameworks during reading Excel files( **both** xls and xlsx), as a result there is no need to install any Office-like software, for example MS Office, . I don't know whether there is any other opensource solution, which can be used

Why Nim allowing asm stmt at js ?

2024-01-02 Thread rel
The situation seems to be like "no difference between {.importcpp.} and {.importjs.}" for Js backend. If "{.importcpp.} == {.importjs.}" in js compiler it is confusing why eg. in "dom.nim" both pragmas are used.