Anonymous chat service, powered by Nim

2024-08-23 Thread moigagoo
> Can't service workers be written using Nim? Sure. I actually wrote the service worker in Nim at first. However, at some point I noticed I'm just wrapping JS code in Nim. So I just switched to JS. > And what about the push service? My push service is written in Python only because there's a r

Glaucus Linux

2024-08-21 Thread moigagoo
I just wanted to make it absolutely clear that my remark was never intended as critique or attempt to belittle your work. You've done a great job with Glaucus, in a domain very few people even attempt to do anything in. You have every right to name things how you please without paying attention

NimConf 2024 - registrations

2024-08-19 Thread moigagoo
@miran could you please verify my submission was sent? After I've submitted the form it just reloaded and I blinked and didn't see if there was an error there.

Nim rose to the top of median salary leaderboard in 2024 Stack Overflow Developer Survey

2024-07-30 Thread moigagoo
Looks really nice! Hopefully, employers will see it and start listing more Nim jobs :-)

Nim 2.2.0 RC1 available

2024-07-13 Thread moigagoo
Great news! πŸ‘‘ What are the new features to expect in 2.2.0?

simpleargs - Dead simple CLI parsing.

2024-07-03 Thread moigagoo
This code sample inspired me to add a new demo to Climate: <https://github.com/moigagoo/climate/blob/develop/demo/battleship/battleship.nim>

Absytree: Text editor (and tree based language framework) in Nim

2024-07-02 Thread moigagoo
Great project! I hope to be able to switch to it some day. When I launch the editor and move the cursor down, several blank lines appear at the top of the page. Is it a bug or a feature?

simpleargs - Dead simple CLI parsing.

2024-07-02 Thread moigagoo
I still think Climate is the best CLIP lib for Nim and it's criminally underrated 😁

This Month with Nim: October 2023 to June 2024

2024-06-13 Thread moigagoo
Wu-Tang is for the children!

What Araq thinks about HappyX?

2024-06-11 Thread moigagoo
I'm loving this trend :-) Let's start a monthly "What Araq thinks about X" blog series?

choosenim: what is the development state?

2024-06-05 Thread moigagoo
I tried it and it's actually pretty cool. It feels a little abandoned though but it seems like updating it is just a matter of adding the new versions to the repo, no logic update necessary.

choosenim: what is the development state?

2024-06-02 Thread moigagoo
I think the steps to be taken are: 1. Prioritize. What are the most critical problems with choosenim? What features are lacking? 2. Announce. Make a blog post with the list of issues sorted by priority and invite the community to contribute. 3. (Optional) Reward. Offer a signed copy of Mas

Nish, a command line shell

2024-05-30 Thread moigagoo
Great stuff, thanks!

Upcoming "Nim for Pythonistas" talk at PyCon Italy

2024-05-27 Thread moigagoo
About the audio. It seems like it was indeed just me. I've watched the video later with headphones and the sound was much better.

Upcoming "Nim for Pythonistas" talk at PyCon Italy

2024-05-26 Thread moigagoo
The slides are fire though 🀘

Upcoming "Nim for Pythonistas" talk at PyCon Italy

2024-05-25 Thread moigagoo
Is it just me or is the sound just horrible? 😩

Anonymous chat service, powered by Nim

2024-05-03 Thread moigagoo
Sorry about that. Try adding the site to you Home Screen and running it from there. That helps sometimes. However, as I said in the comment above, iPhone support is VERY limited.

Anonymous chat service, powered by Nim

2024-05-03 Thread moigagoo
I strongly NOT recommend using an iPhone. PWA support is crap, and I don't even have a Mac or an iPhone to debug it. I know about the blank screen issue: It's not by design of course, it's because Apply actively refuses PWA as a viable technology on their pla

Anonymous chat service, powered by Nim

2024-05-03 Thread moigagoo
I received messages from you but it seems you're not getting my messages back.

Anonymous chat service, powered by Nim

