Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread moigagoo
Looks nice! One general advice is not to use central alignment for paragraphs, use left alignment.

Nim website front page redesign (unofficial and WIP)

2020-08-08 Thread moigagoo
You should give the mobile version some love. It looks generally nice but there are overlapping and padding issues.

programmatically create variable in context, using template

2020-08-17 Thread moigagoo
You sure can! Use `inject` pragma. Here's an example: [https://github.com/moigagoo/norm/blob/develop/src/norm/sqlite.nim#L36](https://github.com/moigagoo/norm/blob/develop/src/norm/sqlite.nim#L36)

nim.town is a shared domain for nim projects, developers, organizations, etc

2020-08-21 Thread moigagoo
Nice idea! I've sent you a request for norm.nim.town.

nim.town is a shared domain for nim projects, developers, organizations, etc

2020-08-21 Thread moigagoo
Can we have docs.nim.town redirect to [https://nim-lang.org/documentation.html](https://nim-lang.org/documentation.html)?

nim.town is a shared domain for nim projects, developers, organizations, etc

2020-08-21 Thread moigagoo
Pretty cool! Norm has a new home at [https://norm.nim.town](https://norm.nim.town) now.

nim.town is a shared domain for nim projects, developers, organizations, etc

2020-08-21 Thread moigagoo
docs.nim.town gives me a 404.

nim.town is a shared domain for nim projects, developers, organizations, etc

2020-08-25 Thread moigagoo
.town → nimble.directory Also, may I please have norman, loco, and moigagoo?

Brainstorming ideas to improve Nim's landing page

2020-08-28 Thread moigagoo
First, thank you for starting this thread. Second, I agree with most of your points, but I don't have the time to write a better copy. Third, I think one thing that would help a lot is language comparison. When you decide on whether to invest time in a language, you don't just evaluate its fea

We should make it simpler for authors to have their blog featured on the Nim front page.

2020-08-28 Thread moigagoo
I've also suggested bounties for blog posts, and I'll shamelessly use this thread to do that again :-)

What about simplifying if-else statements ?

2020-09-01 Thread moigagoo
Definitely not. Adding syntax is very expensive and the payoff is miniscule and the syntax of choice is arguable. The current syntax for if and case are all right.

OOP translation help

2020-09-05 Thread moigagoo
Could you please give an example of a problem you're solving?

Norm 2.0.0

2020-09-07 Thread moigagoo
This type definition is not enough to debug your case. Please provide the code you used to create the objects. In the model, you are defining type relationships, not object relationships. So, a1 and a2 may point to the same object or different objects. The provided model definition defines a on

Norm 2.0.0

2020-09-07 Thread moigagoo
Duplicating my response from the issue: I've created a demo app that I use to test Norm and Norman more or less olin the wild. It has an example of one to many relation: <https://github.com/moigagoo/shop-api/blob/develop/src/app/models/subpurchase.nim> Here, a full purchase is

Norm 2.0.0

2020-09-09 Thread moigagoo
There are a few unrelated topics here, I'll cover them one by one. **1\. One-to-many in Norm** > . But it seems a little counter intuitive to me. If a purchase is composed of > subpurchases, my natural approach would be to define a purchase object with a > seq of subpurchases. But if I understa

Norm 2.0.0

2020-09-10 Thread moigagoo
Boy oh boy, did that bug fix turn into a major version bump with an API change: <https://github.com/moigagoo/norm/pull/83> Thanks for reporting the issue! Apparently, the way `JOIN` statements were generated was just broken.

Version 1.4.0 released

2020-10-17 Thread moigagoo
Congrats! My personal favorite with this release is the docgen improvement. And `nim r` is great too!

Version 1.4.0 released

2020-10-17 Thread moigagoo
Fresh batch of Docker images has been published to Docker Hub:

How to pass arguments with NIM?

2020-10-18 Thread moigagoo
If you're making a CLI, I highly recommend [cligen](https://nimble.directory/pkg/cligen).

What Nim projects are you working on?

2020-10-22 Thread moigagoo
I'm just procrastinating on fixing that nasty bug with NULL values in Norm 😂 The larger goal being gluing Karax, Jester, and Norm + Norman as a framework to develop webapps 100% with Nim, with shared model definitions for backend and frontend, RESTful API backend and websocket or ajax based comm

Norm 2.0.0

2020-10-26 Thread moigagoo
performance. [See the changelog](https://github.com/moigagoo/norm/blob/develop/changelog.rst#220-october-26-2020) I'd like to thank all [contributors](https://github.com/moigagoo/norm/graphs/contributors) that helped by creating issues and sending PRs.

Nim 1.2.8 and 1.0.10 are released

2020-10-27 Thread moigagoo
I guess I should rebuild images for 1.2.8 and 1.0.10 as well.

Enu - 3d live programming and game dev in Nim

2020-10-27 Thread moigagoo
Just wanted to say thank you for your amazing work with Enu. Demo looks very impressive, it's a shame my son is too young to learn programming otherwise I'd be using Enu :-)

Sublime Text user experience

2020-10-30 Thread moigagoo
I use ST with nimlsp and it works great. There's currently only one issue I find critical, it's reported and waiting to be fixed (it's something to do with Windows paths, nothing extraordinary).

strange syntax - please explain

2020-11-08 Thread moigagoo
Well you don't have Nim's flexible function call syntax in a dozen other programming languages. If using this particular code formatting is crucial to you, Nim is probably not your choice. On a personal note, I find this code style absolutely ugly and actually like that the Nim compiler wouldn'

Norm 2.0.0

2020-11-10 Thread moigagoo
Norm 2.2.1 has just been released. The biggest feature in this release is [manual foreign key management](https://norm.nim.town/#manual-foreign-key-handling). You can now omit Norm's automatic foreign key handling to optimize JOIN queries. The cost is that you'll have to fetch related objects m

Norm 2.0.0

2020-11-10 Thread moigagoo
It's great, just missing a good tutorial. There's [this nice intro](https://dev.to/xflywind/how-to-use-testament-in-nim-1l0h) but it covers only the basics. I feel that testament is large enough to deserve a series of articles or a book.

Nim based Firmware -- it's tiny!

2020-11-12 Thread moigagoo
For a complete noob in the area, could you please add a little bit more information about what the firmware does and what it's for? All the things you wrote sound very exciting, and it's a shame a can't understand most of it. I'd really like to share your joy :-)

Nim based Firmware -- it's tiny!

2020-11-14 Thread moigagoo
Thanks a lot! Now I want to set my feet in microcontroller programming with Nim :-) Any tips or tutorials for a beginner? I guess this is a question to @dom96 too since he's hobbying the crap out of that topic.

are nim exceptions "zero cost" (on error-free execution) ? (if so, `defer` should be used more)

2020-11-17 Thread moigagoo
Huh, my reaction after reading the updated doc was a complete opposite: I now want to rewrite `try-finally` blocks in Norm into `defer` 😂 I didn't know it was called at the end of the call site block, I think it's a nice feature ¯_(ツ)_/¯

Empty proc body

2020-11-17 Thread moigagoo
Also the colon is redundant.

Empty proc body

2020-11-17 Thread moigagoo
Just put a discard statement there.

Empty proc body

2020-11-17 Thread moigagoo
I believe the parens are optional, too. func doNothing = discard Run

How to hot reload a Jester web app?

2020-11-19 Thread moigagoo
Could you please post a link to a working example when you're done? I'm very much interested in setting up hot reloading with Jester but never got it to work.

NimSuggest Not Working with Karax's or Jester's Macros

2020-11-22 Thread moigagoo
So, I'm having pretty blocker-level issues with NimSuggest, Jester, and Karax. Before I proceed to report them, I'd like to ask the comminity if that's really how thing roll for everybody now. I'll be happy to know that there's something I'm doing wrong and fix it. So far, I'm clueless. Looks li

NimSuggest Not Working with Karax's or Jester's Macros

2020-11-22 Thread moigagoo
> nimsuggest crashing/getting hung up in an endless loop are things I > experienced myself and read other's have experienced as well. Do you know any workaround for that? > And checking for errors via nimsuggest is also not that accurate, which is > why often nim check is often used for that.

NimSuggest Not Working with Karax's or Jester's Macros

2020-11-23 Thread moigagoo
> nimlsp (even the latest which tries to find the project file) and both vscode > extensions (Nim one is slightly better) just plain don't get the whole > project setup correct. The VSCode extension allows to set the project file manually. And NimLSP seems to get the project file right in many

Automatically generated JS library wrappers?

2020-11-27 Thread moigagoo
I'm experimenting with Karax, implementing basic concepts like routing, animations, "load more," trying to find good patterns with regard to components, styling, and code organization. The next feature to implement is Google Sign-in. To make it work, I need to plug in a script that exports gaut

How to hot reload a Jester web app?

2020-11-28 Thread moigagoo
What's the easiest way to rebuild and restart a running server though? I usually stop it with ctrl+c then run nimble run. But that's hard to automate.

How to hot reload a Jester web app?

2020-11-28 Thread moigagoo
Recompilation will fail because the binary is in use. So, kill first, then recompile and run. Killing the process might be tricky on posix since you'd need to get the PID by binary name first but it's doable. On Windows it's easier with `ps app.exe | kill`. I just thought there was an easier w

How to rewrite nim programming langauge to be pythonic as possible?

2020-11-28 Thread moigagoo
I'm rooting for Araq here. I'm not a Nim core developer and still feel offended by the initial question. Asking a question with this particular wording implies several thoughts I find ill-conceived: * Nim doesn't conform to the Zen of Python, which is generally accepted as a “good” thing, th

How to rewrite nim programming langauge to be pythonic as possible?

2020-11-28 Thread moigagoo
> Plus it's just as fun to write in as Python! The only other language that > gave me such joy was Python itself lol This is exactly what I meant with my breathe of fresh air reference. It's all about having fun and being a bit happier doing this whole programming thing!

I make my first $ with Nim in two days

2020-11-28 Thread moigagoo
I can't be the only one who thought you developed your first `$` function 😂 Congrats, that's very inspiring!

How to rewrite nim programming langauge to be pythonic as possible?

2020-11-29 Thread moigagoo
...or the ability to work on Windows.

How to rewrite nim programming langauge to be pythonic as possible?

2020-11-29 Thread moigagoo
But you can easily do that in Nim already: while (let y = fact(x); y > 0): Run

FOSDEM 2022 call for Nim Devroom (deadline tomorrow)

2021-11-14 Thread moigagoo
What kind of commitment does it take to be a volunteer? I'd love to help and maybe even do a talk but I'd hate to let you down by not being able to dedicate a full weekend to the event. If it's about being online chatting with strangers for a few hours, I'm in.

FOSDEM 2022 call for Nim Devroom (deadline tomorrow)

2021-11-14 Thread moigagoo
Count me in!

Updating Nim Days

2021-12-03 Thread moigagoo
@aredirect nimibook is great, I've moved Norm docs to it and it allowed me to remove copy-pasted outputs after code samples because nimibook renders output automatically.

Advent of Nim 2021

2021-12-03 Thread moigagoo
I'll never get tired of your excellent blog posts :-) You should start a podcast or something. And the experiment with paramidi and nimibook is just beautiful!

`Result` update

2022-01-01 Thread moigagoo
What is `Result` in the first place?

Made in Nim 2021 - your favorites?

2022-01-05 Thread moigagoo
* Enu * Nimib * Ansiwave * Turing Complete * cps (although I still don't really understand how it works and how to use it) I probably forgot something though. There have been many cool projects on my radar last year.

Made in Nim 2021 - your favorites?

2022-01-05 Thread moigagoo
Oh, there's also fidget! It's a shame we haven't heard about fidget 2 in a while, the project is awesome.

Made in Nim 2021 - your favorites?

2022-01-06 Thread moigagoo
Great project! I knew I missed something :-)

One Language to Rule the Mole

2022-01-07 Thread moigagoo
I love the joke and the slogan. I wouldn't mind it being the official Nim motto at all :-) Anyway, I like it better than the "them all" thing, which is kinda overused and unoriginal. It also has the self irony component which is important.

One Language to Rule the Mole

2022-01-07 Thread moigagoo
I just wanted to say that I like Araq's thought of Nim being _[the](https://forum.nim-lang.org/postActivity.xml#the) language to use in most domains. It fits really well with the Zen of X spirit: zen isn't about the rationalizing things, it's about sensing things, and thus statements like this

One Language to Rule the Mole

2022-01-07 Thread moigagoo
Huh, why not? Nimole sounds great IMO ¯_(ツ)_/¯

One Language to Rule the Mole

2022-01-09 Thread moigagoo
Oof, Krtek brings back dark childhood memories 😂 I know it has a special place in a lot of people's hearts, but I'm happy we can't use it for Nim due to copyright issues :-)

A love letter to SciNim

2022-01-22 Thread moigagoo
Just saw another great lib published by SciNim initiative, Measuremancer. Every time that happens, I can't contain my excitement. This is so damn good! Just reading the guides feels so pleasant! The only thing I'm not satisfied with is I'm not a data scientist or any scientist and so there's li

Possible bug with recursive types and Options

2022-01-29 Thread moigagoo
none Foo): Foo = Foo(parent: parent) Run $ nim r foo.nim Hint: used config file 'C:\Users\moigagoo\.choosenim\toolchains\nim-1.6.2\config\nim.cfg' [Conf] Hint: used config file 'C:\Users\moigagoo\.choosenim\toolchains\nim-1

NimForum 2.2.0 - Fixes a big CVE!

2022-01-29 Thread moigagoo
Seems like this update broke Telegram integration somehow :-) The forum updater stopped updating after this post.

