please tell me your argument is not “other language also does this thing, therefore it’s dumb for rust to not do it”
please tell me your argument is not “other language also does this thing, therefore it’s dumb for rust to not do it”
Having to use #[tokio:main] to make the main function async (which should just be inbuilt functionality, btw tokio adds insane bloat to your program) yet you literally can’t write code without it. Also what’s the point of making the main function async other than 3rd party libraries requiring it?
You’re kidding, right? You do actually understand that languages that aren’t JavaScript don’t have built in async runtimes and they need to be provided by a library, right? You’re not actually writing a post about how much the programming language you have two days experience in made different design decisions and is therefore good at different things than the programming language you have five years experience in and therefore it sucks, right?
There are plenty of slimmer async runtimes for Rust. Pollster comes to mind, although it doesn’t provide any I/O functionality. (That’s where the “bloat” that’s in Tokio comes from – it’s providing functionality the Javascript runtime has built in. You see, Rust, unlike Typescript and Java that have compilers that emit source code for an interpreter, is actually a compiled language, and Rust programs compile to self-contained executables that don’t need any external dependencies to run. If you included the size of the node binary in your Javascript app, Rust would win the filesize war no contest.)
As for “performance doesn’t matter” – I’d like to tell you a personal story about a Rust program I’m working on. There’s an imageboard I’m a fan of, and it runs some booru-like software, meaning when you upload an image you give it a few dozen tags, and then people can search for images by their tags. The tag search functionality on the website I thought was missing a few features, so I downloaded a copy of the entire post database on that site (including URLs and tag lists of every post) and wrote my own search algorithm in Rust. I wrote a function that accepts a search query and a list of tags and returns a boolean, and searching the posts was as simple as vec_of_posts.iter().filter(|post| matches(search_query, post)).collect()
. I then downloaded the rayon crate, and, with a sngle line change to vec_of_posts.par_iter().filter(|post matches(search_query, post).collect()
, I was running the search in parallel on all CPU cores. Running a full search of all four million posts takes about 50 milliseconds on my laptop, or 3 seconds running the search locally on an Android phone. Try that in an interpreted language.
(So help me God, if you respond to that last point by saying “cloud computing”, I am going to shoot you in the head.)
Why not?
That is actually the best way of putting it.
have you considered just not listening to AI bros and not letting their opinions upset you
oh my god yes let them trot out the “it’s not copyright infringement, honest” argument in front of goddamn netflix
You know how vaccine skeptics are. They think the COVID jab is a Jewish plot or some similar bullshit designed to kill everyone who takes it.
You’ll eventually go back to Reddit and see it with new eyes, realising just how quickly it’s dying.
I don’t want to ruin the vibe for our newcomers, but… is it? Every subreddit I’ve subscribed to is an order of magnitude more active than all of the equivalent Lemmy communities spread across various instances put together, and from what I’ve read most Redditors remember the API blackouts as “that one time the moderators collectively had a tantrum” and they’re glad it’s over now, if indeed they remember it at all, and mentally group Lemmy in with Linux as that thing enthusiasts won’t shut up about, and yeah, maybe it’s better, for them. For goodness sake, half the content on Lemmy is reposts from Reddit. Don’t get me wrong, I hate spez with the fire of a thousand suns and I can’t wait to see more Redditors make the jump, I can’t help but think that the whole “Reddit is dying” narrative is just copium.
Welcome to the Fediverse! I think you’ll like it here.
I would argue the point that installing in dual boot is any more complicated than a clean install, especially given the state of modern Linux installers
please do not put your actual installed system (read/write) on a flash drive. linux will let you. it will happily install to the flash drive and it will happily boot up. it will let you log in after just a few minutes. plus ten seconds every time you click something.
please don’t use flash drives for anything other than installation media unless you’re using a distro that’s specifically designed to be installed portably and doesn’t do a ton of disk I/O.
OP, please don’t let the other users scare you off. I’ve installed Linux dozens of times on dozens of different computers and have never once lost data while doing it, not unless I explicitly choose the option installer telling it there was nothing I wanted to keep (which is labelled “DANGER - YOU WILL LOSE DATA” in red letters). Linux Mint installer has an option to let you keep your existing OS and install Linux alongside it in a “dual-boot” configuration. This means that when you install, you permanently set aside a portion of the capacity of your boot disk (hard drive, SSD etc.) for use by Linux. The total capacity of your Windows partition will shrink by that much and Linux will live in a new partition in that space (e.g. if you have a 1TB SSD and set aside 250GB for Linux, from then on Windows will start seeing your C: drive as being 750GB large and Linux will have a brand new 250GB volume as its equivalent of the C drive). You can change how much space each OS has down the line, but it’s really annoying and requires you to boot off a flash drive and not be able to use your computer for several hours while it rearranges its data.
After that, each time you turn your computer on, you’ll be asked whether you want to boot into Windows or Linux. (This will come in very handy if Linux borks itself and you need something working to be able to Google for solutions and use your computer as a computer until you can figure out how to fix it. Or if you decide down the road that the Linux way of doing things just gets under your skin and you want to go back to how your computer was before.) While booted into Linux, you’ll be able to access all the files on your Windows C: drive as though it were an external drive, but not vice versa. If you want to send files from Linux to Windows, you’ll have to boot into Linux and copy them over. Note that from the perspective of any apps you install on either OS, your Windows and Linux partitions are two totally separate computers, so expect to be asked to sign in again.
All that said, having backups is never a bad idea if you can afford it. If you can’t, a surefire way to keep Linux installer from erasing your Windows files is to put two SSDs in your machine, one for Windows and one for Linux, and disconnect the Windows one until you’ve finished installing Linux. This is what I usually do, and as a bonus gives more space for both OSes, although it’s by no means necessary.
OP, this is absolutely not the case. If you install in a dual-boot configuration (recommended for beginners), not only will you not lose your data, you won’t lose the ability to boot into Windows. You’ll get asked to choose which OS you want each time you restart and Linux can access all files on Windows (but not vice versa). Secondly, not only is windows not the only OS that markets itself to Just Work™ (that’s been MacOS’s entire shtick since its inception), modern Linux does that as well. You can install software and drivers, manage system configuration, etc. without even knowing what a terminal is. Knowing how to use the terminal is never a bad idea, but rest assured that by no means do you have to, especially when starting out.
I sincerely doubt the person I’m replying to has used a distro marketed towards Linux newbies at any point in the last five years.
These companies really do have a competition going for who can make the shittiest Java IDE, huh
I don’t know how to open that post on my instance so I can reply to it, but if you’re willing to give it another shot, I figured out how to get indentexpr=
to apply to all buffers from init.vim, using an auto command. Add this to your init.vim:
autocmd BufRead,BufNewFile,VimEnter * set indentexpr=
set indentexpr=
Vim and Neovim are fairly indistinguishable
You mean apart from being able to write plugins in Lua instead of Vimscript?
Love how the lowest 3 are Eclipse, NetBeans, and Code::Blocks
so like the autopilot in Elite Dangerous. will it get you there? sure. will it get you there fast? …not exactly.