Which VSCode plugin do you recommend?

2024-07-06 Thread cheer
I'm unaware if you resolved this problem already, but for people who were looking to diagnose this `could not load: pcre64.dll` issue and have installed nim from scoop like me, add `"$(scoop prefix nim)\bin"` to your `Path` variable. The manifest doesn't do this by default (though there's an iss

Releasing Constantine v0.1.0 - A modular cryptography stack for blockchain and proof systems

2024-07-06 Thread pietroppeter
# ๐Ÿ‘๐Ÿ‘๐Ÿ‘ ๐Ÿ—๏ธ

Questions on the current stage of concepts

2024-07-06 Thread ElegantBeef
Generic procedures are just splendid, this seems to be a bug that it fails to validate that it's possible to instantiate the generic after sem checking type Addable = concept c, type T c + c is T Coll = concept c typeof(c.items) Addable

Questions on the current stage of concepts

2024-07-06 Thread MisterDrgn
Thanks for the feedback. I tried {.explain.}, but it didn't seem to do anything. I've been looking for a programming language with this weird/arbitrary combination of features: 1. Good support for functional programming, or enough flexibility/abstraction that you can implement functional prog

Questions on the current stage of concepts

2024-07-06 Thread MisterDrgn
Thanks for the suggestion. I tried this out, and although it works, AddableColl appears to end up being identical to Coll, rather than incorporating the additional "Addable" constraint. For example, it allows you to calls @["0", "1", "2"].sum, and you only get the error inside the function when

Questions on the current stage of concepts

2024-07-06 Thread ElegantBeef
Even though new concepts exist I find they have many jagged edges as they're a even less used than their old style counterparts. I imagine the `proc +(a, b: T): T` is the problem here but I did not check. A working implementation that uses the new style concepts is the following. t

Questions on the current stage of concepts

2024-07-06 Thread mratsim
Quoting myself on July 1st: > And I think it's quite important to document and give examples of "new > concepts" > If we want to have > a strong ecosystem that

Nimble incorrect package structure warning: What is going to be?

2024-07-06 Thread planetis
Done,

Nimble incorrect package structure warning: What is going to be?

2024-07-06 Thread Araq
> If not, do you accept PRs to remove it? Oh god yes! Bring it on!

Nimble incorrect package structure warning: What is going to be?

2024-07-06 Thread mratsim
Nop that warning should disappear. I've said so countless times on the ~3 RFCs on package structures.

Compiler time type checking in Nim

2024-07-06 Thread planetis
I am not an expert in concepts, but I would assume as it's experimental feature a lot of things don't work. As for docs the RFC you linked might be the only place they're documented right now. But there's also an older variant that's has received more [work](https://nim-lang.github.io/Nim/manua

Questions on the current stage of concepts

2024-07-06 Thread MisterDrgn
(I'm deleting an old topic, because my assumptions were wrong.) Can anyone point me to the latest guidance on using concepts? I believe the documentation in the manual is out of date. The best guidance I've found is in this RFC: However, I've having

Problem with a highly recursive function

2024-07-06 Thread mratsim
release is needed otherwise GCC/Clang don't enable tail-call optimization (TCO). Your alternatives is either to rewrite the function to be non-recursive, or use a trampoline or find the GCC/Clang flag that triggers TCO.

Why is the implicit `result` so widely used?

2024-07-06 Thread Araq
You can use procs and templates to avoid excessive nesting and then you can still see the join points in the control flow graph, whereas you lose them with `return`. But hey, what do I know about formal reasoning...

Compiler time type checking in Nim

2024-07-06 Thread MisterDrgn
It looks like my understanding was pretty far off. For example, the code below works and is checked at compile time. Maybe my issue is with finding the right documentation on concepts. To write the example below, I had to use the RFC: Thanks for th

Problem with a highly recursive function

2024-07-06 Thread Araq
Surely there is a way. Use the Y combinator. :P

Problem with a highly recursive function

2024-07-06 Thread DougT
ack(3,14) runs ok if d:release is used. So the question should be modified to ask if there is a way to run the function without d:release or d:danger

Why is the implicit `result` so widely used?

2024-07-06 Thread RegularAlias
Deep nesting is just as bad as linear programming for the following reasons: 1. When you start with deep nesting, it leads to confusion because: a. You quickly lose track of your main point, which results in problems such as: i. The main point being buried under l

Compiler time type checking in Nim

2024-07-06 Thread planetis
> but you will get a runtime exception if you pass the function a value whose > type can't be added. ...but type checking a value for being consistent with a > concept is done entirely at runtime. No, neither of these things are true, nim is a compiled language, thus generic type mismatch error

Highly recursive function problem

2024-07-06 Thread DougT
this is a test

Compiler time type checking in Nim

2024-07-06 Thread MisterDrgn
Hi folks, I was thinking about getting back into Nim, and I was hoping someone could clarify the state of type checking in Nim for me. My understanding is that Nim does less compile time type checking than many other statically typed languages. Notably: 1. When you define a generic function w

Nimble incorrect package structure warning: What is going to be?

2024-07-06 Thread planetis
It has been reported [numerous](https://github.com/planetis-m/naylib/issues/123) [times](https://github.com/planetis-m/naylib/issues/80) [already](https://github.com/planetis-m/naylib/issues/112) in my library. New users of nim are often confused and scared by this warning. It creates anxiety,

Problem with a highly recursive function

2024-07-06 Thread DougT
The Ackermann function is non primitive recursive (See the wikipedia article). Is there any way to run ack(3,14) without using d:danger. Using -d:nimCallDepthLimit does not work since the value must be a 16 bit int. proc ack(m,n:int) : int = if m == 0 : return n+1

Claude 3.5 (Sonnet)

2024-07-06 Thread RegularAlias
It was my own fault for not even considering it might have been as simple as a typo because I had been running it by GPT 4o, which may or may not speak to something about the false sense of security a developer can get when working with LLMs. Going forward I will have a better sense to go about

Claude 3.5 (Sonnet)

2024-07-06 Thread nasl
Sometimes (when the load is high?) ChatGPT 4o gets dumb.

Why is the implicit `result` so widely used?

2024-07-06 Thread Araq
The decision tree is there whether you use indentation to outline it or not. If you don't like indentation, fine, but then assembler becomes very attractive.

Releasing Constantine v0.1.0 - A modular cryptography stack for blockchain and proof systems

2024-07-06 Thread mratsim
For those interested in Nim performance vs C, Rust, Go implementations of the same algo, I have made a comprehensive post at

Why is the implicit `result` so widely used?

2024-07-06 Thread GoteGuru
Seems to be pretty invalid reasoning. This want to be an imperative language. In imperative languages the _main_ structural element of the code is the _order_ of the instructions. Branches are secondary structural elements. If we have early exit, we are using the primary structural tool to do ch

https://www.facebook.com/SmartHempGummiesDischem/

2024-07-06 Thread bremdttlay
Buy Now Official website:- MAIN BLOGS :-

Nim 2.0.6: invalid type: 'typedesc[seq[EventFuncBool]]' for const

2024-07-06 Thread demotomohiro
This code compiles without errors in Nim 2.0.6: type MyObj* = ref object of RootObj type EventFuncBool* = proc (myObj: MyObj): bool type MyObjFilter* = ref object of RootObj myObjHandlerBoolSeq: seq[EventFuncBool] # ^ Use ':' instea

Nim 2.0.6: invalid type: 'typedesc[seq[EventFuncBool]]' for const

2024-07-06 Thread siminis
This code compiles with nim 2.0.4 type MyObj* = ref object of RootObj type MyObjHandler* = proc (myObj: MyObj): bool type MyObjFilter* = ref object of RootObj myObjHandlerBoolSeq = seq[MyObjHandler] Run but nim 2.0.6 gives me the error `inv

is there any progress in NIF? And what is this?

2024-07-06 Thread Araq
NIF now has a spec:

Smart Hemp Gummies Australia (AU) Official 2024 : Certified

2024-07-06 Thread neela323
Smart Hemp Gummies Australia (AU) Official 2024 : Certified Australia has seen a rise in the popularity of smart hemp gummies due to their convenient form and possible health advantages. This post will explain what smart hemp gummies are, how they function, what advantages they have, and any pos

Claude 3.5 (Sonnet)

2024-07-06 Thread PMunch
To be fair any human would also pick that up, but most people aren't as easily convinced as LLMs to give up their free time to solve problems for strangers. If you had boiled your code down to a minimal reproduction (and not caught it yourself in the process) you'd have gotten much quicker repli

Nexalyn: ๋‚จ์„ฑ ๊ฐ•ํ™” ์„ฑ๋ ฅ ์ฆ๊ฐ€ & ํŒŒ์›Œ! ๊ฐ€๊ฒฉ?

2024-07-06 Thread nexalynresults
๋„ฅ์‚ด๋ฆฐ ๋ฆฌ๋ทฐ:- ๋‚ฎ์€ ์„ฑ์š•๊ณผ ๋ฐœ๊ธฐ๋ถ€์ „์€ ๋‚จ์„ฑ์—๊ฒŒ ๋‚˜์œ ์˜ํ–ฅ์„ ๋ฏธ์น˜๊ธฐ ๋•Œ๋ฌธ์— ์ธ์ƒ์—์„œ ๊ฐ€์žฅ ์งœ์ฆ๋‚˜๋Š” ์ผ์ž…๋‹ˆ๋‹ค. Nexalyn ๊ทธ๋“ค์€ ๋˜ํ•œ ์ฒด๋ ฅ๊ณผ ์—๋„ˆ์ง€์˜ ์ €ํ•˜์— ์ง๋ฉดํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ๋ฌธ์ œ๋กœ ์ธํ•ด ์นจ๋Œ€์—์„œ ๋งŒ์กฑ์Šค๋Ÿฌ์šด ์„ฑํ–‰์œ„๋ฅผ ํ•  ์ˆ˜ ์—†๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๊ทธ๊ฒƒ์€ ์ž์—ฐ์Šค๋Ÿฌ์šด ๊ณผ์ •์ด๊ธฐ ๋•Œ๋ฌธ์— ๋ฐ˜๋“œ์‹œ ์ผ์–ด๋‚˜์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋‚จ์„ฑ ์‹ ์ฒด์˜ ํ…Œ์Šคํ† ์Šคํ…Œ๋ก  ํ˜ธ๋ฅด๋ชฌ์ด ํŠน์ • ์—ฐ๋ น ์ดํ›„ ๊ฐ์†Œํ•˜๊ธฐ ์‹œ์ž‘ํ–ˆ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. ๋‚จ์„ฑ์ด 30์„ธ๊ฐ€ ๋˜๋ฉด ํ…Œ์Šคํ† ์Šคํ…Œ๋ก  ์ˆ˜์น˜๊ฐ€ ์ Š์€ ๋‚˜์ด๋งŒํผ ์ •์ ์— ๋„๋‹ฌํ•˜์ง€ ์•Š๋Š”๋‹ค๋Š” ์‚ฌ์‹ค์ด ๋Œ€๋ถ€๋ถ„ ์•Œ๋ ค์ ธ ๋ฌธ์ œ๊ฐ€ ์ œ๊ธฐ๋œ๋‹ค. ๋‹น์‹ ์˜ ์‚ถ์„ ์›ํ•˜๋Š” ๋ฐฉํ–ฅ์œผ

https://www.facebook.com/Fit.Smart.Fat.Burner.Dragons.Den/

2024-07-06 Thread foynoy
nourishment expended into vitality components. It is prescribed for weight upkeep and moved forward wellness. In expansion to its part in fortifying digestion system, vitamin B3 is advantageous for the skin and apprehensive system.