Possible bug with recursive types and Options

2022-01-30 Thread moigagoo
Thanks! I'll report my case. Unfortunatey, I can't use the proposed fix. I'm describing a Norm model and each object field corresponds to a DB column, so I can't just add fields.

NimForum 2.2.0 - Fixes a big CVE!

2022-01-30 Thread moigagoo
You have a point there. Nimforum is not perfect and can't compete with Discourse. However, it's not that bad either. Here, we've listed some issues it has: 1. Full-text search yields irrelevant results. 2. Comment and thread history accessibility is limited. 3. Random logouts. 4. Loading

Nim 1.6.4 release candidate

2022-02-02 Thread moigagoo
Can't install 1.6.4 on Windows: choosenim "#version-1-6-4" Downloading Nim version-1-6-4 from GitHub [##] 100.0% 0kb/s Extracting version-1-6-4.tar.gz Building Nim #version-1-6-4 Warning: Building from latest C

Nim 1.6.4 release candidate

2022-02-02 Thread moigagoo
> Please re-read the first post. The command you need to run is choosenim > "#version-1-6", not choosenim "#version-1-6-4". Hmm, I just thought it was a typo. Because running "choosenim "#version-1-6"" doesn't update Nim to 1.6.4. Instead, I get switched to 1.6.0.

