HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jackosdev

no profile record

Submissions

Rust or Mojo for the Future of AI?

mojodojo.dev
2 points·by jackosdev·3년 전·0 comments

comments

jackosdev
·3년 전·discuss
That’s true, but this has never been a problem for me looking through large codebases and doing code reviews, in other languages I was constantly annoyed by not being being able to shadow
jackosdev
·3년 전·discuss
I really like in Rust how you can reinit a variable with a different type e.g. “let rect: Rect<f32> = rect.into();”

It’s just so damn useful and I’m not sure what the downside is, it sucks when you have to keep coming up with different names so you can keep around an identifier that you don’t need anymore.
jackosdev
·3년 전·discuss
Nah that editor is much better if you're just using Python, but vscode imo is better for polyglots, the experience and keybinds stay the same across languages once you work out `tasks.json` and `launch.json`
jackosdev
·3년 전·discuss
vscode is an incredible piece of software, better than all the paid options in my opinion, the amount of features they pump out month to month is outstanding, just a bit slow due to electron. I never understood why they put so much effort into a free product that I run from Linux and Mac, but I'm happily paying the copilot subscription so it all makes sense now.
jackosdev
·3년 전·discuss
My company runs everything on AWS lambda, I’ve worked on Lambda with Go, Python and Typescript before this, Rust is by far the best experience I’ve had. Async works great, it’s definitely a lot harder to figure out the ecosystem than something like Go, but there’s nothing missing that I know of?
jackosdev
·3년 전·discuss
The point is though as OP said, all the pieces are in place, it only takes one crazy person or government to give something like this access to actually act out the things it’s saying it wants to do. Define self awareness/sentience however you want, before Microsoft lobotomised Bing it output that it was going to act out revenge, someone with enough hardware can train a model the same way, with some additional training for how to exploit social and security vulnerabilities. I think it’ll have to happen first before it’s taken seriously, hopefully the first incident doesn’t do too much damage.
jackosdev
·3년 전·discuss
It’s the fastest gaming chip now, but not sure a 0.5% to 1.5% improvement over the standard 13900K warrants an “insanely fast” tag
jackosdev
·3년 전·discuss
Oh yeah, can fix that though with:

mkdir -p ~/cargo/target

export CARGO_TARGET_DIR="~/cargo/target"
jackosdev
·3년 전·discuss
sccache works really well and there’s only two steps to install it and enable it globally, speeds up compilation time a lot as well:

https://github.com/mozilla/sccache
jackosdev
·3년 전·discuss
I have Asahi Linux installed on mine, it works great including the GPU, I’m mainly developing for ARM64 AWS Lambdas now as well so it’s nice having the same arch. Some things are still missing like webcam, microphone and speakers, but the headphone Jack works and Bluetooth is OK just a bit choppy, incredible project.
jackosdev
·4년 전·discuss
Still, how much they pay their developers a year? Would be over $150k I imagine, drop him $10k which he deserves and a sincere apology and we never would have seen this article, this would definitely cause a larger loss for them.
jackosdev
·4년 전·discuss
I still really like Python for scripts and small programs, but I’m always going to use Rust now for CLI’s or anything larger, I get the problem you have with it, but the trade off is worth it for me being able refactor quickly and with confidence as the program grows.
jackosdev
·4년 전·discuss
It’s funny when someone is parroting the doom and gloom they hear from mainstream media, and you point out something like how world hunger and poverty is at an all time low, the standard of living has never been higher etc. most of the time they’ll just continue justifying their position, its only engineers that I’ve heard say “oh yeah..”
jackosdev
·4년 전·discuss
I hopped jobs to go from using Go to Rust, I was sad and bored, now I'm happy and energized. Always going to be things you dislike for sure, but life's to short to be using a language that's making you miserable.
jackosdev
·4년 전·discuss
Do you know anywhere to find good decoders in pure Rust for common codecs like H.264 and H.265? Great tutorial by the way learnt a lot
jackosdev
·4년 전·discuss
I worked for the three largest mining companies in the world, and a much smaller miner before that. The small company had 1 geologist, 1 mining engineer, 1 general manager and an office admin person. The next place I went to was a similar sized mine with about 200 people in the office, and many more support people in the city. The resource was 1:1 coal to dirt and much higher quality, compared to the previous place which was 1:13 coal to dirt and way harder to mine. The large miners have the best resources in the world so they can afford to over-hire, those people don't actually do anything but make things worse doing "improvement projects", and then use bullshit charts to show why it's better. We had a huge downturn in mining about 15 years ago and they fired about 15,000 people across Australia, and overall production improved! I only work for startups now where I can be a core engineer, I had a role before where I knew I wasn't doing anything valuable and it's soul crushing, I feel sorry for those FAANG engineers who can't break free from the golden handcuffs and actually do something valuable with their time.
jackosdev
·4년 전·discuss
I'm also interested in this, the segmentation faults Primeagen found in Bun were concerning: https://youtu.be/qAYFepR4GcE?t=370 might have been fixed by now though.

I was seriously looking at Zig, but I'm always getting faster in Rust and it feels like the downsides of extra complexity is well worth the upsides for larger projects.
jackosdev
·4년 전·discuss
What they did with Dota 2 was really surprising, the AI did a technique where if it was ahead it would go behind the enemy tower to get 100% of the gold while the enemy would struggle with last hits under the tower and take creep damage. I'd never seen anyone do this before and pro's started copying this after. The way I remember them explaining it was that the AI has something it's trying to maximize for, and it plays millions of games trying slightly different variations which can lead this kind of creativity, pretty wild.
jackosdev
·4년 전·discuss
I've made contributions to Rust repos and it was a great experience, they helped me along and were very quick with responses. I never even considered it for Go because the community shot down every idea I had.
jackosdev
·4년 전·discuss
Immutability, most things are expressions, no nulls. I think this is what they mean, it's a good experience if you want to go purely functional, they took influences from everything though.