Sugar Defender Reviews - Sugar Defender for Ed! {Scam Alert 2024}

2024-02-23 Thread shelblarry
Official Website:- Sugar Defender:- > works well because it uses only natural and high-quality ingredients. The > formula has pure plants and minerals, and avoids any fake or harmful > substances. By keeping your blood sugar levels stable, the su

static checking of strings

2024-02-23 Thread ggibson
RFC is Request for Comment is a discussion of what could be. In Nim types are checked at compile time, so any procs or funcs you write accepting these types will fail to compile if the array datatype or lengths don't match what is being passed to them. Conversion from user input to this datatyp

sink parameters not being copied even when there are later reads (refc)

2024-02-23 Thread Araq
It a bug and needs to be fixed.

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

2024-02-23 Thread pyloor
Firstly, it depends on how adventurous your customer is. There will always be a problem with Nim, whether it's Async causing problems or Prologue falling over as soon as you look at it at an angle. If your customer is willing to go along with this, you can use Nim. If not, don't do it. This save

sink parameters not being copied even when there are later reads (refc)

2024-02-23 Thread giuliano
Hey, thanks @gabbhack. That is consistent with what I'm observing, and since sink parameters can be mutated, I end up getting something akin to a var when the object is big and a "mutable copy" when it's not.

sink parameters not being copied even when there are later reads (refc)

2024-02-23 Thread gabbhack
I think the reason is that `sink` with refc doesnt do anything, because ownership semantics only work with A/ORC. `AnObject` in first example not copied because big enough object automatically passed by reference (optimization by compiler)

Funny sink behavior with refc

2024-02-23 Thread giuliano
Hello there, In tracking a bug in our codebase I have bumped into some funny behavior with sinks while using `refc` (nim 1.16.18 and 2.0.2 on Linux), and was wondering if I am missing anything silly. This example captures the issue: type AnObject* = object of RootObj value*:

sink parameters not being copied even when there are later reads (refc)

2024-02-23 Thread giuliano
Hello there, In tracking a bug in our codebase I have bumped into some funny behavior with sink parameters while using refc (nim 1.16.18 and 2.0.2 on Linux), and was wondering if I am missing anything silly. This example captures the issue: type AnObject* = object of RootObj

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

2024-02-23 Thread Araq
> Nim's JS output is massive and slow, ... Nope, it's fine. > and it doesn't have any good tools for debugging. Fair I guess.

Smart Hemp Gummies AU/NZ

2024-02-23 Thread kamart
Smart Hemp

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

2024-02-23 Thread morturo
Can you tell me more about the "problems" with async? As much as I dislike closures, that is not a problem in itself.

How to define a range type with holes

2024-02-23 Thread uzo2005
Okay thank you all for clarifying...

How to define a range type with holes

2024-02-23 Thread uzo2005
Thanks for the code..but i would just stick with an int and assert for zeroes.

static checking of strings

2024-02-23 Thread enaaab460
I think this is what I was looking for I take it that it's not available now. Does RFC mean it's just a suggestion, or is it in planning / experimental ?

How to define a range type with holes

2024-02-23 Thread janAkali
Well if you really want it, no one can stop you from overloading default procedures with custom logic. E.g. : import std/sugar type CustomNonRange = enum Zero NonZero proc `in`(n: int, range: CustomNonRange): bool = case range of Ze

static checking of strings

2024-02-23 Thread enaaab460
Thanks for the reply I was trying to check for the rules at compile time (experimenting with type safety and such). While I understand that this method will work, it is not at compile time.

Beginner question: mixing types in a sequence

2024-02-23 Thread MisterDrgn
Thanks for the reply. I came across this last night, and it makes a lot of sense.

leave parenthesis for procedures that take 0 parameters like Ruby

2024-02-23 Thread ingo
> > evil paramCount() is explicit paramCount is ?

leave parenthesis for procedures that take 0 parameters like Ruby

2024-02-23 Thread hamidrb80
> paramCount is ? Implicit procedure call

static checking of strings

2024-02-23 Thread ASVI
BTW, same idea in And the are current approach to implement refinement types:

How to define a range type with holes

2024-02-23 Thread Araq
There is no support for it as a range type with a hole is not a range.

static checking of strings

2024-02-23 Thread ggibson
I think strong types and arrays provide everything you need already. No need for fancy concepts (yet?). type V4 = array[4, byte] V6 = array[8,V4] proc print(val: V4|V6) = echo val proc toV4[T](val: openArray[T]): array[4, byte] = for i,c in v

How to define a range type with holes

2024-02-23 Thread uzo2005
I wish to define a range type that includes all Integers except Zero. How do I do it? My current attempt looks something like this(it doesnt compile): type NegativeNumbers = range[int.low .. -1] NonZeroNumber = range[NegativeNumbers(int.low) + Positive(int.hig

leave parenthesis for procedures that take 0 parameters like Ruby

2024-02-23 Thread hamidrb80
Hey, today I did something evil in Nim. I was so sad that I have to write those extr parenthesis for some procedures like [paramCount()](https://nim-lang.org/docs/cmdline.html#paramCount). I wished something like [Ruby](https://stackoverflow.com/questions/340624/do-you-leave-parentheses-in

static checking of strings

2024-02-23 Thread enaaab460
I am experimenting with using concepts I am trying to enforce compile time checking of ipv6 import std/[setutils,strutils] type V4 = array[4,int] hexnode = concept a a is string a.len == 4 a.toSet < HexDigits V6 = array[8,hexnode]

Tom Green Sugar Defender Reviews - Do Tom Green Sugar Defender Work Or Fake Scam Hype

2024-02-23 Thread ColemanBlanche
╰┈➤Official Website:- ╰┈➤Facebook Pages:- Tom Green Sugar Defender:For a few humans, it t

static checking of strings

2024-02-23 Thread enaaab460
Ideally I would like for V4 and V6 to be strings with dots/colons but i figured getting the arrays to work is the first step towards that.

static checking of strings

2024-02-23 Thread enaaab460
as it stands, only `a is string` compiles when i uncomment the other rules I get a type mismatch error in hexno and loopback assignments

Do not understand the error when trying to add to seq inside loop

2024-02-23 Thread Araq
I get what you say and the compiler error messages are constantly improving but Nim's design goal never was "learn the language by bumping into its error messages". There are plenty of tutorials that teach you the basics.

Beginner question: mixing types in a sequence

2024-02-23 Thread shirleyquirk
i'd recommend you read through the nim tutorial and manual, the sections on variants in the [tutorial](https://nim-lang.org/docs/tut2.html#object-oriented-programming-object-variants) and [manual](https://nim-lang.org/docs/manual.html#types-object-variants) in particular. type Nod

How do Nim exceptions work?

2024-02-23 Thread arnetheduck
For a pragmatic introduction to how to deal with exceptions in applications that shouldn't crash, we have a chapter on describing their safe use and some of their pitfalls here: Notably though, for scripts and other simple app

RPC systems; Thrift and gRPC

2024-02-23 Thread hugosenario
Thanks for [your thoughts about Cap 'n Proto](https://forum.nim-lang.org/t/8678#70330) @ehmry has [Preserves](https://git.syndicate-lang.org/ehmry/preserves-nim), and [Syndicate](https://git.syndicate-lang.org/ehmry/syndicate-nim) that share some principles of Cap 'n Proto. But I still not get

Fused multiply-add instruction

2024-02-23 Thread arnetheduck
\- FMA will be used if there's a reasonable instruction for it - `-march=haswell` for example has one. Regarding rounding, IEEE allows the use of FMA even if rounding differs: