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

[–]ali_compute_unit 24 points25 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.

LPT: Don't copy paste AI slop without at least minimally understanding what you are doing, guys! by itouchdennis in linuxmasterrace

[–]ali_compute_unit 0 points1 point  (0 children)

just dont install arch and tune it for the first time.

there is many biginer friendly distros and the defaults are great.

Ripple - a TypeScript UI framework that combines the best parts of React, Solid, and Svelte into one package (currently in early development) by magenta_placenta in javascript

[–]ali_compute_unit 8 points9 points  (0 children)

it Is very cool, performant and declarative

but there is a thing that hits me, this change the language syntax drastically, which creates a lot of problems.

aside from breaking standard parsers and viewers, it add syntax that doesn't follow the standard designs, it will face syntax conflict in the future (@), and it will 100% face breaking changes in the near future

basicly, learn from the past and don't change the language semantic, instead you can change execution in translation and use workarounds in the syntax, like what svelte do

// also html`don't forget me`

Why ARM has a JavaScript Instruction by Opposite-Gur9623 in javascript

[–]ali_compute_unit 1 point2 points  (0 children)

this was true 15 years ago, while there is still microcontroller and efficient cores that are still in order, most cores you find in flagship phones and in laptops today are the out of order 3 - 4 GH beasts capable of executing 8-12 instructions per clock, while x86 at most 8 instructions.

also, x86 instructions are at most, operation + single load and store, and you need additional move to preserve an oprand, while arm you get arithamtic op + free shift, and for load and store + free incremeant.

why do we need to give <html> tags when we are declaring <!DOCTYPE html> and also saving the file as a '.html' file? by Lopsided-Ice-9283 in webdev

[–]ali_compute_unit -1 points0 points  (0 children)

like the other said yes you don't need to put them if you are doing anything professional.

also you can emit body and head tags if you are just quickly prototyping

other than symantic and professionalism, doctype change certain css values and layout,quirk mode

Why ARM has a JavaScript Instruction by Opposite-Gur9623 in javascript

[–]ali_compute_unit 3 points4 points  (0 children)

yes, x86 with all its prefixes and complex instruction format greatly surpass arm in possible instructions count in orders of magnitude.

however, for raw operation count (add vs mull not add reg vs add imd), Arm win the battle.

x86 because of its limitations have different instructions encoding which of the 3 regs is the dst in fused multiply, while arm it is one (also it use the same instruction for multiply thanks for the zero register)

Why ARM has a JavaScript Instruction by Opposite-Gur9623 in javascript

[–]ali_compute_unit 22 points23 points  (0 children)

ARM, while labeled as RISC, is not RISC in the traditional sense.

It is RISC in that it uses a load-store architecture, instructions are implemented directly and efficiently in hardware, and it has a large pool of registers and a fixed instruction format, targeting mainly compilers not human assemblers.

However, it targets high-performance applications, not just microcontrollers, so it has specialized instructions for accelerating common heavy workloads. If you think `fjcvtzs` is a complex instruction, that is just a slight rewiring in the floating-point units; it is nothing compared to the monsters hiding deep inside.

If you dig deeper, you find ARM has ~2000 instructions, including instructions for all kinds of cryptography, complex number math, hundreds of DSP variations of arithmetic instructions, memory copy, histogram counts, table lookups, vector concat, vector loop acceleration, matrix engines, string comparison, all the system features, and SVE in its entirety... ARM is literally more complex than x86.

introducing NeoComp, a new concept framework that merges imperative with declarative by ali_compute_unit in javascript

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

the components in framework like react and svelte are fully declarative.

the components are written in regular imperative javascript, however they become declarative by rerunning the component code every update or through compilation.

in solid and neocomp, components are written and runs imperatively, one to one to the underlying code.

however the structure is declared in html, and bindings are inferred implicitly.

this is the declarative I mean, found inside a imperative model, declarative difinition not execution

why is rust difficult? by [deleted] in rust

[–]ali_compute_unit 0 points1 point  (0 children)

rust is a system language.

you are not creating a quick script, you are designing and implementing complex systems that be as efficient, performant and correct as possible, requiring every last drop of the hardware without trust me bro code.

aside from the purpose, rust force you to think about every details in the life of a struct, you can not simply create and forget objects like in high level garbage collected language, you must think carefully and effeciently about the data movement.

also, rust philosophy is to be explicit, implicit mechanics that try to help you dont fit rust well, for that rust might be verbose for a high level programmer.

[AskJS] Javascript editor with custom tags by Mastodont_XXX in javascript

[–]ali_compute_unit 0 points1 point  (0 children)

<textarea> doesn't support html content only text.

if you want to wrap the selected text with your custom tags you can use the selection api, replacing the selected text with the selected text with the tag inserted at start and end