Nim's autoformatter situation

2022-02-02 Thread moigagoo
Not sure if it's helpful, but on Windows you have PowerShell which allows for all sorts of cool things: $ ls -R tests *.nim | %{nimpretty $_} Run or, if you prefer the `**` syntax: $ ls tests/**/**.nim | %{nimpretty $_} Run You can parallel

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.

Nim 1.6.4 release candidate

2022-02-04 Thread moigagoo
> Can you please try choosenim update "#version-1-6"? That worked, thanks.

Exceptions - Handling multiple exception types in a single except clause

2022-02-06 Thread moigagoo
I think you can pass an array of exceptions: except [ValueError, RuntimeError] Run

Enu - 3d live programming and game dev in Nim

2022-03-05 Thread moigagoo
Thanks a ton for your work and this release!

Fidgets: widgets using Fidget

2022-03-30 Thread moigagoo
I'm currently looking for the right tool to implement a desktop app with. Fidget looked like a great option but it has a certain abandonware vibe around it. However, this changes everything™. If there's a ready to use library of UI components for Fidget, it becomes more or less a production rea

Hello Javascript!

2022-05-08 Thread moigagoo
Nobody asked for my opinion, but here it is nonetheless :-) I really like coding frontend in Nim with Karax. It's light and simple, I can use whatever component structure I want, editor support is really good, and I get all the benefits on Nim: readability, types, flexible syntax.

