Faster Euclidean algorithm

2024-08-21 Thread demotomohiro
I recently found several ways to implement Euclidean algorithm. This code has 7 different gcd funcs implements Euclidean algorithm and measures the runtime speed of them. * gcd: gcd copied from math module in Nim's stdlib

https://groups.google.com/a/gtrainerdemo.dda.education/g/gfe/c/QLaD7UjZEyg

2024-08-21 Thread Jackiebartion
VitraLabs Blood Sugar Stabilizer is a dietary supplement formulated to help regulate and maintain healthy blood sugar levels. It is designed for individuals who are managing conditions like prediabetes, type 2 diabetes, or those who are looking to support their overall metabolic health. The supp

Atlas shrugged...

2024-08-21 Thread Araq
Feedback on this idea appreciated:

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 PMunch
We have a couple other moderator updates that we wanted to bundle into one post. The 0.8.5 version is basically the exact same as the 0.8.4 version but now under the nim-lang GitHub organisation. It's only to be able to tell which version you're using. More updates will come soon!

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

Fusion OS: a hobby kernel written in Nim

2024-08-21 Thread Araq
> In a way it's no different than caching a pointer to an arena-allocated chunk > that may outlive the arena context. Maybe I'll think of migrating resources > up the context tree if their owner changes? It is not different indeed. And once you have "migration" you effectively have a system wit

Enabling compression on socket send/receive.

2024-08-21 Thread void09
not sure what you mean there Araq. That is what I want to accomplish here, write 3 procs, sendUncompressed, sendGzip, sendDeflate, and when compression is enabled, just do client.sendProc = sendGzip or whatever. And all socket sends are handled by client.sendProc(data: string). I am stuck at thi

Fusion OS: a hobby kernel written in Nim

2024-08-21 Thread khaledh-nim
> The world is often stuck in a limited view of just "What caught on, often in > a limited community for historically contingent reasons" and declaring > something a hobby/research is often a good way to break out of that mold. That's exactly why I'm doing it. There are too many Unix-like OSs, b

Request for feedback: `destructor` macro

2024-08-21 Thread lou15b
I guess my years working with C++ back in the day have tainted my brain. :P I have to think about what you've said. Many thanks.

Enabling compression on socket send/receive.

2024-08-21 Thread Araq
The `if` is only everywhere when you fail at using wrapper procs for send/recv consistently.

Request for feedback: `destructor` macro

2024-08-21 Thread Araq
` `=destroy`(x.field.addr[])` is a symptom, not the cause. The cause is you do something you shouldn't do. The compiler composes a perfectly fine destructor on its own. Here is when you need a custom destructor: When your type has a `ptr` or "handle like" integer type and you want to free the c

Fusion OS: a hobby kernel written in Nim

2024-08-21 Thread Araq
> One thing I'd like to experiment with in Fusion is kernel-tracked contexts. Do what you think is worth doing, of course, but I cannot imagine this to work well. It only invites bugs as pure stack based memory management is very limited. Maybe the web request opens a connection to a database, s

Enabling compression on socket send/receive.

2024-08-21 Thread void09
I am trying to write a NNTP client for nim, for some reason this basic ancient protocol is not implemented in any lib I could find. NNTP protocol allows for gzip or deflate compression. I know an if boolean for every send is not a big deal, but if it can be done better, by swapping assigned proc

I created an RPN calculator.

2024-08-21 Thread enthus1ast
Forth? :)

Fusion OS: a hobby kernel written in Nim

2024-08-21 Thread khaledh-nim
>From a kernel point of view, a resource used by a process (e.g. file, socket, >channel) is just an entry in some process resource table. The entry is created >when the process asks for the resource, and is removed when it's done with it. >The kernel itself has no awareness of >_[when](https://

Fusion OS: a hobby kernel written in Nim

