recusion use a lot of memory, any idea why?

2024-02-26 Thread IanZhang
Code below is solving . When use recursion call, It used a lot of memory. I tried use input as var, but still on effect. Have to change code to iterative to solve the memory problem. Any idea why recusion call use so much memory, is there some mistake in my

Tim - A template engine & markup language

2024-02-26 Thread hugosenario
I'm glad to see that your projects keep evolving. Congrats. Also, I'm curious about something from your readme: Built-in real-time Server-Side Rendering SSR via ZeroMQ. How is that? I remember liked how you used the "Unix way" to connect your apps. So you using ZeroMQ is new to me. I'm search f

nimble.directory has been down for a few days now

2024-02-26 Thread hugosenario
Is up but slow. I think the problem is /search, that is too large, if isn't in cache, a DoS attack vector. Or even if any bot is trying to index that page.

Can ref variables reference non-ref variables?

2024-02-26 Thread Araq
You can also use `ptr T` and `addr` to create indirections. Via the =hooks mechanism you can then add automatic storage management.

Tim - A template engine & markup language

2024-02-26 Thread georgelemon
I just added a quick example of [Mummy + Tim in action](https://github.com/openpeeps/tim/tree/main/example)

single line ref seq[int] assignment

2024-02-26 Thread ElegantBeef
Worth noting this gets a `ptr seq[int]` and not `ref seq[int]` which means you need to ensure the lifetime manually. If one is making many ref types one can simply do: proc new[T: not ref](val: sink T): ref T = result = new T result[] = val var a = new @[10 ,20,

[arnetheduck] `nph` opinionated formatter v0.5

2024-02-26 Thread arnetheduck
There we go, v0.5 of the `nph` formatter [released](https://github.com/arnetheduck/nph/releases/tag/v0.5). The release comes slightly earlier than I was planning but is also fairly small, cleaning up a few inconsistencies found while applying it to [fluffy](https://github.com/status-im/nimbus-e

Download nim-2.0.2_x64.zip for windows 11 will be blocked by Windows Defender.

2024-02-26 Thread enthus1ast
There where some slides (i think from the NSA) that talkes about red teaming with Nim. They used some advanced features to "get rid of the Nim" stuff. So nim felt more like a c, but was way less detectable. I do not find them again unfortunately. Maybe someone else knows those.

single line ref seq[int] assignment

2024-02-26 Thread enaaab460
var var1 = @[1,2,3] var2 = var1.addr --- the rest of the code--- Run I understand that this also works. Maybe too much time has been wasted on a minor inconvenience. But it is great that there are many ways to achieve the same thing Thanks for the help!

single line ref seq[int] assignment

2024-02-26 Thread enaaab460
I forget the brackets, my bad. I understand that sequences are heap-allocated. I wanted to have several variables point to the same sequence, so this is how I set it up. var var1 = new seq[int] var2 = var1 var1[] = @[1,2,3] var2[][1] = 2 Run

Can ref variables reference non-ref variables?

2024-02-26 Thread DMisener
Thanks... re-reading the docs and reading your _excellent_ blog article convinced me to recode existing source to add more ref types so then I won't have to worry about trying to generate safe-references to non-ref types (doing the impossible :-) ). Thanks for the confirmation that _" you can't

Sugar Defender Reviews (100 percent) Exposed Real Truth?

2024-02-26 Thread Streichydavid
Sugar Defender:- Compared to the long list of glucose control supplements available in the market, Sugar Defender blood sugar support formula is relatively easy to use. Most blood sugar support supplements come with a list of complicated procedures and restrictions one should follow to use its

nlvm 1.6.16 - now with a REPL

2024-02-26 Thread lf_araujo
I spent some time with the nlvm repl this weekend for a personal project. The REPL is much faster than Inim, and it worked flawlessly with iron.nvim. So if for some reason one needs a REPL, this is looking very promising.

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

2024-02-26 Thread didlybom
This particular error (a signature that completely matches except for the `var` part) has tripped me way too many times, so this is a great improvement! It'd be even better if the compiler could somehow also realise that the problem is due to the implicit `items` being used and gave you the advi

Can ref variables reference non-ref variables?

2024-02-26 Thread zevv
> Can ref variables reference non-ref data? Depends on what you mean with 'reference', you're free to take the address to any data, wherever it lives and use that. But this will not mean Nim will manage the memory and lifetime of the object for you. > If possible, how do I get safe references t

Can ref variables reference non-ref variables?

2024-02-26 Thread DMisener
The following example _almost_ works but I seem to be missing the **magic incantation** to get a **safe** reference to a _non-ref_ content. The following examples illustrates my conundrum: # I am trying to generate record references of already existing objects in sequence # (as

How Does NeuroTest Help To Make The Brain Health?

2024-02-26 Thread essentialuse
Generally speaking, you can now suitably check all of the data connected with the thing over the power online point of interaction yet, a piece of the phony transporters might pick you to feel confounded with your decision in any case this NeuroTest is especially astonishing from different upgra

What Are The Remarks Using Essential Keto Gummies?

2024-02-26 Thread essentialuse
To suitably use the Essential Keto Gummies, you truly need to use a sensible ketogenic diet. Otherwise, you will in all probability be not prepared to eat up your extra fat so rapidly. Coming up next are several hints That Will Assist You with obtaining your most essential results: Increment Fat

Download nim-2.0.2_x64.zip for windows 11 will be blocked by Windows Defender.

2024-02-26 Thread didlybom
@enthus1ast, the description of the second rule itself is crazy: "doesn't have to be a hack tool or malware - it's just very likely" :-/ I know this could start a game of cat and mouse, but is there something that can be done on the nim compiler to make it harder for these kinds of "malware det

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

2024-02-26 Thread giuliano
Thanks @Araq, I'll open an issue then.

Download nim-2.0.2_x64.zip for windows 11 will be blocked by Windows Defender.

2024-02-26 Thread freeflow
I am an amateur who programs in Visual Basic for Application. Pull requests are a magic incantation with which I have no familiarity.

single line ref seq[int] assignment

2024-02-26 Thread sls1005
This > var var1 = new seq[int] > > var1 = @[1,1,1,1] will not work, because `ref` is sort of auto-managed pointer and requires manual dereference (as if it's a pointer). For example, var1[] = @[1,1,1,1] # `[]` is the dereferencing operator. Run As @jyapayne stat

https://strictionbp.hashnode.dev/striction-bp-doctors-reviews-scam-warning

2024-02-26 Thread priyansharma39
➲➲➲ Best Deals is Live ➾➾ ➲➲➲ Best Deals is Live ➾➾ Striction BP Reviews: High blood pressure, sometimes known as stroke BP, is a prevalent issue. If they have Striction BP, they are not the only ones with high blood pressure. The

Download nim-2.0.2_x64.zip for windows 11 will be blocked by Windows Defender.

2024-02-26 Thread demotomohiro
You can send pull requests to to add contents to

Download nim-2.0.2_x64.zip for windows 11 will be blocked by Windows Defender.

2024-02-26 Thread ingo
> Widows defender has a built in facility that allows the user to disable it > for a short period. It also allows you to flag directories to not be scanned. So, create a special download dir for nim then download it to there. Then you have to create all the dirs Nim uses and flag those. Then yo

Download nim-2.0.2_x64.zip for windows 11 will be blocked by Windows Defender.

2024-02-26 Thread freeflow
Widows defender has a built in facility that allows the user to disable it for a short period. This allows 'problematical' files to be downloaded without any virus blocking. Defender automatically reinitialises after a short period. The setting is Settings->'Virus & threat protection'->'Virus &

Download nim-2.0.2_x64.zip for windows 11 will be blocked by Windows Defender.

2024-02-26 Thread Kiloneie
There seems to be a post about this once every month. I recommend a note on the top of the: page about false positives, as well as a stickied post on the forums like PMunch said. Both locations need to be used, as some may just tunnel vision into a dow

Download nim-2.0.2_x64.zip for windows 11 will be blocked by Windows Defender.

2024-02-26 Thread enthus1ast
At my work we lately had an audit of some sort, and I had to install special scanning tools on all machines, basically all of self written tools where flagged on those machines, and took a closer look at the scan reports. They flag all nim binaries by default.