2024-05-02 Thread moigagoo
Feel free to message me: [https://app.cannon-chat.online/#/newcontact?deviceId=neatly-blackened-liassaurus-4367&displayName=moigagoo](https://app.cannon-chat.online/#/newcontact?deviceId=neatly-blackened-liassaurus-4367&displayName=moigagoo)

Anonymous chat service, powered by Nim

2024-05-02 Thread moigagoo
Messaged you. Did you get it?

Anonymous chat service, powered by Nim

2024-05-02 Thread moigagoo
I've messaged you :-)

Anonymous chat service, powered by Nim

2024-05-02 Thread moigagoo
Hi! I'd like to share a pet project of mine, an anonymous chat service called Cannon: It's a chat that's designed to mimic real-life talk. There is no registration and no historyβ€”just like in real life. * The SPA is written in Nim using Karax, Karkas and Kraut.

good day everyone does jester have support for google oauth?

2024-04-14 Thread moigagoo
Jester per se doesn't ship with Google Auth but you can implement it with Jester for sure. You can even have Google Auth on the frontend only with Jester uninvolved.

Glaucus Linux

2024-03-27 Thread moigagoo
The man sure likes inventing new and unnecessarily complicated terms πŸ˜…

Would Nim modules or available Nim web frameworks suffice for an e-commerce back-end?

2024-02-21 Thread moigagoo
The frameworks and the language are fine but you'll have to write a lot of code yourself as the ecosystem is not as rich as it is for Python or Ruby or Go. Karax allows component-based code organization but doesn't enforce it or offer a single right way to do it. I'm using Karkas for layouting,

Norm select from specific table_schema

2024-01-08 Thread moigagoo
To connect to a specific table, use `tableName` pragma:

Norm select from specific table_schema

2024-01-08 Thread moigagoo
> I need to set table_schema when using Norm to select from a specific > database.table_schema.table on Postgres. The point of ORM is to provide an OO abstraction layer on top of DB so that you don't think in shemas and tables but instead in objects and collections. But the answer is still yes,

Absytree: Text editor (and tree based language framework) in Nim

2024-01-07 Thread moigagoo
I didn't 🀦 Thanks!

Absytree: Text editor (and tree based language framework) in Nim

2024-01-07 Thread moigagoo
How do y'all compile it? Compilation fails for me because vmath can't be imported despite being installed.

Absytree: Text editor (and tree based language framework) in Nim

2024-01-05 Thread moigagoo
It's really cool to see advanced software being created with Nim. We're only a week in 2024 and there have been two great announcements already.

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

2023-12-10 Thread moigagoo
> now, I'm taking naming suggestions IMHO "nimphomaniac" or "nimpho" or "nimfo" sounds good and are easy to remember as "nim formatter."

Enu 0.2

2023-12-05 Thread moigagoo
Here's the second part of my terrain generation quest: This time, I'm generating trees to the terrain so that it's hard to see through and makes it interesting to sneak around monsters.

Enu 0.2

2023-12-05 Thread moigagoo
> I'm really curious to hear where the pain points are Honestly, the biggest for me so far has been stability. Enu crashes from time to time. I've noticed this much likely to happen when I use prototypes. * In general, working with prototypes is something I'm not digging yet. I like the idea

Enu 0.2

2023-12-04 Thread moigagoo
I've started playing around with Enu 0.2 and writing about it:

Enu 0.2

2023-11-29 Thread moigagoo
Wow, great news! Thank you for the fantastic job you've done. I'm a huge Enu fan since day 1, excited to try 0.2.

proc/func/method: syntax

2023-11-16 Thread moigagoo
This thread is surprisingly long. The idea is just bad on so many levels, it's really weird seeing such a vast discussion grow around it :-)

The secret of Nim

2023-09-20 Thread moigagoo
I totally see it and always have.

Nim version 2.0.0 is here

2023-08-02 Thread moigagoo
FYI Docker images got updated:

Karkas: Karax library to build layouts and work with styles

2023-08-02 Thread moigagoo
Hi! I'm happy to announce the release of **Karkas** , a library for Karax that makes it easier to do layouting for the frontendly impaired like myself. It offers a bunch of basic building blocks based on flexbox which, when combined, allow to create surprisingly complex structures surprisingly

Nim version 2.0.0 is here

2023-08-01 Thread moigagoo
I also noticed that :-) So, we won, didn't we? πŸ’ͺ

Nim version 2.0.0 is here

2023-08-01 Thread moigagoo
Congrats! πŸŽ‰ Have a great well-deserved vacation Andreas! Huge thanks to everyone in the Nim core team and all the package maintainers for your work πŸ™

