Microsoft too
No I think.Indian youtubers are better than microbesoft bots
Marco
I can't stand the accent. :(
Marco
I get distracted by it
Sudarshan
I can't stand the accent. :(
"Oh my goodness, have you heard about Mrs. Patel next door? She dyed her hair purple! Can you imagine? At her age, too! I bet her husband is mortified."
- No offence, indian myself lol
Sudarshan
Sudarshan
https://youtube.com/@nirlichtman?feature=shared
The best videos I've seen from an Aussie:
Marco
Sudarshan
Marco
And before anyone claims I'm a jackass... I am Italian!
Marco
Marco
Sudarshan
Sudarshan
Anyways, what's the state of Rust and Golang in FreeBSD Current? Anyone into this kind of madness?
Chad
I think golang is fully supported in freebsd.
Chad
Hoping pwsh 7 gets support.... it may now but when i check last it didn't.
Maxim
Maxim
so are zig, D and a bunch of others
Sudarshan
so is rust
I don't think so. Rustup doesn't support FreeBSD as host system for cross compilation
Sudarshan
While Golang does
Maxim
native binaries build like a charm
Sudarshan
Maxim
what "oh yeah"?
Sudarshan
Михаил
compared to all other c# documentation :D
X
Hi. Why isnt possible to install fbsd on a external ssd/hdd (connected via usb)?
SludgyWitch
for all i know that should be possible provided the external ssd is recognized by bios and partitoned correctly
SludgyWitch
when i started tinkering with freebsd i had installed on an external drive without any problems
.
https://www.theregister.com/2024/11/16/rusthaters_unite_filc/
🤔
Sudarshan
Sudarshan
Looks like C is getting sysvinit treatment lol
Sudarshan
Golang getting OpenRC treatment
Sudarshan
Zig getting runit treatment
Maxim
rust sucks
Sudarshan
Rust is a piece of shit but memory C fork is an absurd idea imo.
Sudarshan
First of all, Rust does not feel like trying to replace C at all. Nobody claims it officially.
Maxim
Sudarshan
Rust is not a C replacement
Sudarshan
C is a portable assembly. Coding in safe Rust feels more like coding in Haskell style with C++ RAII than in C. You call a bunch of namespaces, and associated functions to do your task and that's it.
In C, you basically visualise registers on your mind. Your mind lives inside there, while still automate heap allocation/deallocation with malloc/free black magic functions to minimise fragmentation.
I do write both Rust and C (never used C++ in my entire life) but rust feels a bit like functional C++ in terms of ergonomics
Михаил
the problem is here (i modified the image)
Михаил
our C folks are able to write safe C
Sudarshan
The moment you start to write Software to please users, you are calling for problems
Sudarshan
C is a portable assembly, which means instead of writing in assembly, you'll write it in C. The problem happens when you start to write a huge chunk of code in C (like desktop GUI or complex filesystem in C, you are looking at unmaintainable mess(
Sudarshan
Sudarshan
Like pointers to a pointer that's pointing to a function that's passed to another function as a reference that's pointing to structure lol
Sudarshan
Then they cry: UNSAFE C
Sudarshan
sure, C is unsafe because our underlying hardware is unsafe
Sudarshan
C has no abstraction, Rust has it, but without losing performance
ɴꙩᴍᴀᴅ
Михаил
any language interacts with memory in some way..
Sudarshan
Now that's not a bad thing, but a trade-off
Sudarshan
For small 1000 lines or less, C is more than enough. Above that, the performance requirement industry is very narrow (games, flight controller, firmware drivers etc)
Sudarshan
For example, with Golang, it's possible to reduce stress on GC by using preallocated heap whenever necessary and things like that. Sure that will piss off some users but ya
Sudarshan
LOL
Yup, like this just for printing hello world
http://0x0.st/X5ZL.c
Sudarshan
Михаил
C cannot be fully replaced with either C++ or Rust so far
Михаил
it's just an ideal balance of simplicity and performance as for lowlevel cross-platform imperative language
Rincewind
No
Is the same as c replaced with basic
Михаил
not entirely in safe rust
lots of unsafe connectors and unsafe api
Михаил
why either so care about safety, there are lots other properties, c'mon
Sudarshan
Replace for what? What will you do after that?
Sudarshan
One can use Rust, use whatever crates they can use to build large scale applications. Those who are dealing with systems of 20kb of RAM, C does more than sufficient
Sudarshan
Or use Golang. I've seen people using tinygo to write obscure kernels already by taking stress out of GC. If there's no garbage to collect, then it's not doing anything lol
Sudarshan
As these GC will improve (Go's concurrent garbage collector is so fast that it can even beat C in some aspects like cryptographic hash), we'll see people moving towards such languages
Sudarshan
C is a portable assembly. When you write C, you are still writing assembly in some form with the black magic automation of malloc and free on your side
Sudarshan
Well if you go unsafe rust side, yeah it's better than C but why bother lol
Sudarshan
unsafe rust is good if you need to access lower level stuff like root check etc casually
Sudarshan
Sudarshan
Yes, a C code with 1000 lines or less will have bugs and will face memory undefined behaviour issues, which can be maintained and patched easily. With 10000+ lines of code? That's atleast 500k lines of assembly (even after removing all sorts of compiler symbols). Will you handwrite that much assembly? Nope. C is a portable assembly. Don't do anything in C you'll not do in assembly
Sudarshan
Complex problems need complex tools. That's why I love journalctl -xe instead of tons of pipes grep sed awk to read long files