[-] tracyspcy@lemmy.ml 1 points 17 hours ago

FAQ : why? It's an experimental approach to ordinary todos. There are plenty of good tools like taskwarrior, but their features are hardcoded task body is huge — you either dig through hundreds of features to find what you need, or something you need is too niche, so it will make no sense to hard code it for devs. So, I decided to try a different approach as an experiment: keep the task model super simple (id,title, status,calldata), but let tasks have executable instructions. That way almost any custom behavior becomes possible — tasks depending on other tasks, tasks modifying other tasks or creating new ones, recurring, self-deleting tasks, task that monitoring new tasks creation and creates alert task, or increase priority of older tasks etc. The tradeoff is complexity for flexibility, like vim/helix vs zed or atom. To make that work a tiny virtual machine is needed and a set of opcodes. So this vm can be a basis for some todo app.

3
submitted 20 hours ago by tracyspcy@lemmy.ml to c/rust@programming.dev

cross-posted from: https://lemmy.ml/post/42532243

Recent updates:

  • VM now uses NaN-boxing technique.
  • All stack values are 64-bit (u64) but encode 5 distinct types: Boolean, String, CallData, U32, and MemSlice (25-bit offset + 25-bit size). code
  • Added InlineVec — a vector-like structure backed by a fixed-size array. The VM stack, control stack, call stack, and jump stack now use it with defined limits. code
  • VM now has a heap memory. Memory is simple Vec, grows dynamically, but technically length is restricted by mem_slice_val format: 25 bits payload for offset and size

Project is still in absolutely early stage.

5
submitted 20 hours ago by tracyspcy@lemmy.ml to c/rust@lemmy.ml

Recent updates:

  • VM now uses NaN-boxing technique.
  • All stack values are 64-bit (u64) but encode 5 distinct types: Boolean, String, CallData, U32, and MemSlice (25-bit offset + 25-bit size). code
  • Added InlineVec — a vector-like structure backed by a fixed-size array. The VM stack, control stack, call stack, and jump stack now use it with defined limits. code
  • VM now has a heap memory. Memory is simple Vec, grows dynamically, but technically length is restricted by mem_slice_val format: 25 bits payload for offset and size

Project is still in absolutely early stage.

14

cross-posted from: https://lemmy.ml/post/41409887

I've been building a bytecode VM in Rust and recently implemented NaN boxing for value representation. Sharing here for anyone interested.

I needed all VM values (booleans, integers, string pool indices, bytecode references) to fit in 64 bits (stack is Vec).

My implementation encodes 5 distinct types using a 3-bit tag and 32-bit payload, all within a single u64. It also has 15 unused bits, they may be used later for types expansion.

I'm using a 64-bit layout:

  • Bits 63-51: Quiet NaN signature (0x7FFC...)
  • Bits 50-18: 32-bit payload (integers, string pool indices, etc.)
  • Bits 17-3: Unused/ (15 bits)
  • Bits 2-0: 3-bit type tag

So it allows me to have 5 tagged types: TRUE_VAL, FALSE_VAL, STRING_VAL, CALLDATA_VAL, U32_VAL

8
submitted 3 weeks ago by tracyspcy@lemmy.ml to c/rust@lemmy.ml

I've been building a bytecode VM in Rust and recently implemented NaN boxing for value representation. Sharing here for anyone interested.

I needed all VM values (booleans, integers, string pool indices, bytecode references) to fit in 64 bits (stack is Vec).

My implementation encodes 5 distinct types using a 3-bit tag and 32-bit payload, all within a single u64. It also has 15 unused bits, they may be used later for types expansion.

I'm using a 64-bit layout:

  • Bits 63-51: Quiet NaN signature (0x7FFC...)
  • Bits 50-18: 32-bit payload (integers, string pool indices, etc.)
  • Bits 17-3: Unused/ (15 bits)
  • Bits 2-0: 3-bit type tag

So it allows me to have 5 tagged types: TRUE_VAL, FALSE_VAL, STRING_VAL, CALLDATA_VAL, U32_VAL

