RangerHere

u/RangerHere@programming.dev
0 posts · 25 comments

Recent posts

No posts.

Recent comments

on *Permanently Deleted* · c/Technology · 5 pts · 1y

I don't know how AI is going to change the employment. But it is going to shake things up a lot.

A 2024 study from MIT showed that AI was able to perform around 6% of all of the jobs in the world better than humans.

Another study by OpenAI found that their O3 model could perform 8% of all freelancing jobs without human supervision.

AI coming. It's coming for some jobs. I think translation is one of those jobs.

That being said, it was exceptionally stupid of the CEO to say that and sink all of his public image. At the end of the day, if AI can do what their contractors can do, nobody would need duo lingo.

on *Permanently Deleted* · c/Technology · -7 pts · 1y

It won't... Again, I can distinguish between company time and private time.

Employment is an exchange of time from employee for resources from employer.

Microsoft is not saying you can't support Palestine. You can.

That being said, Palestinian employees interrupted public and private Microsoft events. That caused monetary damage to Microsoft. Microsoft is saying that is no longer welcome during the company time using company resources. That is 100% within their right.

I had similar issue. Every time I was writing a systemd file, I would have forgotten what I previously learned.

These days I just make deepseek/changpt do it. 90% of the time they get it right. Even if they get it wrong, you end up with a file that will be perfect with a line or two changes.

on *Permanently Deleted* · c/Technology · -9 pts · 1y

With all due respect, no company in the world has to pick sides. They can choose a side or do nothing. If you don't like what they are doing, you can boycott them.

I don't see anything wrong with Microsoft silencing Palestinian protesters after what they did in some public and some private events at the company.

on Warp: Rust-based terminal · c/rust · 12 pts · 3y

I love Rust. Although I agree with everything else, I would definitely not say "same amount of effort".

Here are couple suggestions about how to improve your algorithm:

First of all, you should reduce the number of calls to realloc function. This is because, this function will often need to switch to the kernel space to be able to do the reallocation. I think it is nice to allocate the same size as a single page or multiples of page size from the virtual memory. I think you should allocate 4KB or 2MB of memory at the beginning of the function. Then reallocate multiples of the page size when you need to reallocate memory.

Second of all, reading the input one character at a time is also time-consuming. Repeatedly calling this function means you will end up going to the kernel space, grabbing a single character from there, then coming back to the user space (I used this as an example, there are many buffers between your application and kernel space). Instead I would suggest you to read 4 kB at the time using read or fread functions.

If you do not know about files, caching, virtual memory, page sizes, kernel space, user space, and optimization then please disregard everything I said. This will only confuse you now. I know it is a lot of fun to start thinking about optimization when you are learning a new programming language, on the other hand as mathematician and computer scientist Donald Knuth said, premature optimization is the root of all evil.

I hope this answer helps you.

Thanks for letting me know. I plan to contribute to the source code, as well as running my own server just to play around with it and getting more familiar with Rust.

I agree with the donation box, I'll donate when it's ready.

I used to be Slackware user. Then I sold my soul to RedHat, then to Debian...

I just installed Slackware after reading your message to see what is new, here are my findings:

  • There is still no auto install. I had to manually configure a lot of things using a terminal based fdisk and setup.

  • The default package manager, pkgtool, does not have a default way to auto install packages from web (something like yum, apt, up2date). It only installs from your own HDD.

  • The other tool for managing packages, slackpkg, was not installed on my system by default.

  • The default configuration for X and KDE has problems on my system. I can see the mouse move then nothing.

I can understand why somebody would like to play around with this kind of system as a fun/entertainment/puzzle solving in their free time. On the other hand, if you plan to run some kind of microservices architecture on this, then I wish you best of luck finding a new job once you are fired.