Please help me with httpclient on Nim

2023-07-18 Thread moigagoo
Highly recommend using Phind for questions like this one that have to do with stdlib:

play nim - not working?

2023-06-18 Thread moigagoo
Same for me.

Malebogia

2023-05-15 Thread moigagoo
Well, it's a term I invented some time ago to describe my own habit of making up product names with puns and then trying to invent the product for the name :-)

Malebogia

2023-05-15 Thread moigagoo
> Why now? Because it's a great new pun and I want to take credit for it. Ahh, good old naming-driven development. I'm a fan myself :-)

What GPT-4 knows and thinks about Nim

2023-04-16 Thread moigagoo
> I think your initial wording "misleading and dangerous" was not that good. I didn't even write that πŸ˜’ I couldn't be more neutral, honestly. It is misinformation because it's inaccurate and it is dangerous because it has to do with a very sensitive topic with regard to programming languages: s

What GPT-4 knows and thinks about Nim

2023-04-16 Thread moigagoo
> We used to have a phrase for that, the phrase was "that's wrong". Sorry, I'm not following your point. Are you unhappy with the word misinformation? Or dangerous? I just meant that since this is a publically available source of information about Nim, it's pretty harmful to the Nim image to te

What GPT-4 knows and thinks about Nim

2023-04-15 Thread moigagoo
> As of my knowledge cutoff in September 2021, Nim had not reached version 1.0, > but it was approaching stability, with version 0.20.2 being the latest > release. That's some dangerous misinformation right here.

2.0 RC new and old

2023-04-10 Thread moigagoo
> Projects simply do not support new versions of Nim, thereby having to rewrite > the code almost from scratch or to develop a project without updates on a > static basis. I didn't have much trouble updating for Nim 2.0 with Norm or other packages I maintain. Is there a specific issue you're ha

Make Nim docker images official?

2023-03-25 Thread moigagoo
Nonetheless, going official with the images is the right move.

Make Nim docker images official?

2023-03-15 Thread moigagoo
I'm calling docker build with the appropriate tags. The tags are defined by the config file and the version passed to the build binary.

Make Nim docker images official?

2023-03-15 Thread moigagoo
> Looks like you only have one dockerfile setup? No, I have a number of flavors available. There's slim image with just the compiler, a larger image with nimble, an onbuild image to be used as a base for apps. There are two base images too: Ubuntu and Alpine. The Dockerfiles are generated from

Make Nim docker images official?

2023-03-12 Thread moigagoo
I'm all for passing the repo to nim-lang organization. Another important thing that's missing now is CI integration.

Template in template: should this work?

2023-03-11 Thread moigagoo
Sigh... Unfortunately, Araq's ugly hack won't let be pass multiple VNodes into the proc. You always need to wrap the content in an additional div or something.

Template in template: should this work?

2023-03-11 Thread moigagoo
It's very useful, thanks! I think I'll go with the do notation.

Template in template: should this work?

2023-03-11 Thread moigagoo
> Well for one the signature of bar in your example is (string, untyped) and > you are only giving the untyped parameter. That's a typo, sorry. > But beyond that this really depends on the DSL at hand. Thanks for the detailed response!

Template in template: should this work?

2023-03-10 Thread moigagoo
I'm working on component system for Karax as part of my Sauer tool. One of the things I want to standardize are container components: the kind of components that have content in them. Like a panel or a layout. My approach is that a component exposes a `render` template that accepts a code block

Overflow Checks

2023-03-06 Thread moigagoo
To add to the previous comments, if by unsigned you really mean positive, use Positive or Natural types. Then you'll have your checks, both for positivity and overflow.

This month with Nim - February 2023

2023-03-02 Thread moigagoo
Kraut and Climate. Kraut is a router for Karax, Climate is a CLI lib. * <https://github.com/moigagoo/kraut> * <https://github.com/moigagoo/climate>

This month with Nim - February 2023

2023-03-02 Thread moigagoo
Oh, snap! Missed this one, will have to hop on the next one with Norm updated and my two new packages :-)

JS backend: Can't return a proc that iterates over an openArray

