German strings

2024-07-16 Thread pietroppeter
Today I learned about “German strings” particularly interesting for db use cases. Implementing them could be a fun project :)

German strings

2024-07-16 Thread Araq
Thanks for sharing, most interesting read! German strings are close to my new ideal string implementation. Which Nim 2 sadly does not implement...

Fusion OS: a hobby kernel written in Nim

2024-07-16 Thread khaledh-nim
> And an interrupt can be scheduled on a different thread This sounds very close to [scheduler activations](https://en.wikipedia.org/wiki/Scheduler_activations), a formalized way for an upcall mechanism from the kernel to userspace. I need to give this more thought, but it is an interesting ide

Software design ideas to deal with ownership when writing high level wrapper of C code

2024-07-16 Thread PMunch
Pretty much exactly what I had in mind! But does this solution work or not?

Fusion OS: a hobby kernel written in Nim

2024-07-16 Thread Araq
A soon as you type your channels you run into composability problems as you cannot easily wait for _either_ Channel[T1] or Channel[T2]. Rather than avoiding signals I would embrace them as a general purpose interrupt mechanism. And an interrupt can be scheduled on a different thread. And then I

simpleargs - Dead simple CLI parsing.

2024-07-16 Thread EyeCon
I like therapist (it's anything but lightweight):

Fusion OS: a hobby kernel written in Nim

2024-07-16 Thread khaledh-nim
Thanks! This is intentionally not going to be a Unix-like OS, so no POSIX :) I haven't thought about the API yet, there's much to be done before I get to that stage. But I have some rough ideas: * User tasks should communicate with the kernel and other userspace tasks through statically typed

Software design ideas to deal with ownership when writing high level wrapper of C code

2024-07-16 Thread giaco
I've been talking about this with @Elegantbeef Solutions that leverage on generic type without generic argument usage in type definition are affected by this issue that prevent correct binding of the desctructor: He also provided a solution possibl

How to do something like std::construct_at and std::destroy_at? (with correct alignment)

2024-07-16 Thread Araq
Looks ok, I don't know if it can be simplified. But you just use `uint` instead of `BiggestUInt`. `uint` is guaranteed to be pointer-sized.

Fusion OS: a hobby kernel written in Nim

2024-07-16 Thread Araq
Very nice. What API do you plan to offer? Anything better than Posix? ;-)

How to do something like std::construct_at and std::destroy_at? (with correct alignment)

2024-07-16 Thread doongjohn
Is there a simpler way of initializing it with the correct alignment? proc getAlignPadding(p: pointer, align: int): BiggestUInt = cast[BiggestUInt](p) mod BiggestUInt(align) # same interface as std::align proc align(align: int, size: int, p: var pointer, space: var

nim-general@lists.nim-lang.org

2024-07-16 Thread Charles
Got it, thank you.

Software design ideas to deal with ownership when writing high level wrapper of C code

2024-07-16 Thread PMunch
My MAPM bindings deals with this, but simply by creating managed types. In C the same object can be returned both managed and unmanaged as you mention, so defining a generic `Managed` type is tempting. It could even have a static field with the destructor required (defaulting to regular old `fre

Nexalyn Anmeldelser: En urteformel til muskel- og seksuel gevinst

2024-07-16 Thread NexalynDKingrediens
Sex er et behov. Alle har brug for en seksuelt stærk livspartner. Seksualitet er evnen til at optræde på sengen i dine private stunder. Nexalyn For mænd er det meget vigtigt at præstere godt på sengen, fordi fornøjelsen og intensiteten af ​​sex afhænger af mænd. Alder er en vigtig faktor, der in

Software design ideas to deal with ownership when writing high level wrapper of C code

2024-07-16 Thread giaco
Hello, I'm searching for a software design pattern to deal idiomatically and efficiently with memory ownership when wrapping C types. When wrapped C code returns type, it might require or not to be freed manually according to C documentation. How to express a Nim type that can be idiomatically

Nexalyn 리뷰 [2024년 업데이트]: 약 가격 및 구매처?

2024-07-16 Thread nexalynorder
Nexalyn: 성생활에 있어서는 누구나 최고의 성과를 내고 싶어합니다. Nexalyn 누구도 자신의 성과에 완전히 만족하지 못할 가능성이 있지만 이제 놀라운 공식의 도움으로 매일 밤 최선을 다할 수 있습니다. 이는 모두 Nexalyn 남성 강화 보충제 때문입니다. 이 공식은 침대에서 최선을 다하는 데 방해가 되는 것이 없는지 확인하고 에너지 수준을 강화하여 이를 수행합니다. Nexalyn 에너지 수준이 최고조에 달하면 성생활에 대해 매우 흥분되고 행복해질 것입니다. 사람이 나이가 들면 시간이 지남에 따라 자연스럽게 성적

Nimsuggest always crushes on My Mac

2024-07-16 Thread wangzhenzhe
Sorry for asking. I have noticed that the reason is how I write the lines for `import`. I write the import before like: import package_a, package_b Run It worked with `nimsuggest` before, but now it crushes. I have to write it as import

https://www.facebook.com/GetSmartHempGummiesAu/

2024-07-16 Thread smarthempgumysau
Smart Hemp Gummies Australia Additionally, those goodies are carefully designed, and their unique approach offers people with a non-dependancy-forming and secure for the ones seeking out treatment from ache without having any worry about dependancy. These sweets are convenient and small in durat

Renewed Remedies CBD Gummies Reviews – Alarming User Complaints to Worry About?

2024-07-16 Thread wilopix
✅ Keyword: - Renewed Remedies CBD Gummies cycle after diminishing stretch. This extraordinary formula by and large comprises as it were 100% unadulterated hemp oil extricated from natural or characteristic cannabis plants created without the utilization of pesticides or herbicides. The combinat

https://www.facebook.com/SmartHempGummiesAustraliaScam/

2024-07-16 Thread daewinoyle
Buy Now Official website:- Other Official Facebook:- MAIN BLOGS :-

modular KEM based double ratchet for Nim!

2024-07-16 Thread noona45
I also check this: It is really working.