Nimble for Nim v2

2023-05-23 Thread alexeypetrushin
+1 for monorepo. Also, it's very annoying that nimble requires for package that sources be put into subfolder. In many projects I put sources at top-level. And many Nimble features are just overkill, a library should be basically just a path for compiler, and all the docs should be less than hal

Best Web Framework Features?

2023-05-23 Thread jasonfi
I'd say Next.js, mainly because of React being reactive and having excellent tooling.

Any fuzzy or trigram substring search library, with index, so it's instant?

2023-05-23 Thread alexeypetrushin
Wondering if there's fuzzy or trigram substring search library in Nim. It should be fast, so it should use some sort of index, in-memory index would be fine. let doc1 = "therearemultiplereasonstoaboutforexeverysingleofthoseforextrendisbigenoughto" let doc2 = "someothertext"

Best Web Framework Features?

2023-05-23 Thread alexeypetrushin
Best web frameworks in developer productivity - Ruby on Rails and Svelte (fastest time to deliver product to market and smallest dev cost) Best web framework in terms of reliability, speed, scaling and predictably behaving runtime - Elixir Phoenix Live View.

Best Web Framework Features?

2023-05-23 Thread yych1990
django in nim with nim's speed...

How to create modular program (like main with future addons) ?

2023-05-23 Thread ElegantBeef
I'd suggest using WASM over using a system library if you plan on shipping code that way. It's sandboxed by design and is cross platform. Eitherway using a plugin system for DLC is a grand way to enable a modding api. :D

Algebraic data types and structural pattern matching RFC

2023-05-23 Thread j-james
Hmm, `if circ as Circle(binding):` seems nice.

Algebraic data types and structural pattern matching RFC

2023-05-23 Thread ElegantBeef
`circl as Circle` is possible to being implemented if I recall correctly. The one downside is that you cannot do `var circ: Circle` could even do `if shape as Circle(circ)` or similar. Given that j-james has suggested just binding the mutability to the symbol type the `as` syntax could be a fine

Algebraic data types and structural pattern matching RFC

2023-05-23 Thread elcritch
Yah Rusts `if let …` just feels so ugly to me. Perhaps something like `if circ as Circle:` or `if circ into Circle:`. I think those aren’t possible to implement as a library feature though IIRC. Just overshadowing the name simplifies the syntax a lot. Maybe even an operator if it was standardiz

Best Web Framework Features?

2023-05-23 Thread ingo
CherryPy, because it has a web server with a few features bolted on a bus and not much more. It lets me pick my preferred tools and does not get in the way.

How to create modular program (like main with future addons) ?

2023-05-23 Thread IvanS
Thanks, I seem to have overlooked dynlib. Will do now. Maybe it's a bad idea coding wise, but for a game DLC it's a benefit.

How to create modular program (like main with future addons) ?

2023-05-23 Thread Araq
You can use DLLs for that via the `dynlib` module. But it's a bad idea because plugin systems in general are a bad idea. You're introducing a massive amount of complexity when you haven't even written the program yet and it's likely acceptable to recompile the program should a new feature arriv

How to create modular program (like main with future addons) ?

2023-05-23 Thread IvanS
I want to be able to load/unload program modules depending on user selection and availability. It's about a program which feeds data (always the same format) to a (helper/sub)program which simulates hardware. While the main program remains the same, the hardware changes and new hardware is intr

Nimble for Nim v2

2023-05-23 Thread ingo
> The end goal is to have something which is consumable into a database. a local SQLite based "ebook" with RTS5 full text search etc. Would be nice.

Best Web Framework Features?

2023-05-23 Thread Isofruit
Most of these are ripped from the java world, since any other feature I would want are more ORM related, which I'm not sure if they are within the scope of your project. 1. Automatic catching of any exception that is thrown while executing a handler proc (a proc that handles an HTTP request,

Nimble for Nim v2

2023-05-23 Thread PMunch
I've been slowly adding patches to the Nim documentation generator to make the JSON output more useful. The end goal is to have something which is consumable into a database. While my idea has primarily been on creating a website with more advanced features than the official docs it would also b

parser generator

2023-05-23 Thread choltreppe
yea thats actually a bug in my serialization library `unibs`, thanks for reporting, will fix it when I have time

Nimble for Nim v2

2023-05-23 Thread Araq
There is Doing better that than is hard because we generate the stdlib documentation statically and it's only updated for a new release.

Nimble for Nim v2

2023-05-23 Thread ingo
Maybe OT, can library documentation automatic be added/incorporated into the local nim docs? And be removed upon removal of the lib. For example Supercollider has such a system.

Nimble for Nim v2

2023-05-23 Thread Araq
Hardly, but I'm accepting patches.

Algebraic data types and structural pattern matching RFC

2023-05-23 Thread mratsim
The word unions / tagged unions / discriminated unions have a standard meaning in computer science. It's fine because with context it's hard to confuse the two. Using `modulo` for `remainder` is a way worse offense because both are used in the same context. For example the term `field` has a v

Nimble for Nim v2

2023-05-23 Thread domogled
is it possible to use the atlas now?

Algebraic data types and structural pattern matching RFC

2023-05-23 Thread PMunch
@j-james, fixed the paste issue

“NIM” backronyms

2023-05-23 Thread pietroppeter
**Nimi Ilo Musi** : which in [Toki Pona](https://en.wikipedia.org/wiki/Toki_Pona) should be something like: "Funny Name of Tool"

“NIM” backronyms

2023-05-23 Thread UxDnz0
Name-integrative, modularity. Wasn't there a King Nimrod who was supposed to keep 'tabs' on the hubris of building fragile, verbose, and hard to integrate DSL's though?

Algebraic data types and structural pattern matching RFC

2023-05-23 Thread xigoi
The word “union” has a standard meaning in mathematics. And is there any language other than Rust that calls sum types “enums”? Yeah, `sum` would be bad as a keyword. Perhaps `variant`?

Algebraic data types and structural pattern matching RFC

2023-05-23 Thread j-james
I would argue with you there: computer science terminology is far from standardized (just look at dynamic arrays! every language uses a totally different name). I would consider the implementation of this to be a tagged union, and in type theory `enum` is a standard synonym for sum types. I've

Algebraic data types and structural pattern matching RFC

2023-05-23 Thread j-james
Yeah, I'd really like an equivalent of Rust's `if let`: but **not** `if let`! I hate the syntax there too :-D Definitely taking suggestions there (and everywhere, but especially there). My current thought is `if Circle(binding) == variable` but I don't really like it either: it's clean but very

“NIM” backronyms

2023-05-23 Thread Araq
"Nice, indentation + macros!"

“NIM” backronyms

2023-05-23 Thread lscrd
Not in my… Nim!

Best Web Framework Features?

2023-05-23 Thread Araq
Ok, good. I doubt he is schizophrenic though.