ref types and the align pragma

2024-02-20 Thread Bosinski
One can do aligned allocations using `mm_malloc` from the SSE intrinsics ``. I just started testing and it seems to align to at least one cache-line on my old haswell machine. I'd assume to be smth similar for ARM in NEON/AVX2.

Totally lost when reading tutorial of "code-blocks-as-arguments"

2024-02-18 Thread Bosinski
> > I really don't know how to understand this code and the text, how is a & b > > called? `&` concats two strings, here `a` and `b`. Same as `echo a,b` The code-block gets executed and should print "Hello World!"

Inferring type of zero-sized collection from usage

2023-08-24 Thread Bosinski
a.typeof

How to get information about .lnk(link) file extension?

2023-07-25 Thread Bosinski
The format of .lnk-files is described in-depth:: 1. 2.

Multithread with js target

2023-06-24 Thread Bosinski
There is some kind a new JS standard around multithreading, (Dedicated-/Shared-/Service)-workers and data-exchange via shared-memory. AFAIK Lars T. Hansen did some groundwork for the standard [ ]. Since it incep

thoughts on a backend target for bun?

2023-06-24 Thread Bosinski
The Mickeysoft-crowd has and always had their intensions - after all M$ donates TS plus all the tooling as a present ? yes i assume there is a strategy behind it. But focussing on what you get with it - there are all these desperate sometimes even demanding cries for 'typlings'. I wonder how cou

thoughts on a backend target for bun?

2023-06-24 Thread Bosinski
Sry for suggesting smth. related but maybe not what you asked for. Bun is great project and trying to become API-compatible with NodeJS is a respectable goal. IMHO what is missing in the JS-theatre is a slim and capable engine that exists independently from big-tech. The java-fication of JS is i

How the acyclic pragma works

2023-04-11 Thread Bosinski
Please provide a little more context, so one can get an idea whats going on inside your code. greets

bun.sh supports nimlang

2023-03-26 Thread Bosinski
yes, thats the version i work on. My stuff is not yet published.

bun.sh supports nimlang

2023-03-25 Thread Bosinski
Thats good news - i suppose they want the nim-stdlib, cos Zig cannot provide such, yet :) As i'm working on improving the QuickJS4Nim-project i'd say - lets have a nice competition here. class SomeClass: static: const someConst = 42 var counter: int #

Iteration against a C-API

2023-03-25 Thread Bosinski
Hi, i'm struggeling with the QuickJS-engine. The last thing to do is to make iteration on opaque-nim-types possible. The Iteration-API expects a C-function which delivers one element from a container per call. I need to use `{.cdecl.}` \- so a inline-iterator won't work. I'm somewhat mentally b

Choosing a specific version of SQLite

2023-02-19 Thread Bosinski
Hi, good to know that some `--dynlibOverride` can make this work. Sadly not for me. I tried with macOS and then switched to linux with no success. It compiles the lib and breaks when trying to register the nim-proc ? Could smbd. pls post the complete nim-command to compile a lib that the `sqlite

Back to the basics (of research) - Concurrent data-structures in 2.0 ?

2022-06-25 Thread Bosinski
Hello evbd, afaik Martin Odersky once described a app as _a flow of typesafe transformations_. These days one might like to add _efficient multiprogram type transformations in a shared-memory environment_. Recently i've spent some time to look at a couple of research-papers (and some lecture v