ARC vs refc

2024-06-25 Thread Araq
`std / lists` cannot be used for that either as the RC ops are not atomic and the pointer following does not use atomics. > Even if the length changes during iteration, the code is still correct as we > will never touch memory we have not assigned & is not free'd back. Likewise, the read from t

ARC vs refc

2024-06-25 Thread mig
> Also: Don't use linked lists, they are slow. They are, but they have the nice property of retaining the underlying memory as you add to the container, unlike a seq on a realloc due to exceeding capacity. But of course, for this property, it would be better to opt a container similar to `std::

bulk .importc

2024-06-25 Thread xigoi
`{.push importc, header: "".} var SYS_read : clong SYS_write : clong SYS_open : clong SYS_close : clong SYS_stat : clong {.pop.} ` Run

X11 - XQueryTree produces "illegal storage acess" segfault when run

2024-06-25 Thread Araq
numChildrenReturn: Pcuint Run is wrong, you need to allocate storage for it. I would use: numChildrenReturn: cuint Run And then `addr(numChildrenReturn)` in the call to `XQueryTree`. And frankly, such a mistake indicates that you're not re

X11 - XQueryTree produces "illegal storage acess" segfault when run

2024-06-25 Thread SolitudeSF
as araq pointed out, you dont declare pointers and pass them, you allocate objects and pass pointers to them, in this case for every returned value. this is not a nim related issue, you can see this if you look at any C code that uses this. import x11/xlib, x11/x

X11 - XQueryTree produces "illegal storage acess" segfault when run

2024-06-25 Thread Mrokii
Hi again, I have some code to test if XQueryTree works, but it produces this error: SIGSEGV: Illegal storage access. (Attempt to read from nil?) Segmentation fault (core dumped) The error is produced in the line with the XQueryTree-Call. The code looks like this:

bulk .importc

2024-06-25 Thread juancarlospaco
push it?

bulk .importc

2024-06-25 Thread SerjEpatoff
I want to import some constants from Linux C headers, so I write code like this: var SYS_read {.importc, header: "".}: clong SYS_write {.importc, header: "".}: clong SYS_open {.importc, header: "".}: clong SYS_close {.importc, header: "".}: clong SYS_stat

ARC vs refc

2024-06-25 Thread refracted
Apologies if I'm asking something super basic but why does the following code work fine with refc but crash with a stack overflow when using ARC? import lists var l = initSinglyLinkedList[int]() for i in 1..1_000_000: l.add i Run What would be t

ARC vs refc

2024-06-25 Thread Araq
ARC sucks lol. No seriously, the linked list impl wasn't really patched to support ARC. Also: Don't use linked lists, they are slow.

Error: cannot open file: x11

2024-06-25 Thread foxoman
in this x11 package, there is no x11.nim file, only x11 as a folder, so you can not call import x11, you will have to import the files inside that folder like: import x11/xlib, x11/xutil, x11/x, x11/xft, x11/xrender

https://www.facebook.com/Blood.Balance.Australia.Official/

2024-06-25 Thread Shiken026
Blood Balance Australia , it contains a couple of cell fortifications, and supplements to manage all things considered prosperity. Blood Balance Australia White mulberry leaf has gained appreciation for its capacity to control g

https://essential-cbd-gummies-australia-top-offers.jimdosite.com/

2024-06-25 Thread millka99
Our_Facebook_Page: Essential CBD Gummies: A Need in Australia When someone is in pain, they frequently worry about how to get the best product and how soon they will recover. We have a new solution that will address all of y

Nexalyn Testosterone Booster: Dosage, Side Effects & User Reviews

2024-06-25 Thread Charlotteanoue
Nexalyn Testosterone Booster :- I was astounded to perceive how indistinguishable essentially the surveys were all for Nexalyn Testosterone Booster . FACEBOOK:- FACEBOOK:- FACEBOOK:-

Boosted Pro

2024-06-25 Thread boostpromale
Boosted Pro Male Enhancement Boosted Pro Male Enhancement are nutritional dietary supplements specifically formulated to decorate male fitness. They are crafted from herbal additives that art work synergistically to growth power, decorate staying power and enhance normal well-being. Unlike conve

Nexalyn ➤ 체험 가격 남성 강화 체력 향상 지금 바로 구매하세요!

2024-06-25 Thread NexalynBuy
Nexalyn은 발기부전과 낮은 테스토스테론 수치에 효과적이라고 합니다. 왜냐하면 이러한 문제는 노인들에게만 영향을 미치는 것이 아니기 때문입니다. Nexalyn 오히려 수행에 대한 압박이나 스트레스는 연령에 관계없이 효능 문제나 성적 거부감을 유발합니다. 의사에게 가는 것이 두려우면 일반 영양 보충제를 이용해도 됩니다. 하지만 그들이 정말로 뭔가를 할 수 있을까요? 우리는 귀하를 위해 연구했으며 효과, 섭취량, 부작용 및 주문 옵션에 대한 모든 중요한 정보를 제공합니다. Nexalyn 우리는 또한 자체적으로 Nexalyn