How to test if a symbol is present?

2024-08-23 Thread SpotlightKid
Maybe you were looking in the wrong manual doc?

choosenim 0.8.5 release announcement?

2024-08-21 Thread SpotlightKid
> The 0.8.5 version is basically the exact same as the 0.8.4 version A bit of an understatement, isn't it? I think the fix for #5 / #320 alone (use https URLs) is pretty significant.

choosenim 0.8.5 release announcement?

2024-08-21 Thread SpotlightKid
I see that the choosenim fork under the nim-lang GH organisation released a new version 0.8.5 two days ago: It's good to see that choosenim emerges from it's limbo state and has been adopted by the nim-lang org! I think that warrants

Mastering Nim: Table of Contents?

2024-08-19 Thread SpotlightKid
On Amazon you can use the "Read sample" button (below the cover image) to view sample content from the book, including the table of contents.

getting started question, jester vs. karax?

2024-07-25 Thread SpotlightKid
@hamidrb80 Never heard of unpoly before (but I don't do much frontend work). It seems similar in goals to [htmx](https://htmx.org). If you do know htmx, can you elaborate how the two compare?

Nimsuggest and Manjaro Nim installation

2024-06-06 Thread SpotlightKid
> Should we consider that Manjaro installation of Nim is broken since it > doesn’t follow this requirement IMHO we should rather consider Nimsuggest broken, since it doesn't follow [FHS standards](https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrshareArchitectureindependentData) on

choosenim: what is the development state?

2024-06-03 Thread SpotlightKid
> I think the steps to be taken are: > > 1\. Prioritize. What are the most critical problems with choosenim? What > features are lacking? Most problems are known and already filed as issues in choosenim's Github project. Some even have PRs fixing them. > 2\. Announce. Make a blog post with the

Pixie and NiGui

2024-05-25 Thread SpotlightKid
Maybe because it says: > This library is still in development and is not ready to be used. right at the top of windy's readme? 😉

Super-weird error with builds on latest Windows runner (Github)

2024-05-18 Thread SpotlightKid
Did the compiler version change, maybe?

`nph` opinonated formatter v0.2

2023-12-24 Thread SpotlightKid
> then people working on a given codebase will argue about what configuration > to use, which is counterproductive. I disagree. Tooling decisions and coding guidelines are an important step in setting up any project or development shop and, like I said, not every project has the same requiremen

`nph` opinonated formatter v0.2

2023-12-23 Thread SpotlightKid
IMHO, the linked FAQ entry doesn't give a satisfactory answer. I get it that consistency is an important goal,. But IMO this should apply to a project's or organisation's code base, not the whole world's Nim codebase. We're not Borg and different code bases have different requirements. But it's

Hello `nph`, an opinionated source code formatter for Nim

2023-12-19 Thread SpotlightKid
`isort` distinguishes between stdlib, third-party, project and local imports heuristically and gives you options to sort within a section or across all imports and also has options how to sort symbols within one import line.

Hello `nph`, an opinionated source code formatter for Nim

2023-12-19 Thread SpotlightKid
Formatting (and optionally re-grouping and re-sorting) imports could be an extra step / tool, like Python's `isort`.

Package-Rot as growth hindrance

2023-12-11 Thread SpotlightKid
[OT] > I've seen some spammy use in the AUR with marking packages out-of-date mostly on the -git packages. That's not spammy, just user too lazy too read the wiki. Which I can kinda understand. The VCS package case is weird enough, that it should be made more obvious to the user, not only the p

Hello `nph`, an opinionated source code formatter for Nim

2023-12-11 Thread SpotlightKid
What's the rationale behind this style choice? import std/[parseopt, strutils, os, sequtils] Run Seems unnecessary wasteful with vertical space to me.

Advent of Nim 2023

2023-12-03 Thread SpotlightKid
So, if you're not on the first private leaderboard can you at least somehow see it?

Operators.

2023-12-03 Thread SpotlightKid
Please provide more context. In Nim you can define / override the behaviour for operators based on the type of the operand(s), so we need to see the code where the operator is used.

Advent of Nim 2023

2023-12-02 Thread SpotlightKid
Here are my solutions in using Nim so far: I'm not sure, though, how many days I'll be able to participate.

Improving Examples and Documentation

2023-09-13 Thread SpotlightKid
> Examples are too sparse or don't cover enough cases That's the main deficiency of the official docs, atm, imho. Especially the stdlib docs could benefit most from (way) more examples, I think.

Get C code output

2023-09-08 Thread SpotlightKid
https://nim-lang.org/docs/backends.html#interfacing

PODS: Easy to read and type text format for serialization and config files.

2023-07-17 Thread SpotlightKid
Interesting. Is there some sort of specification for the format? For example, from the examples, it looks like it distinguishes between (named)tuples and dictionaries/hashes/tables/whatever-you-call-them? How do you have strings with embedded single quotes? Is there a binary data type or base64

Wrapping Tkinter GUI in Nim?

2023-07-17 Thread SpotlightKid
While Tkinter interfaces are ok on Windows and maybe macOS (I don't really know), they are IMHO horrible on Linux systems. They have non-standard keyboard bindings, look like they're from the 90s, and just lack many things you expect from a modern desktop UI framework. My advice would be to loo

Recursive Fibonacci function

2023-07-04 Thread SpotlightKid
You should mention that you already posted this question on Stackoverflow: It has already been pointed out there that your environment (Mingw, Windows, gcc 8.1

linking

2023-07-04 Thread SpotlightKid
> LVGL is compiled fully every time I compile an example: Is it? "Note: Nim computes a SHA1 checksum and only recompiles the file if it has changed."

GUI app with nim

2023-07-03 Thread SpotlightKid
> Nobody told about ImGui experience. Does it work in practice with Nim? >From a user's POV I can only say, imgui-based UIs are usually the most >ugly^H^H^Hnattractive and cumbersome to use around. Whoever chose that tiny, >fugly default font needs to get _[redacted]_!

Fame and fortune for Nim?

2023-07-03 Thread SpotlightKid
BTW, the application deadline is in 3 days.

lvgl - callback issues

2023-07-02 Thread SpotlightKid
With this the callback becomes: proc btn_clicked_cb(e: ptr lv_event_t) {.cdecl.} = let btn = cast[ptr lv_obj_t](lv_event_get_target(e)) var cnt = cast[ptr int](lv_event_get_user_data(e)) echo now().utc, " clicked" cnt[] += 1 let label = lv_obj_get_

lvgl - callback issues

2023-07-02 Thread SpotlightKid
> I created some bindings with nimterop I'm to lazy to make a proper PR, but to make the examples compile out-of-the box on any system but yours I suggest the following changes: diff --git a/src/lvgl.nim b/src/lvgl.nim index 8d0e392..c8ee0b4 100644 --- a/src/lvgl.nim +++

Nim Sucession Plan

2023-06-30 Thread SpotlightKid
This may be of interest:

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

2023-06-29 Thread SpotlightKid
Yeah, let us be tolerant - but only if it doesn't offend me.

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.

HttpClient - Requesting with proxy settings

2023-06-27 Thread SpotlightKid
Your proxy string probably has a trailing newline or CRLF.

HttpClient - Requesting with proxy settings

2023-06-27 Thread SpotlightKid
It would be easier to diagnose, if you post the error with the full traceback or even better a minimal failing example, which we can run.

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?

A good word for idiomatic nim?

2023-06-21 Thread SpotlightKid
nomm

MoveWindow()

2023-06-19 Thread SpotlightKid
Suspiciously: why do you want to move a window?

how to make a dll in nim-lang?

2023-06-19 Thread SpotlightKid
You need to pass a byte string from the Python side: import ctypes lib = ctypes.cdll.LoadLibrary('./libhello.so') lib.hello(b"Hello World!") Run Also, your Nim function should probably return `void` instead of `cstring`.

NimQML> How to pack resource files or gui files in compiled package

2023-06-13 Thread SpotlightKid
> Either way I end up with an executable i.e. Main and a resource file, > Resource.rcc (after compiling the original .qrc file). So what. Just stick it next to your executable on windows (the nimqml example shows you how to get the path), or... > I don't see much sense in having the executable

NimQML> How to pack resource files or gui files in compiled package

2023-06-13 Thread SpotlightKid
The Qt Resource System: Nim example:

tell me the library for windows to download files with a progress bar

2023-06-07 Thread SpotlightKid
You could have easily found that out for yourself: Just integrate one of into For example: import std/[asyncdispatch, httpclient] import progress const nBy

How to get operating system information in nim-lang?

2023-06-04 Thread SpotlightKid
Try this: