[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1795373828523.png (54 KB, 1003x421)
54 KB PNG
Why did Bun's Rust rewrite fail so badly?
>>
because rust is for retarded faggots that have no understanding of tradeoffs and simply parrot the pros of rust in a vacuum.
>>
They forgot to set Claude's effort level to max
>>
>>110404220
I know a senior programmer who tried to convince me rust rewrites are good because it will verifiably lead to bug free code.
>>
They didn't use python, the programming language for people who will be financially independent at age 30
>>
>>110404269
rust is only if you want to turn your brain off and not think about memory or optimization, while ensure both will at the very least not to lead to crashes. the issue though is you can get plenty off issues besides crashing.
>>
File: 1784420226268459.png (13 KB, 317x140)
13 KB PNG
meanwhile node just werks
>>
>>110404319
Yes, obviously. Especially if you are developing on behest of another as is the care for most jobs since it's impossible to exactly communicate in spoken or written language what they want the programmer to implement and even if they would manage to do that they won't have thought about the actual implications of what they request.
>>
File: 1780836283168596.png (12 KB, 372x83)
12 KB PNG
>>110404337
>>
>>110404392
brutal
>>
File: JS.gif (60 KB, 1024x1024)
60 KB GIF
>>110404337
We need a better Javascript, like in a 'stricter' mode that throws into the trash bin all the mistakes, makes it closer to Lisp, and adds more features to increase performance like proper typed variables.
>>
>The Rust version received approximately 3.5 times as many bug reports per week
comparing the past to the present; every open source project is getting spammed with bug reports now
>>
File: 1780712115042708.jpg (406 KB, 1448x1086)
406 KB JPG
the project confirmed:

- cant make a runtime with a runtime

- super-mega-advanced-giga-intelligent coding "Bloude" from the top -ACK- company wont do. just wont.
>>
File: 1775034974037713.jpg (48 KB, 330x319)
48 KB JPG
>>110404206
>t-they were solving the bugs f-faster though!
>250% increase in bugs
>11% increase in fix speed
kek
>>
>>110404206
>>110404392
my repo has zero reported bugs, so it's clearly better than both.
>>
File: 1795381900160.png (88 KB, 906x584)
88 KB PNG
>>110405124
I bet they were solving them faster because of the blatant regressions introduced by the slop rewrite that are easy to fix once you actually take a look at them

https://github.com/oven-sh/bun/blob/19d8ade2c6c1f0eeae50bd9d7f2a4bf4a2551557/src/bun.rs#L1350
>>
>>110404392
FUCKING KEK
>>
>>110404417
CosmosLang once the --strict update is applied. It addresses many such issues found in JavaScript among other languages. Not limited to type inference, local-by-default (not global without var noise) and functional programming.
$ ./cosmos -q "x=1 and x=''"
Compile error at 1:9: Expected Real, got String
$ ./cosmos -q "rel p(x) x=1; and p([])"
Compile error at 1:19: No matching type/mode signature for p

functor(Cons, Functor)
functor(Person, Functor)
c=Cons(1,Cons)
c=Person
| Compile error at XX:1: Expected Cons, got Person
>>
>>110404206
Because my anaconda (python) don't want none of your rust buns, hun
>>
>>110406390
>doesn't know conda is already half-dead because of uv which happens to be implemented in rust
lmao
>>
File: 6222630397489.png (3.09 MB, 1060x1280)
3.09 MB PNG
I will say, that YES. Large amounts of unaddressed bug reports in such a short span of time is HORRIBLE. But don't use the amount of issues as a benchmark for shit software.
>>
>>110404206
Why would anyone use Anthropic owned Bun (compromised, misaligned incentives, marketing stunt, slop) over independent, passion-driven Node?
>>
>>110404441
the rewrite is very recent
>>
>>110407036
as is every open source project is getting spammed with bug reports
>>
>>110407054
there wouldn't be such a massive increase in bug reports since the old zig version still existed for a long time after the spamming started
>>
>>110404319
Hello? Rust is anything but brain off. All the fucking borrow checking and unsafe code checks are a nightmare. If I want to write code that just works I use C.
>>
>>110404206
Because LLM rewritten code is full of bugs. Rust code is difficult to write and even harder to maintain once it's written due to fighting with archaic design, eye watering syntax and of course the nightmare that is the borrow checker.

Also no human wrote the new code so they don't have mental maps or full understanding of it, so anyone who has to maintain it either has to continue using an LLM or start reading over the code to understand it which can take weeks to months.
>>
>>110404269
This is the problem with Rust being "safe." It's just a marketing buzzword. What Rust actually provides is tooling to make memory bugs much harder to encounter. There is no language in the world which can protect anyone from logic bugs. But people, being stupid, want the latter, and project their desire for utopia on a goddamn software language. This is the biggest barrier for Rust's viability as a language (besides the syntax, and the poor feature choices, and the...).
>>
>>110404417
There's a trillion of those, "meme syntax that transpiles to JS" seems to be one of the most popular projects for people who want to do something new that's a bit bigger in scope than "my first nodejs todo app".
Typescript is about the only one that has actually caught on and is widely used. It adds static types which helps a fucking lot with dealing with JS bullshit.

Unfortunately because browsers can only execute JS, everything needs to transpile to native JS anyway, and so the actual execution loses all safeguards that you might add.
The only alternative is WASM which actually got some support in browsers now. It's fucking terrible for other reasons though, not least among which is the fact that it's obfuscated and unreadable as fuck since it's meant to be effectively VM bytecode, so if executing arbitrary JS from arbitrary websites wasn't bad enough now you effectively get to execute arbitrary bytecode blobs.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.