Nim 1.6.6 released

2022-05-08 Thread moigagoo
Uploaded new Docker images to Docker Hub. Sorry about the delay.

Fidgetty: themes ... ?

2022-05-14 Thread moigagoo
I really want to help with Fidgetty but I'd need some direction from you to get started. Would you mind having a call with be and have a half hour pair programming session?

Fidgetty: themes ... ?

2022-05-16 Thread moigagoo
Great! Sent you an email.

Show Nim: Guzba and I are publishing YouTube videos discussing our work in Nim

2022-05-28 Thread moigagoo
What a pleasant way to start a Sunday! Thank you for the initiative, love your work 🙏

Mastering Nim: A complete guide to the programming language

2022-06-23 Thread moigagoo
Great news, thank you so much for your work 🙏 I'm buying the book, love them paper books personally, totally agree with you.

Writing a shared lib for Android

2022-06-24 Thread moigagoo
Hi! I'm trying to write a shared library with Nim to be used in an Flutter Android app. The plan was that I'd compile a .so file, give it to the mobile dev, and they'll just put it next to the source files and call it via Dart's FFI. Worked pretty sweet on the desktop. But when we tried to mak

Writing a shared lib for Android

2022-06-24 Thread moigagoo
Do you have maybe a sample project I could take a look on? I promise to copy your homework so that it's not that obvious :-) I wonder what kind of project structure it takes to actually have a usable shared lib.