2023-03-01 Thread moigagoo
Thanks for the good point! I'll update my code, I like your variant. It's clear and safe. My PR that enables this syntax for JS brackend has already been merged. So I think it may stay there. The current behavior is probably better than the obscure compiler error.

Norm 2.0.0

2023-02-27 Thread moigagoo
The first Norm version with Nim 2.0 support is officially released: <https://github.com/moigagoo/norm/releases/tag/2.7.0> 🍾

Nimble package submission process broken?

2023-02-27 Thread moigagoo
Thanks! Well, I'll wait then :-)

Nimble package submission process broken?

2023-02-27 Thread moigagoo
I'm seeing 27 open PR in the packages repo: Some have been sitting there for days, some for weeks. Is this the way it's supposed to work? Are we waiting for a human to merge them?

JS backend: Can't return a proc that iterates over an openArray

2023-02-26 Thread moigagoo
> If I'm not mistaken, you can't really close over an openArray because it's > just a pointer+size pair I think, from the JS backend perspective, open array and sequence are indistinguishable. It's just that currently `openArray` is just missing from `compiler/jstypes.nim` entirely, so I think

JS backend: Can't return a proc that iterates over an openArray

2023-02-26 Thread moigagoo
> I do not understand the code, you try to do a Closure? This is just a stripped down code sample to demo the issue. I'm working on a router for Karax. To do that, I need a proc that returns a proc. And this proc in turn would have to check the available routes, meaning iterating over them. It

JS backend: Can't return a proc that iterates over an openArray

2023-02-26 Thread moigagoo
Consider this code sample: proc foo(arr: openArray[string]): proc = result = proc = for i in arr: echo i const arr = @["qwe",] discard foo(arr) Run This won't compile: Error: internal error: genTypeInfo(tyOpen

Proc type won't match despite identical signatures

2023-02-26 Thread moigagoo
You're right, the syntax is incorrect in the message you're replying to. But you can see it failing with the proper syntax downstream.

Proc type won't match despite identical signatures

2023-02-26 Thread moigagoo
OK, I made it compile. 1. I forgot to convert string to kstring in `r` definition. Fixed. 2. I've explicitly added `{.noSideEffect, gcsafe, nimcall.}` to the `Route` definition. Here's the working version: import std/tables import karax/[karaxdsl, kbase, vdom]

Proc type won't match despite identical signatures

2023-02-26 Thread moigagoo
Changing seq to openArray doesn't help.

Proc type won't match despite identical signatures

2023-02-26 Thread moigagoo
Here's a more complete example that doesn't compile: import std/tables import karax/[karaxdsl, kbase, vdom] type Context = ref object of RootObj urlParams: TableRef[kstring, kstring] Renderer = proc(context: Context): VNode Route = tupl

Proc type won't match despite identical signatures

2023-02-26 Thread moigagoo
Thanks! No I don't need to use `is`, it's just an example. The problem is that when I later construct an array of `(kstring, Renderer)`, it won't match a proc that expects an `openArray(kstring, Renderer)`.

Proc type won't match despite identical signatures

2023-02-26 Thread moigagoo
Hi! I'm writing a router for Karax and want to formalize what a renderer is. The definition I'm going with is that it's a proc that accepts a Context and returns a VNode. However, when I define a proc with this exact signature, it won't match. Here's a minimal isolated example: i

Nim vs the 6 languages I learned before it

2023-02-13 Thread moigagoo
I've read the article yesterday. Great read, thanks! Hopefully more people see it.

Official Fediverse (e.g. Mastodon) account?

2023-01-08 Thread moigagoo
I think (hope?) it's ironic.

Official Fediverse (e.g. Mastodon) account?

2023-01-08 Thread moigagoo
> The more pressing problem with "create your own" is that it wouldn't be > official. It's not a problem really. When I needed a Docker image with Nim, I just went ahead and created it. It's official enough to me and many other users :-)

Official Fediverse (e.g. Mastodon) account?

2023-01-07 Thread moigagoo
What's wrong with Twitter? I haven't been using it for years. Did it become even worse somehow?

Delete items in a seq while iterating over it?

2023-01-04 Thread moigagoo
If your goal is to filter out elements based on some criteria, I'd say the idiomatic way tondi that would be to use filter/filterIt or keepIf/keepItIf procs from std/sequtils.

Nim book in Japanese

