Any way to compile with `-O2` or `-Ofast`?

2022-08-15 Thread Polarian
I have already asked (and been provided a solution) to this question, see the post below:

Alternative to gravatar for the forums?

2022-08-15 Thread Polarian
This is quite cool, however it does seem very buggy at the moment, would be interesting to see where this project goes. The issue is that the nature of Gravatar is the idea of having a central place to store everyones account info so any site can use their profile pictures etc. Maybe an OpenID-

Math library for renderers and GUIs

2022-08-15 Thread icedquinn
Exiled the game engine specific broadcast functions like `abs` to a separate `vectors/game.nim` for now. Also refactored those on to the broadcast template, and enforced the naming scheme. It should have been `absed`, `maxed`, etc, since the lib generally uses past tense to denote copying functi

Alternative to gravatar for the forums?

2022-08-15 Thread Polarian
Bridges are not the best solution, yes they do allow people to use different platforms, but you got to remember discord is still storing the messages being sent, and the username sending them, it doesn't take a genius to realise that means discord still knows everything you are saying. There is

Alternative to gravatar for the forums?

2022-08-15 Thread Polarian
The analytics have to go man, asap! Its a quick and easy fix, fuck google and get rid of their integration, there everyone happy!

Alternative to gravatar for the forums?

2022-08-15 Thread Polarian
To be devils advocate here, cloudflare is the market leader in their field, they do provide the best support, however this does not mean there are not alternatives and them paths should have been thought about!

Alternative to gravatar for the forums?

2022-08-15 Thread Polarian
Yes well, this can be changed, it is not difficult to migrate the platform which the nim code repositories are hosted on, after all git was decentralised by design, if you really insist not using github there is always the option of mirroring the code to your own git repo and then cloning that,

Why is db_postgres so slow?

2022-08-15 Thread Polarian
Are you using postgres on the same server, or is it over a network. If it is over the network it could be that there is considerable latency, especially if you are accessing a postgres server over the internet (WAN) instead over LAN. The older libpg should not be a massive issue, but it depends

Math library for renderers and GUIs

2022-08-15 Thread icedquinn
no effort has gone in to being compatible with stuff. it's all very bog standard though so they are probably reinterpret castable between libraries.

Math library for renderers and GUIs

2022-08-15 Thread icedquinn
> submit a pull request sourcehut doesn't have those. you either export the patch and mail it or do what you did and ask a maintainer to pull it manually. i should go set up the mailing list. > abs i think there's actually a better way to do that one.

Why is db_postgres so slow?

2022-08-15 Thread jasonfi
You need to look at how the benchmark was implemented, not all are equal, but sometimes this is because of a technical problem with the library. Relatedly, I've just found that a race condition occurs when multiple threads try to open a DB connection with db_postgres. While a lock fixes this, ev

Alternative to gravatar for the forums?

2022-08-15 Thread ElegantBeef
To be fair it does not overly rely on Discord, it has a Matrix space and also has IRC setup. Sadly though the bridge to matrix likes dying, and also there is no auto moderation for matrix spammers.

Alternative to gravatar for the forums?

2022-08-15 Thread Araq
> It's sad how much proprietary software the Nim community relies on. GitHub, > Discord, Gravatar, reCaptcha, Google Analytics, … Yeah, after my holidays this is something we will change.

Math library for renderers and GUIs

2022-08-15 Thread ro2
I love this and I'm interested in contributing! I have a branch here: I'm not familiar with this site so I don't know how to submit a pull request, but here's my first commit: BTW, I'm not sure I'm comfortable

Show Nim: New Pixie 5.0 release with significant performance improvements

2022-08-15 Thread treeform
If you want absolutely smallest PNG files i recommend using some thing like [pngcrush](https://en.wikipedia.org/wiki/Pngcrush) or tinypng that you linked. Our aim was to write a "pretty good" PNG writer with balanced compression and speed. * For super compression using some thing like pngcrus

Alternative to gravatar for the forums?

2022-08-15 Thread juancarlospaco

Why is db_postgres so slow?

2022-08-15 Thread treeform
I can't find Nim's db_postgres benchmarks on Techempower. Do you have a link? It uses the libpq nearly directly it should be roughly same speed as C. Is there a pure C libpq benchmark? Is there a faster library than libpq that nim could use? Postgres itself is not that great with async. In my l

Why is db_postgres so slow?

2022-08-15 Thread rishavs
Hey folks I want to use Nim for server side development but the slow speed of db_postgres is making me hesitant. in the Techempower benchmarks, the db queries for nim stdlib have been benchmarked as being extremely slow. I am opening this forum post to discuss why the postgres driver is so slow

Can't Get Length of Returned Table

2022-08-15 Thread jyapayne
That particular error has always been confusing. The primary helpful information is precisely what @sls1005 and @Hlaaftana suggested. You need to know the proc, the type, and ideally, the context you used it in. All the other overloads are useless unless you meant to use a different type, which

Alternative to gravatar for the forums?

2022-08-15 Thread enthus1ast
Have a look, this post inspired me to play with pixie a little:

if-else VS case-else VS case

2022-08-15 Thread drkameleon
> Are you writing an interpreter? Yep. haha. (And I believe we have talked about similar things in the past... ;-) ) Basically, given that the language is already quite mature and used in different projects, I decided it was high time to start benchmarki

Any way to compile with `-O2` or `-Ofast`?

2022-08-15 Thread drkameleon
Since, apparently the `-O3` option comes from `--opt:speed`, I've tried it again (and again) with this: -d: release --opt:none --passC:-O2 --passC:-fno-ident Run And... I think I got it to work! (admittedly, not really suprised by the outcome; `-O3` seems to be a very

Can't Get Length of Returned Table

2022-08-15 Thread Hlaaftana
Error: no overloads for len(Table[system.string, system.string]) found in scope expected one of: func len(x: (type array) | array): int ... Run

Any way to compile with `-O2` or `-Ofast`?

2022-08-15 Thread drkameleon
I've been trying to run some benchmarks and see how `-O2`, `-O3` and `-Ofast` compare. However, when compiling with either `-d:release` or `-d:danger`, it seems as if Nim sticks an `-O3` regardless of what options have been passed via `--passC:`. So... the question is: is there any way to keep

Program not working on Windows 11

2022-08-15 Thread leeooox
I am not sure it works your Windows OS or not. But for my project, I would like to static build pthread on Windows, it is more convenient to ship a single exe file. `--threads:on` `--passl:"-static"` `--passC:"-static"` `--passl:"-lpthread"` `--dynlibOverride:"pthread"`

Wave: illegal capture ' ' because 'weaveParallelForSection' has the calling convention:

2022-08-15 Thread void09
So I have this piece of code that errors with: : illegal capture 'idsBuf' because 'weaveParallelForSection' has the calling convention: The same code runs fine if not in a proc. Don't know much about weave, read only so much as to put this together. I canno

Program not working on Windows 11

2022-08-15 Thread ingo
> But seriously, I strongly advice if you are using a language such as nim to > code on linux, not only is linux nicer to use for developers, but it provides > more support for c compilers, as nim is a transpiled programming language. Is that what you tell your customers when you deliver another