Flutter and Nim

2022-02-03 Thread jasonfi
I took a different approach. I write my UI code in Nim, which creates JSON. The JSON is sent to Flutter where I have a rendering engine display the JSON as Flutter widgets.

zlib.h: No such file or directory error on Windows

2022-02-03 Thread sls1005
{.passL: "-lxlsxio_read".} {.passL: "-lxlsxio_write".} Run is written in , so you need at least `xlsxio_read.dll` and `xlsxio_write.dll`. However, `{.header: "".}` is not seen, so I don't think xlsxio needs head

Flutter and Nim

2022-02-03 Thread womble
Just for a bit of fun I thought I would attempt to get flutter and nim working together. Why? Because flutter is dart and it builds to js on devices and is a JIT on MacOS, Linux and Windows. The biggest problem is lack of documentation probably more on the Flutter ffi side but also on the nim s

Nim's autoformatter situation

2022-02-03 Thread tmsa04
** only works in BASH if globstar is enabled: $ shopt -s globstar Run It seems to work in fish shell by default.

Nim's autoformatter situation

2022-02-03 Thread federico3
[nimfmt](https://github.com/FedericoCeratto/nimfmt) is based on nimpretty and add a couple of features. The most important one is detecting is the same variable or proc appears with inconsistent style (myVar, my_var, myvar) and optionally fix it. It can be configured to prefer a specify style o

Nim's autoformatter situation

2022-02-03 Thread cblake
Sorry. A double negative with a great deal of textual distance. "No that..." is meant to also apply to "cannot be". Not exactly wrong, but also not very clear.

Weird issue with Nimble installation

2022-02-03 Thread xigoi
I have: `requires "honeycomb >= 0.1.1"`. Which is the latest version. (And if I had forgotten it, it would be even weirder to get the error…)

Nim's autoformatter situation

2022-02-03 Thread moigagoo
> @moigagoo's **/** expressions cannot be saved in a file. I don't get it. Yes they can.

Weird issue with Nimble installation

2022-02-03 Thread Clonk
Just checking for the obvious but make sure you haven't forgotten the `requires "honeycomb"` in the nimble file.

Weird issue with Nimble installation

2022-02-03 Thread xigoi
I'm making a package which depends on the [Honeycomb](https://nimble.directory/pkg/honeycomb) library. If I don't have the library installed and I use `nimble build` or similar commands, Nimble tells me that it can't find the library in the package list. However, if I manually install it with `

zlib.h: No such file or directory error on Windows

2022-02-03 Thread tcheran
Sorry, I send it again in code block: PS C:\Users\Andrea> nim c -r "c:\Users\Andrea\Documents\Nim\working_code\zip_import.nim" Hint: used config file 'C:\Users\Andrea\.choosenim\toolchains\nim-1.6.0\config\nim.cfg' [Conf] Hint: used config file 'C:\Users\Andrea\.choosenim\t

Discussion: Why Static Languages Suffer From Complexity

2022-02-03 Thread cblake
@xigoi & I were discussing some ideas along those lines in navigating/selecting in indent based languages..A step beyond just "graphing paper"-esque "indent-area grids" like [Moe in Nim](https://editor.moe/) or folding. The idea is to move around said indent grid in its "natural strides". It see

Nim 1.6.4 release candidate

2022-02-03 Thread PMunch
Found a regression:

Nim's autoformatter situation

2022-02-03 Thread cblake
I believe Zsh pioneered `**` back in the mid 1990s but it was a long time before you could say `**.nim` instead of `**/*.nim`. (Then it was a very short time to grow triple-`*` to chase symlinks.) It surprised me _how much_ more I liked double-`*` vs `**/*`. `**` _feels_ much more than twice as

Weird issue with ints in web (js) builds

2022-02-03 Thread PMunch
Numbers are a bit different in JavaScript. Essentially all numbers are `float64`, but for performance reasons integers are often stored internally as `int32`. I'm guessing that Nim defines `int` as `int32` for the JavaScript target and then tries to make sure that it never triggers anything that

Weird issue with ints in web (js) builds

2022-02-03 Thread Hlaaftana
Basically JS itself autocasts numbers (normally 64 bit floats) to 32 bit integers when using integer bitwise operations. This is why `int` is set to be `int32` in JS, and `0xB0BF1AFF` is too big to be an `int32`. If you need 64 bit integers in JS, there are a few approaches to this, such as usi

Nim's autoformatter situation

2022-02-03 Thread xigoi
Ah yes, so the answer to “what's wrong” is “Windows”.

Weird issue with ints in web (js) builds

2022-02-03 Thread drkameleon
OK, so, after posting the question (as usual lol), I tried to be more specific about what kind of `int` this `VColor` easy. And since we just need 32 bits (4 components x 8 bits), I went for `uint32`. I guess... problem solved. :) (I still don't understand what an `int` ends up standing for in

Flutter App Development

2022-02-03 Thread Nancytaylor
Flutter 2.8 is the last stable release, highlighting the collaborative efforts of many contributors and reviewers in resolving bugs and improving performance significantly. [Flutter app development](https://designprosusa.com/flutter-app-development) have been improved, as have Google Mobile Ads

Weird issue with ints in web (js) builds

2022-02-03 Thread drkameleon
I have implemented an alternative Colors library for Arturo, roughly following the path of std/colors, but with support for an alpha channel + conversion helpers (HSV/HSV <-> RGB) + palette generation functions. Everything works fine, except when I try to build the project for _js_. My **VColor