2023-01-02 Thread moigagoo
Oh, it looks so cute! Nya (β—•β€Ώβ—•βœΏ)

Nim book in Japanese

2023-01-02 Thread moigagoo
I've seen several interesting projects in Nim from Japan. So it's definitely known there.

Roadmap 2023

2023-01-01 Thread moigagoo
> there shouldn't be prags Yeah right, let's just remove pragmas πŸ˜’ Really dude, what the heck? Why would you say something like that?

Nimwave - build TUIs for the terminal, web, and desktop

2022-12-19 Thread moigagoo
I see putting things on spinning cubes is your thing πŸ˜…

Nimwave - build TUIs for the terminal, web, and desktop

2022-12-19 Thread moigagoo
OMG that would be so awesome. Especially if the UI would be responsive as the Turbo Pascal IDE was.

Making a upside-down card game: Flipcards

2022-12-11 Thread moigagoo
Somehow completely missed your post. Great to see more games being created with Nim! How was the experience?

Snorlogue - A prologue extension

2022-12-11 Thread moigagoo
Congratulations on the release! Happy to see Prologue growing an ecosystem. And proud Norm helped with this effort. Have you used Snorlogue on production yet?

Show Nim: TheArtButton.ai, a new web Stable Diffusion runner

2022-12-07 Thread moigagoo
Thanks, I used a different email and it worked. 16. 19. I wasn't using a disposable email, it's just that I use DuckDuckGo's email service. Turns out duck.com is in the list of disposable email list.

Show Nim: TheArtButton.ai, a new web Stable Diffusion runner

2022-12-07 Thread moigagoo
I'm not getting the login link to my email. @treeform is this expected?

Forum subscription feature

2022-12-05 Thread moigagoo
@dom96 you probably know the most about how Nimforum works. How would you like to partake in a hackathon and solve some ancient issues and pass you knowledge ot the new generation of maintainers?

Forum subscription feature

2022-12-05 Thread moigagoo
> The search feature is broken. That means that all the question that have been > answered in the past are lost to time unless you remember exactly what was > said and by who. Let's try and fix it? Would you join a hackathon if there was one? > You have no way of saving a post or a comment Tha

Forum subscription feature

2022-12-04 Thread moigagoo
Let's have a hackathon and fix some issues with the forum? I think the lack of subscriptions in not an issue, it's a blessing. But switching to Norm, refactoring the code, and adding the docs would be great. Maybe fix that Like issue (I don't think switching from SPA to traditional site is possi

Forum subscription feature

2022-12-04 Thread moigagoo
Sorry but I can't relate. I have zero issues retrieving posts on this forum. I just visit it from time to time and check unread messages. Am I doing it wrong?

Forum subscription feature

2022-12-03 Thread moigagoo
I guess implementing RSS could me relatively easy. We don't have it yet, the demand hasn't been too high for this feature. However, if you subscribe to the official Telegram or Discord, you'll get notified about new threads.

Forum subscription feature

2022-12-03 Thread moigagoo
Contributions are welcome! By the way, the forum is a great example of software written in Nim.

Advent of Nim 2022

2022-12-01 Thread moigagoo
Oof, let's see for how many days I'll be able to handle this :-) <https://gitflic.ru/project/moigagoo/aoc2022>

Choosing Nim out of a crowded market for systems programming languages

2022-11-26 Thread moigagoo
It's a real-life story, those can't be unopionated. This shouldn't be posted as a official statement on behalf of the Nim team, sure. But as a person sharing there experience, this is a legitimately good story IMHO.

Type macro returning a transformed type def + other definitions

2022-11-25 Thread moigagoo
Generating he right AST can be tricky. One way to do it is to use `dumpTree` on the code you want to generate: nim> import macros nim> dumpTree: type Test = object normalProc: proc(add: int): int proc normalProcGenerated(this: Test, a

Nim 1.6.10 released

2022-11-24 Thread moigagoo
JFYI Docker images were updated.

Looking for a pair programming partner / coach

2022-11-24 Thread moigagoo
Sent you an email :-)

Open XML Spreadsheet (Excel) Library for Nim

2022-11-24 Thread moigagoo
Thank you for the great package! It's packages like this that makes a difference between a mature ecosystem and an immature one.

  1   2   3   >