Nimib with release 0.3 becomes interactive

2022-08-03 Thread moigagoo
Congrats! Nimib and Nimibook are awesome, love using them to document Norm. Did you ever faced an issue when the rendered documents have brackets and commas around text blocks? Check it out: Maybe something changed in some version of Nimib? I have no clue why this happen

Nimib with release 0.3 becomes interactive

2022-08-03 Thread moigagoo
Thanks! This did help. I had to update the configs here and there a bit but in general the update went smooth and painless. Great job! Also, HUGE thank you for improving up the build time so much. All in all, 0.3 is a really good update, loving it.

Nim 1.6.8 released!

2022-09-28 Thread moigagoo
Docker images for 1.6.8: [https://hub.docker.com/repository/docker/nimlang/nim/tags?page=1&ordering=last_updated](https://hub.docker.com/repository/docker/nimlang/nim/tags?page=1&ordering=last_updated)

This Month with Nim: September 2022

2022-10-06 Thread moigagoo
+1 The recently merged default values for objects feature is great news, more people should know about it.

A better looking Nimble (web, design, feedback, ideas)

2022-10-09 Thread moigagoo
So when's the release?

Hello Javascript!

2022-10-14 Thread moigagoo
> No, it's really not an existential issue. It's a scam. The real problem is > the WEF with its crazy plans for "transhumanism". Man, I love you.

Jetbrains updated its Nim Plugin!

2022-11-17 Thread moigagoo
If you like Vim, you could like Onivim 2, which has good Nim support.

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.

Looking for a pair programming partner / coach

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

Nim 1.6.10 released

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

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

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.

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>

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.

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-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-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-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-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?

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?

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.

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?

  1   2   3   >