2024-08-21 Thread cblake
Kernel-tracked contexts/scopes (along the lines of transactions for DBs) is an interesting idea. If memory allocation { sbrk/mmap(anonymous)/etc. } is a part of that, it could actually _include_ a variant of arena-style memory management. Hierarchy may also be interesting (as with nested transa

Request for feedback: `destructor` macro

2024-08-21 Thread lou15b
I'm trying to link your comments to what specifically in the code you object to. After thinking about it overnight, here are my guesses. Are they correct? It is usually a bad idea to interfer with the compiler in ways unforseen by the compiler devs ;-) Run Does this r

Which IDE to use in 2024?

2024-08-21 Thread mszs
I might be one of the few on this forum who uses emacs, but I do recommend it. I'd say any investment to learn it will pay off over time IF you start using it for most of your text-based work (email, report writing, project planning, grading, IRC,...).

choosenim 0.8.5 release announcement?

2024-08-21 Thread Clonk
Since 2.2 is around the corner, I think they'll be a wave of announcement when that comes out (I could be wrong)

Mastering Nim: Table of Contents?

2024-08-21 Thread nimbool
Thanks!

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

Forum logo issue

2024-08-21 Thread PMunch
I can't speak for the initial decision since that was taken by someone else a long time ago. But I'm not opposed to switching it to an SVG and improving accessibility. Make a PR for it and if there was a good reason for it to be a PNG people can comment on it there. Otherwise we can merge it in

yahttp - simple HTTP client

2024-08-21 Thread mishankov
⛵ v0.13.0 is available Support for sending files was added -

https://fitsmartfatburnerdragonsden.company.site/

2024-08-21 Thread johanchsh
FitSmart Fat Burner Dragons Den :- L-Carnitine, an amino corrosive subsidiary remembered for the FitSmart recipe, assumes a double part by helping with the transformation of put away fat into usable energy and by advancing muscle safeguarding.

Where to Buy FitSmart Fat Burner Dragons Den? Amazon, Walmart Or Official Website?

2024-08-21 Thread Carolynaines
FitSmart Fat Burner Dragons Den:- It's not unexpected to neglect to take Stomach Equilibrium Parasite Purify, so ddon'tpanic assuming that this occurs. Normally, two pills each day are the proposed portion WEBSITE:- Official Website

Fusion OS: a hobby kernel written in Nim

2024-08-21 Thread cblake
@grd (Araq obv. knows this), the OS does clean-up everything it can automatically, but to the OS, a "scope" is a "process". So, you do not need to free memory or close file handles or sockets or memory maps if your program logic knows a process is about to die & be reaped by the OS "soon enough"

Forum logo issue

2024-08-21 Thread Zoom
1\. Is using a PNG instead of an SVG a thought-out decision? The only reason to prefer it I can think of is compatibility, but nimforum is a PWA (I call em RWA) so this matter is out of the window anyway. The [official logos](https://github.com/nim-lang/assets) were redrawn and optimized recentl

https://www.facebook.com/BellyBalanceNZPrice/

2024-08-21 Thread BellyBalancNZ
Belly Balance New Zealand The FDA has not evaluated Belly Balance New Zealand, as it's far a nutritional complement, now not a pharmaceutical drug. However, it is certified through Good Manufacturing Practices (GMP), which ensures it meets exquisite and protection requirements. It’s critical to

https://www.facebook.com/PolarCoolingUS/

2024-08-21 Thread polarcoolingbuyinus
Buy Now Official website:- MAIN BLOGS :-

Fusion OS: a hobby kernel written in Nim

2024-08-21 Thread grd
Offtopic: As a guy who absolutely knows nothing about OS / kernel design, there is something that bothers me a lot: Why do I always need to close things? Why can't the kernel or the PL do that for me? I mean, at some point it just goes out of scope. Why do I need to manually close things? The t

Fusion OS: a hobby kernel written in Nim

2024-08-21 Thread Araq
The Nim PL can do that for you with the destructors feature. However, most of the standard library has yet to be ported to Nim v2 to do that. The OS cannot do it for you as the OS does not know the type layouts at runtime, for the OS the running process is mostly pages of random bits.