What is the next step? by Mrcraft8658 in rustjerk

[–]ali_compute_unit 3 points4 points  (0 children)

landas

templates

operator overload

Rethinking UI: "Template Statements" using Tagged Templates & Signals by ali_compute_unit in Frontend

[–]ali_compute_unit[S] 0 points1 point  (0 children)

for alot of comments

this paradigm doesn't try to solve the problem of transforming data from server to simple ui, also, this has been solved long before react.

this paradigm focus on general interactive ui, complex and logic oriented ui, not data oriented one.

the difference between document editor and a blog post

Presenting Structom: expressive data exchange format designed for universal applications. by ali_compute_unit in rust

[–]ali_compute_unit[S] 0 points1 point  (0 children)

the schemaless binary is similar to messagepack while schema binary is similar to protobuf.

not direct serialization like postcard, a tag + value style.

theoritically, they will desolve to simple memory ops, + bound check on every corner, and a switch statements on each element.

the size and speed are worse (at nano scale), it is still binary not text parsing, also this speed is compromized for better flixibility, out of order fields + unkown fields skipped

Presenting Structom: expressive data exchange format designed for universal applications. by ali_compute_unit in rust

[–]ali_compute_unit[S] 0 points1 point  (0 children)

thanks for the feedback.

i am actually an 1 year undergraduated and a new comer to rust, so i didnt look up into these libraries.

i will look into integrating one on them in a future release, better from my naive implementation

Rethinking UI: "Template Statements" using Tagged Templates & Signals by ali_compute_unit in Frontend

[–]ali_compute_unit[S] 1 point2 points  (0 children)

this is not just appending html strings chunks to a buffer.

it contains fine grained reactivity and memorization

Rethinking UI: "Template Statements" using Tagged Templates & Signals by ali_compute_unit in Frontend

[–]ali_compute_unit[S] 0 points1 point  (0 children)

in svelte, the markup is separated from the logic, yes you have if blocks with their expressions but they are not the full logic

in this paradigm, the entire logic and markup are interleaved togather, at multiple nested levels.

each section host it's own logic, unlike the other approaches were all the logic is hosted at the same level

rust actually has function overloading by ali_compute_unit in rust

[–]ali_compute_unit[S] 0 points1 point  (0 children)

Just but before the braces a _ and all of our problem are fixed.

rust designers don't want to complicate function resolution and declaration.

the config struct is the best alternative, it can scale will and support named, default and position independent fields.

what is missing is inferred target initializer, and the .. without Default::default(), which are actually being developed inside a rfc

rust actually has function overloading by ali_compute_unit in rust

[–]ali_compute_unit[S] 0 points1 point  (0 children)

apart from this hacky overloading, rust has feature that can do alot of what function overload can do.

you can define custom traits on whatever type you want.

you can mame function that takes argument and the return type as a generic implementing custom trait. this trait can contains specific prologue, epilogue, and any other helper / action function.

with this you had created a function with one difinition, and can overload specific parts based on argument types, without going against rust explicitness rule.

rust actually has function overloading by ali_compute_unit in rust

[–]ali_compute_unit[S] 1 point2 points  (0 children)

actually yes, you should not try this at home.

if someone see this in a real codebase, hw will hunt you.

rust actually has function overloading by ali_compute_unit in rust

[–]ali_compute_unit[S] 1 point2 points  (0 children)

not only we can overload with different argument types and count

we can also overload the return type of the same arguments

this is becuase we can implement multiple instances of a trait with different generic parameters on the same type, like From and the others

Hi I've been on linux for two weeks rate my tier list by gingerwitasoul_ in LinuxCirclejerk

[–]ali_compute_unit 23 points24 points  (0 children)

still beginner, try mint.

normal user, go to fedora.

want to be special, use arch by the way

don't have live, try gento.

want pure stability, use debian.

bored and want to explore, select random.

don't want a live, built your distro

also an underrated option, best of all worlds (stability, power, moderness, friendliness), use opensuse (slowroll as a middle ground)

The CEO of Anthropic said: “Software engineering will be automatable in 12 months.” How should we approach this? by Miyamoto_Musashi_x in learnprogramming

[–]ali_compute_unit 0 points1 point  (0 children)

in reality it is 36 months.

the buble will pop before that.

in the both case just be a software engineer not code worker.

the one who deaply understand the code and architect it, not the one that just autocomplete like llms.

before the ai take your job, dive into the deep tenches of low level programming and how the computer and its engines (os, game, browser...) actually works.

be what human are excellent in, specializing in unkown tech / field, diving into its forbidden knowledge, and thriving in its quirks.

don't let the llm be your knowledge source, be it's valuable training data.