4
submitted 3 weeks ago by tracyspcy@lemmy.ml to c/rust@programming.dev

cross-posted from: https://lemmy.ml/post/41182690

Here is my winter holiday project. Current scope and known issues are listed in readme, so thoughts and ideas on them are welcome ^_^

14
submitted 4 weeks ago by tracyspcy@lemmy.ml to c/rust@lemmy.ml

Here is my winter holiday project. Current scope and known issues are listed in readme, so thoughts and ideas on them are welcome ^_^

[-] tracyspcy@lemmy.ml 21 points 2 months ago

I would be much happier if they rolled back the ai feature. This is my feedback.

20
submitted 5 months ago by tracyspcy@lemmy.ml to c/books@lemmy.ml

It is said that a visitor once came to the home of Nobel Prize–winning physicist Niels Bohr and, having noticed a horseshoe hung above the entrance, asked incredulously if the professor believed horseshoes brought good luck. “No,” Bohr replied, “but I am told that they bring luck even to those who do not believe in them.”

3
submitted 5 months ago by tracyspcy@lemmy.ml to c/crypto@lemmy.ml
86
submitted 5 months ago by tracyspcy@lemmy.ml to c/books@lemmy.ml

My opinion:

  • Interesting concept of a Dark Forest & cosmic sociology axioms.
  • Unpleasant characters: Ye Wenjie (narcissistic and psychopathic), Cheng Xin (a kind billionaire lol).
  • Disappointing ending—the last few chapters feel weak.

Bonus: Absolutely fascinating interpretation of the first book by @yogthos@lemmy.ml.

Spoilerhttps://mastodon.social/@tracyspcy/113515553103376706

22
submitted 11 months ago by tracyspcy@lemmy.ml to c/books@lemmy.ml

It's quite easy to read, the book seems to urge action before the foe becomes too strong...

23
submitted 1 year ago* (last edited 11 months ago) by tracyspcy@lemmy.ml to c/rust@lemmy.ml
15
submitted 1 year ago by tracyspcy@lemmy.ml to c/rust@lemmy.ml
[-] tracyspcy@lemmy.ml 38 points 2 years ago* (last edited 2 years ago)

one thing amazes me for sure: there is still bunch of people loudly protecting their masters' right to exploit and rob them.

And they are doing this while are already living in the world destroyed and robbed by capital, where COVID showed how vulnerable and under-financed our healthcare system is, where due to the global competition and sinking profits of corporations countries are building alliances, and preparing a new big imperialistic war for us, where crisis goes after crisis together with high inflation globally, and where quality of life is sinking monthly.

[-] tracyspcy@lemmy.ml 20 points 2 years ago

You just wrote the saddest, shortest story about illiteracy ever

[-] tracyspcy@lemmy.ml 74 points 2 years ago* (last edited 2 years ago)

There is not such thing as middle class, pure sophistic. There are ~~only~~ 2 classes, proletariat and bourgeoisie.

[-] tracyspcy@lemmy.ml 15 points 2 years ago

Yeah read the same stuff, it is his way to become innovator :)

[-] tracyspcy@lemmy.ml 13 points 2 years ago

in his eyes, it was an ideal example of how capitalism, american dream, competition and free market works.

[-] tracyspcy@lemmy.ml 39 points 2 years ago

The same as they first in line to get government money and whine when extra cent goes to public needs.

[-] tracyspcy@lemmy.ml 15 points 2 years ago

lol such app should have disclaimer similar to cigarettes packs

[-] tracyspcy@lemmy.ml 15 points 2 years ago

This moron fired almost all team before that

[-] tracyspcy@lemmy.ml 15 points 2 years ago

I have even forgotten he is in cars business, more news from him when he is manipulating crypto prices

[-] tracyspcy@lemmy.ml 27 points 2 years ago

Many of billyonairs are

view more: next ›

tracyspcy

joined 5 years ago
MODERATOR OF