Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "rust"
-
Sometime I’m developing in Rust and I do something wrong.
Then I look at the terminal and it says...
“You did X, did you mean to do Y”
Then I do it and it works perfectly, and I’m like...
Why do I even have a job if the compiler is this good?10 -
Omfg this fucking guy!!!!
Context:
We are going through a major refactor of some of our backend components. I was tasked with cleaning up our ML code while another guy was tasked with cleaning up the general CRUD side of the backend, let's call him DA for "dumb ass".
** At 11pm
DA: I am getting a strange error from your backend. Look:
"Invalid call: method=PUT expected=[POST]"
Me: you need to send a post request not a put request
DM: no, it's not that. I am sending the right thing
Me: ... Let me see...
* 15min ish of testing *
No, it works fine on my version, 1.1.0 what's your version?
DM: I'm on 1.1.0.
Me: send me code?
DM: *send
"request.put(..."
Me: you are sending a PUT... It's literally in the screenshot. Send a Post
DM: I am
Me: no, send a Post
DM: I don't understand, I am sending the request
Me: it's a post not a put
DM: but...
Me: it's a post not a put
Me: good night!!!!!!14 -
I finally got it working! Now I have a foundation for a kernel and an uefi bootloader written in pure Rust
Today was a good day :)21 -
Function definition in various programming languages
//JavaScript/PHP
function myfunc()
{
}
//Swift
func myfunc()
{
}
//Kotlin
fun myfunc()
{
}
//Rust
fn myfunc()
{
}
//Next...
f myfunc()
{
}26 -
"Can't have a fucking std (method) call, give me a break"
Said that loudly on a phone call. Wondering why people were give me dirty looks on the train1 -
Got the best compliment on an interview :3
Submitted a coding take home assignment. Was told by the tech lead that the code looked like they wrote it themselves! There was nothing they would change in terms of style or approach :38 -
"Is there a way to iterate over enum values in Rust like in Java"
"No, because they are more powerful"
🤔🤔🤔21 -
Heck yes!
I implement a stack trace in my embedded systems!
Whenever a device crashes, it makes a stack dump in an unused part of ram.
After it has rebooted and is connected to the server again, it uploads the stack dump.
The server then opens the correct firmware elf file, walks the stack and associates the debug info from the elf.
The result? A beautiful stack trace with file names, function names and line numbers.
No more guessing where random crashes come from.12 -
On the first day of Christmas my true love gave to me—a few minutes to myself with a Rust programming book (don’t judge — I just started learning).6
-
To the people talking about boats on the other side of the cubical wall, FUCK YOU! YOU HAVE BEEN TALKING FOR 45 MINUTES! DO YOU WORK? I HOPE YOUR BOATS ALL GET RUST. I worked 12 hours on Sunday, got 4 hours of sleep, pulling a full day, then depending on how much work I get done work all night again. RESPECT MY QUIET ZONE!!! Uncouth peasants!undefined 3 years of friends repeats wife has the show on repeat boats rust no sleep i know it all friends reference rust is boat cancer pissed off14
-
This is so true!
Too many companies in the past years have been focusing on moving rendering to the client, and not optimizing their webpages that we lost sight of making efficient and fast websites.9 -
Where the fuck my privacy go?
I'm paying you to listen to music or watch films, I don't want you to create a damm profile my taste or "learn" what might like.
If it was a free service, fine, I'd understand, but I am fucking pying you. I should have the option to completely disable your arse sniffing software.
I know some of them provide a "private mode", but I want that to be the default, I am paying for the god damn service :/6 -
You know a company is ripping you off when they charge £79 for a fucking charger and it breaks in 1 year. Fuck you Apple2
-
Yes Forbes. I definitely believe that Deepin is one best glorious Linux. No way China has anything to do with it :3 👍10
-
Everyone talks about their hate of js but like python is honestly just as bad.
- shitty package manager,
* need to recreate python environments to keep workflows seperate as oppose to just mapping dependencies like in maven, npm, cargo, go-get
* Can't fix python version number to project I.e specify it in requirements
- dynamic typing that gets fixed with shitty duck typing too many times
- no first class functions
- limited lambda expressions
- def def def
- overly archaic error messages, rarely have I gotten a good error message and didn't have to dive into package code to figure it out
- people still use 2.7 ... Honestly I blame the difficulty of changing versions for this. It's just not trivial to even specify another python version
- inconsistent import system. When in module use . When outside don't.
- SLOW so SLOW
- BLOCKING making things concurrent has only recently got easier, but it still needs lots of work. Like it would be nice to do
runasync some_async_fcn()
Or just running asynchronous functions on the global scope will make it know to go to some default runtime. Or heck. Just let me run it like that...
- private methods aren't really private. They just hide them in intelisense but you can still override them....
I know my username is ironic :P13 -
What does a veteran Rust developer say when asked to program a daemon?
- My system development skills are a bit rusty but I will try.5 -
I've started writing Rust code for fun. My initial experience with it is that its like writing a program wearing a surgery mask and latex gloves with a condom around your keyboard, while you sit in a padded room with a nanny nagging over your shoulder.
The borrow checker is somewhat of a pain in the ass to deal with.
But that said, I've never been so safe and confident my code won't fail during runtime before.
And the best part: it's blazing fast.7 -
Yaay, after several hours of tinkering I finally got a simple chat over TCP working in rust. I'm happy, I like rust :)16
-
Every time someone compares Golang to Rust an angel falls, a unicorn dies and a Java developer writes another class.
Please stop doing that.8 -
Holy shit. I just watched a video on Rust and I think I am in love.
Tracked mutability, reference counting, guaranteed thread safety, all in a compiled type-safe language with the performance of C++? 😍
Why did I not check this out sooner??11 -
How do you tell someone that they are wrong without sounding like a douchebag or coming out as aggressive?11
-
PRIVATE - This is private, nothing here. seriously, there is nothing here. Do not click; I'm not kidding. Definitely no... [read more]3
-
Full HD 27' monitor 😍😍😍 when you can divide your screen into two halves easily and there's no need to do Alt+tab3
-
> Make a small game.
> Do it in Rust because why not.
> Decide "Hey, why not make the game objects have Lua scripts for their logic because Lua is easier to do quick and dirty code in than Rust?"
> 5 hours later delete all the code related to running the Lua in Rust because AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1 -
client "we want x, y and z"
developer "ok that's fine they'll cost this much"
client "why will they cost, they won't take you THAT long to do"1 -
Dear Swift, we have to break up. I’ve found a new language to love. Oh don’t act so surprised, you know our relationship was on shaky ground. You never let me have any fun. You’re always telling me what to do and how to do it and I’ve had enough. You treat me like a child, and I’m moving on.
Things were good in the beginning, and you may have impressed me with your automatic reference counting, but my new language can do that too, and so much more, and does it faster than you could ever imagine. You see unlike you, my new language doesn’t boss me around. It *trusts* me, Swift. That’s the one thing you never could understand. I need to be trusted; and know that I can trust in you.
Well I can’t. Not anymore, Swift. It’s over. My new language just treats me better than you ever could. I’m sorry it came to this but I deserve better than you Swift. We’ve both known this for a long time.
I wish you the best, but you probably shouldn’t call.
I’m with Rust now.1 -
Workstation for last few hours. Just sitting here chilling while waiting for my car to get serviced.10
-
Worst part about getting a new laptop: losing all my stickers
Best part of getting a new laptop: New Stickers!1 -
Me: Hey can you make another cup of coffee like this one for my friend?
Rust: Sure, but you know it's expensive, right? Why don't you just let your friend borrow your coffee?
Me: Alright, but I have two friends.
Rust: No problem, you can share it with as many friends as you’d like, but only one of you is allowed to drink it.
C++: Hey wait! I’ll gladly make a cup of your coffee for your friends! I’ll even let them share it! Heck, they can even share yours!
Rust: Hey C++, you know copying coffee is expensive.
C++: Of course I do, but he didn’t define move construction or assignment, so he implicitly wants a copy!
Me: [To my friends:] Hey, let’s just go over to the Python coffee shop.
Rust: [To C++:] Hmph. The baristas at that place will even let you declare that a muffin is a cup of coffee.
C++: Yeah, but wait till they try to drink it. I hear it can be quite exceptional....
———
Slightly modified from this comment on a Reddit post that I found humorous — only I probably made it much less funny: https://reddit.com/r/...2 -
1. Building stuff is awesome!
2. It's creative work that actually makes cash
3. I like writing algos and math4 -
So I wanted to spread a struct in another struct to fill fields with the value `None`. Not what I expected when I googled "Rust spread into"..10
-
Call at 5am, meeting in the office at 5.15am, leave office at 5.30am on route to airport because the customer doesn't know how to use the system. It turned out to be nothing :/2
-
I wrote I little Programm that shows you the current bitcoin price.
https://github.com/DominicWrege/...
I you want you can help improve it.14 -
Definition of C++: super fast language with lots of problems.
Definition of Rust: C++ without all the problems, an awsome package manager and community made of real people!11 -
That moment when google ranks gmail with a low speed score... oofff...
https://developers.google.com/speed...7 -
Well, I am now in a commited relationship with devRant.
Just deleted facebook, mainly because it was draining me, MY BATTERY, my battery I mean. And also was not using that old serpant.1 -
The single most annoying thing about Rust the language, is that it shares name with Rust the game.
This sometimes leads to some pretty cumbersome workarounds when trying to Google for things in one that also exists in the other.5 -
This is interesting coming from the man who build the biggest IP conglomerate in the world. A man who actively tried to kill open source. Looks like he got into his senses at his old age. Although, he is talking about AI models only, not software as a whole.
Yes ML/AI models are software.2 -
Rust, because if we can eliminate all security issues because of buffer overflows or other memory-related problems without a GC and still be as fast as with C, that would be pretty dope for everyone.1
-
Building an amazingly complex system from scratch in Rust means 2 things to me...
1. Really cool tech with great syntax to learn
2. My value as a developer will be going up a lot. In terms of the salary expectations
I really love when I get to learn a new technology, not for a project or course, but to build really cool real-world applications.
That’s what drives me!5 -
In my opinion
php is shit
js is shit
now what we have with babel-preset-php is converting shit to shit. it's a fucking shit storm.
https://gitlab.com/kornelski/...8 -
Never felt the need for a stressball until I started using those damn automatic checkout machines ...
The f***** juice is in the f***** bagging area and I dont need no f***** help. Who the f*** coded this shit ***** ***** *****3 -
I've been eyeing Rust for quite a while and it definitely caught my curiosity, specially after the SO survey. Now I want to learn Rust but I normally need to work on a project in order to actually learn and keep myself motivated, yet I have no idea what to start, any ideas?15
-
Are there any normal people who like RUST? Seems like RUST enthusiasts only consist of people with C++ PTSD, raving fanatics and cringe-worthy hipsters :S19
-
client "it's ok we have a logo"
2 days later... receive a Word doc in an email with clients pixelated logo embedded -
Rust: Unclear error output is seen as a compiler bug.
Me: 👏
SSIS & SQL Server: Unclear or absent error output is seen as an enterprise feature. It's so mature!
Me: 😩 -
Learning Rust.
Holy brainfucking brain melt, those references, scoping and borrowing and cloning and whatnot, because there is no garbage collector, but also no direct memory management.
It's cool, but also hard for a noob coming from the JVM/Android. The compiler error messages are helpful, but I immediately found some cryptic ones that don't help me at all.9 -
After using Rust for a day, my only way to describe it is "cut off a leg to clip a toenail"
So much freedom is removed from the programmer, and you have to account for every single situation, it's kind of annoying for a first timer10 -
Every time I read some code of the rust standard libraries or code of other popular rust crates, I feel ashamed of the code I produce ... their level of documentation is just outstanding, mine is ... hardly existing?
Guess a rant about myself :D -
Rust is beautiful. Rust is also extremely difficult to understand. What the fuck are lifetimes?! I’ve never seen this shit before in my life.15
-
Does anybody find that different styles of programming suits their personality better?
I've put a lot of effort into learning Rust. I think it's type system is fantastic. But after trying to make a basic programming language interpreter in it, I found Rust too complex. I kept struggling to express my types correctly, so I spent more time trying to understand the language instead of designing and writing my program.
Now consider Go. It has some overlap in programming domains with Rust. It has almost none of the high level features of Rust baked in e.g. iterators. It's approach to programming is very imperative and procedural like C before it. If you want abstractions you will have to make them yourself. As someone who enjoys understanding the details I appreciate this step by step approach and its comparatively simple language design.
What do you think? Do you think certan programming languages are more suited to different personalities?18 -
I'm getting beat up pretty bad by Rust. I like it so far but man is it hard. Imposter-syndrome is almost making me lose motivation. Almost, but I won't quit, one day I'll get there.
I think the primary reason I think I'm having such a hard time is that I'm trying to learn stuff that prevents me from making some mistakes that I have never run into. I know a bit of the theory but no hand's on experience on double-free errors, memory leaks and weird low-level stuff. I read the documentation, mostly understand what stuff is for but when I go write code I'm just like "now what?". I don't have enough experience to know when and where to use some concepts and I'm super lost. I don't know where to start and the feeling of being completely overwhelmed by all sorts of new stuff is at the same time exciting and frightening.
I have never, as a programmer, thought something was hard. All of my past knowledge required dedication, work and patience, but I wouldn't say I ever felt something was *hard*. But Rust... damn. Rust is hard.
Hopefully at the end of this super steep learning curve I'll know a lot more stuff and have stronger "dev powers" and be one step closer to being as knowledgeable as some of you guys around here to whom I look up to.2 -
I was gonna complain about why it is not clear how the tags should be used...
Then saw the placeholder "Tags (comma separated)" -
C: what technologies are you using in this product?
Me: we are using celery which uses kombu to communicate through redis. Additionally, we have beat tasks that run and check the state of workers
C: was someone hungry when they named these frameworks?
Me: Possibly, but I just got hungry naming them. -
For context, I've been working for a couple years now with Rust, and, I have to say, the experience has been astoundingly pleasant. The language is both incredibly productive and meets each of my use cases and stipulations regarding speed, safety, and complexity. That said, I've come to beg the question, "what is the point of functional languages like Haskell?" To me, what seems attractive about Haskell is the inherent thread safety, and the added syntactic niceties of code written in the language. However, one must keep in mind, my experience with Haskell has been pretty limited, simply due to the massive learning curve that the language presents. Such a "learning curve" brings me to my central point: these days with languages like Rust which bring together the best from functional and imperative worlds, it seems like functional languages are becoming increasingly irrelevant. Let's face it: no sane person will choose to learn a functional language as their first language, outside of academia and mathematics, and OOP/OOP-like languages remain dominant in the space. So, why then, is Haskell any different? What benefit do languages like Haskell pose in the modern CS space that thread-safe, non-GC languages don't already provide?2
-
I love pipes in R. Really wish more mainstream languages would adopt that *looking at you python, nodejs-tc39, rust, cpp*
Just something about doing
data %>% group_by(age) %>% summarize ( count= n() ) %>% print
As oppose to
print(summarize (group_by(data, age), count=n()) )19 -
I love my job. Minus that 1 stupid guy who I don't understand how he was hired. And minus one of the managers messaging me after hours to do work. Everyone else is alright, need to find a way to hide from that manager and work on projects exclusively with other managers D:
Anyone else ever felt like hiding from management? Lol1 -
Is it ethical to charge a client for the runtime of a computation? I.e. cpu time?
I usually don't, since it doesn't cost me anything to leave my machine running overnight. But a few of my friends told me that I should.
More context:
I do sometimes freelance work for professors as an RA. At times you need to leave a script running for like +5 hours. During which I just either procrastinate or go to the gym or sleep. The energy cost for computer running is barely a dollar.
I get charged by the hour per work in my timesheet, or sometime for a negotiate price which is also usually computed by the estimated work time it would take.5 -
A big project in my company. Had some annoying race condition that caused data to get deleted when two processes finished in the wrong order they hit the dB and override each other’s work.
Long story short. Fixed the bug and in the process the codebase shrunk by 60%. I didn’t have to delete the rest of the code, but the bug was due to a function in the legacy section of the code, and found out that it was the only function used in that section.
So I deleted it. Rewrote the function so it upserts. And bam. Smaller, cleaner code :)1 -
Woo! My first Vulkan window that does buffer swapping (swapchain image presenting in vulkan lingo). It doesn't draw anything yet and still took me 3 days lol
Note that if you try to resize it or minimize it or do basically anything with it the whole application crashes but still11 -
Have to use Mac for mobile development
Have 16 GB of ram on a MacBook Pro machine from 2013.
It’s been working perfectly fine on the stack I’ve been using (Firefox, vscode, react-native, node, docker, Xcode, Android studio, simulator, chrome canary)
Apple releases new hardware with 32 GB ram and a few months later I see my is slowing down due to low ram, forcing me to close apps
I smell something fishy going on2 -
There's something special about writing your first "Hello world!" in a new language, no matter how long you've been programming :)
So hello rust, let's see what the fuzz is all about...4 -
Is anyone else super annoyed that rust doesn’t have an increment operator??? Why did they get rid of it????12
-
In modern applications it's media files that take up so much space, code files are relatively s-
*checks size of Rust project* -> 4GB wtf?
Turns out Rust Language Server generated fucking 3.6 gigabytes of "code analysis"!
Hey, I like what they're doing with RLS but seriously, 3.6 GB? I'm on an SSD, people. Every byte counts.
Rust is still 😍 though -
I fucking hate when people think they can do a better job not using a well tested library.
And then try justify why their code is better and quicker than using a library.1 -
At what point can I claim to not be a script kiddie anymore?
Like, I've built compilers, and interpreters for an excel-like syntax, I refactored a pdf-parsing library from the ground up. I managed databases and wrote protocols for communicating with hardware.
But most of my experience is with python / nodejs / golang. It is only recently that I started playing with C and rust for actual efficient system code.8 -
FUCK
I really wanna love Rust. I really, really do. But no inheritance is just such a stupid decision. But inheritence bad REEEE. No. Just no. Composition only works fine for some things because it just isn't powerful enough to properly (without performance penalty or boilerplate, that is) emulate inheritance. Some things are just better with inheritance: Games, UI, html or xml libs, etc. Now I have to use stupid fucking workarounds because oh no we cannot implement inheritance because that's scary and might give the programmers to much power. I can decide when I want to use inheritance or composition for myself, dickheads9 -
From what I’ve seen and experience while messing around with other languages, PHP and Rust have some of the best while C# has the worst.8
-
DevRant needs a save for later option... I see lots of long interesting posts, I start reading them and then something comes up (like a phone call or I need to do something). Then by the time I come back the post is gone, and I’m sad...5
-
!rant
Started learning Rust yesterday. As a web developer I like the static typing and the speed. I want to know a low-level language to complement Python but kind of dislike C and C++ and that's why I chose Rust. At the moment the syntax still feels kind of foreign but I probably need to just man up and embrace it. :)9 -
Fuck you Chrome Canary. You tell me to update and then keep crashing.
Well admittedly it is Canary :o1 -
My eyes are burning. Too much color on the notifications page, evil avatars.
There should have been a warning "Do not open in dark!"5 -
I'm about to start learning Rust. Eventhough I kinda hated on several times after looking at it again it definitely looks rather nice. Judging by some papers I've read it also seems to be really fast (as fast as C in many cases, even for complex systems like mem allocators or garbage collectors)
How many of you know Rust? Any major advantages/disadvantages I should know about?9 -
Started working on a per project in Rust (first time using Rust) .. a scripting language.
Rust is great, so fast, compiles in 0.5-1.2seconds on my $200 laptop as well! Pretty rare for safety, speed, AND compile speed to exist in one beautiful language.
Also my scripting language is the opposite of beautiful. Oh God.3 -
Today I decided to turn an RFC5545 RRULE implementation I had made a few months back for a project in Rust into a cargo package, it would have made a fine addition to my portfolio since I was positive some people would find it useful. Turns out someone else had the same idea as me around the same time I did, but already published a package with it and, worst of all, the dude seems to have made it better than I ever could.
Welp, guess I'll just throw my code away, use his package in my project and maybe contribute a bit to it if I find any issues.
.-.2 -
Have been playing the pirated version of Rust for 30+ hours with no issues.
Decide to buy the game and every fucking time the game turns into Chrome and consumes all my RAM forcing Windows to show the low on memory dialog.
Lesson learned I guess.9 -
Software engineering doesn't evolving the way you think of it.
There are no new big patterns. There are no new big concepts and ideas to bring that evolution to us. Rob Pike thinks that the concepts he used twenty years ago are the best possible way of implementing everything and he creates Golang.
The evolution of software engineering, and maybe the whole evolution as a concept is a tick-tock. Software engineering had its latest tick at nineties, when the concepts we call modern were developed. And the latest tock was the rise of the internet, and it given the single-computer-centered Von Neumann architecture really hard challenges. I mean ticks are theoretical inventions and patterns and ideas and etc, while tock is more of some practical, business-oriented implementations.
PHP is still in use. We have troubles with scaling and deployment. Banking systems still run old Java, Windows XP and even COBOL. We had persistence really, really long time ago, and now frontenders reinvent it and call it 'immutability'!
We had our tick many, many years ago. It's time for tock. With not only scientific but commercial use of things such as Clojure, CRDTs and maybe Rust lang, we are heading straight to our new big tock, which'll bring us new great problems to solve.
That's how any evolution goes.rant rust lang paradigms rob pike evolution golang ideas rust wk127 clojure patterns software engineering -
Fucking experimental technologies. I feel like doing webassembly stuff is like buying a smart device, it's not worth any of the trouble for now.
I wanted to do some webassembly-stuff with rust and yew (basically react for rust). I was really hyped because it all looked promising and i found this cool band "heilung" whose music made me my coding feel like black magic with complex incantations and shit.
A basic webassembly setup did work, but everything afterwards was pure shit. Crate installation didn't go as expected, i get weird errors even though i simply copied the example (and checked the versions). The best i got was when i tried to compile and rust told me to go fuck myself because i cant use feature XY in a package in the stable environment. Why the hell would someone even publish said package then? After losing half a day because of this i give up for now. I don't feel like a badass magician anymore anyways, more like the guy that puts mentos into coke and gets hit by the foam. -
Fuck you BBC, I just want toblosten to fucking radio and you tell me that I "need" to sign in.
I do not want you to tell me what to losten to. I do not want "relevant" content, just want to listen to 30 mins of news.
Then you say it is easy to signup, but then ask for my exact date of birth as the first question wtf ...6 -
So today I told my boss “nodejs without typescript is like sex with strangers without a condom. Sure it’s fun and all... but then you get an std”12
-
I've been a dedicated Golang programmer for a few years now.
But lately I learned rust, and now even the thought of garbage collection makes me davastated :(1 -
I wrote a Rust script in 10 minutes or so that processes several GiB's big ISO files and it calculates its values so fast, that most time is spent waiting for the HDD! Look at the CPU usage and the disk read/write stats :D
(No, the picture is not fake, it's a real screenshot from my desktop edited with Gimp)7 -
Rant...ish? It's more mixed feelings...
Had my first day yesterday at a new job in a big company. I came dressed really nicely in a suit and tie. Went to orientation with everyone new coming in.
Felt like I made the right choice to up my effort in dress code.
Met with my manager, was led to my team. Everyone is dressed casually. Unshaved. Giving me hate stares.
Felt out of place. But kind of happy that I can try less.
Still. What's up with programmers and being toxic to people dressed nicely o.0 I don't need to look like I came out of crunch time every single day to prove my worth...
It's really weird getting these looks. It's almost like highschool all over again. When I let my mother dress me and looked like the nerdiest kid on the block...
Then again, today I'm wearing sneakers and causal clothes. I either feel like I cave in to peer pressure... But at the same time I don't mind it. Erghhh... Still hate this...
Mixed feelings... I donno.5 -
Anyone else excited for the purism and pine phones to hit the main market? Wanna hear what the devRant community is thinking of this?4
-
I was sitting in a client meeting recently and we were discussing the client's social media requirements. We said we'll setup Facebook, Twitter, Instagram and Google+ profiles when the replied "What about Whatsapp?"
We said "That's a messaging app".
Client "Well, we want to receive messages, so set us up with a Whatsapp profile too"2 -
Why the fuck does Samsung Hub which I don't want on my device, keeps installing Peel Smart Remote TV Guide, what ever that shit is on my device.
Have deleted it 3 times since yesterday and it keeps installing it.3 -
Just came across this sentence in an oped... some strange times we live in. I still remember when I was getting into tech how everyone was afraid of Microsoft... but to be honest google & apple are doing more EEE than Microsoft so...6
-
Back when I was still in school for comp sci we had an advanced software engineering and design class with c++. At this time, everyone was expected to be proficient enough with cpp to go ahead and properly work with whatever the instructor would throw at us. And pretty much everyone was since past classes included a lot of c++ development. Of course, efficient at least related to academic studies rather than actual real world development.
Our teacher would mix in a lot pf phyisics and mathematics into what we were doing, something that I greatly enjoyed, while at the same time putting real world value concerning cpp best practices to avoid common pitfalls in the development of said language. Since most bugs seemed to be memory based he would be particularly strict about that.
One classmate, good friend and an actual proper developer now a days would ALWAYS forget to free his resources...ALWAYS for whatever fucking reason he would just ignore that shit, regardless of how much the instructor would make a point on it.
At one point during class on a virtual lecture the dude literally addressed a couple of students but when he got to my boy in particular he said: "you are the reason why people are praying to Mozilla and Hoare to release Rust as fast as possible into a suitable alternative to high performant code in C++, WHY won't you pay attention to how you deal with memory management?"
And it stuck with me. I merely a recreational cpp dev, most of my profesional work is done on web development, so I cannot attest to all the additional unsafe code that people encounter in the wild when dealing with cpp on a professional level.
But in terms of them common criticisms of C and C++ for which memory is so important to work with, wouldn't you guys say that it comes more from the side of people just not knowing what they are doing rather than a fault on the language itself?
I see the merits and beauty of Rust, I truly do, it is a fantastic language, with a standardized build system and a lot of good design put into it. But I can't really fathom it being the cpp killer, if anything, the real cpp killers are bad devs that just don't know what they are doing or miss shit.
What do y'all ninjas think?8 -
Someone made a summarized version of the rust book. Still worth picking up the real thing, but this is handy.
https://github.com/psibi/...2 -
Why does my brain just struggle so much with Rust.
So much of the design fundamentals I've learnt over the last 10 years from doing OO in memory managed languages don't carry over very well into Rust, and my brain is sucking at coming up with alternatives, or finds the alternatives I do make ugly.
Frustration is real.2 -
After a long year of going back to school for a masters. And working my ass off in networking events and internining. I can finally call myself a data scientist by job :D
-
is there any open source project/community demonstrating scope and live application /project in RUST language ?2
-
So I made my first rust program with just a quick look at the docs on for loops. 20 minutes from nothing to exe. Just fizz buzz but still. Took me 4 hours to get C++ compiling.3
-
An OSS library made me learn a new language and I am so happy it did!
I came across a well implemented System Verilog parser written in Rust. It was so good to see someone putting in the effort to write that library, I wanted to contribute to it. I had zero knowledge in Rust but I thought, what the heck, let me learn it.
And man it was a steep learning curve. After a 2 weeks or so, now I have very basic understanding of the language. What better way to learn something than just diving into an actual project?
So, today I raised an issue to the developer for a possible improvement to the library. I hope he accepts it -
So, after day 3 of Rust programming I have an observation to make:
Rust package management (and conflicts that arise) is not very good.
To the rusters out there, am I wrong? Is there something to make it better?19 -
One day every 2 week, we got to spend the Friday just learning and trying stuff. No working on projects unless it's critical.
On these days, I feel like I learn much more than in the rest of the weeks.
Today I built (normally Python developer) a web service using Rust. -
started my rust journey a few days back after a lot of debate, so far it's been *weird* to say the least, but i'm looking forward to it.5
-
I had a small look at rust this morning and thought it looked interesting, after seeing the speed of the language I started learning it. here I am 3 hours later conclusion: I LOVE IT7
-
First day developing in Rust. First day developing using the actor model in Actix. First line in a new production codebase.
Oh my5 -
A really fun story to read. Makes me think of my own work shenanigans. Good to know Uber is just as fallible!
https://mobile.twitter.com/stantwin...1 -
If all programming languages but one got deprecated, that one should be Rust. Honestly, whoever designed it is a fucking genius.15
-
Starting to learn rust... It's hard! I've never worked with a language this low-level before, there are a lot of concepts to learn. It's a good hard, though.2
-
Rust is a beautiful language. Fast, safe and system level.
The best and worst part of the language is that it has no inheritance.
Oh, and the super slow compile times really do suck.3 -
Trying to sleep. Looking at devRant. See a f ew rants about bugs which reminds me of my bug. Get out of bed and now behind my computer trying to fix the bug. Hope it's a quick one so I can go back to sleep
-
Whats up with Rust?
New to devrant so thought I'd post this here instead of googling (to practice devrant.. 😊)
Haven't heard of rust till lately but not sure it's place in coding languages...6 -
I really regret switching to manjaro. So many things keep breaking, like my laptop won't sleep anymore, it stays up, whenever I plug in another display I get an error thrown at me. Among other weird behaviors (all screen related) that I can't seem to fix and make the experience feel like I'm running a very clunky win-poop machine.
On the other hand, setting up a very custom sddm theme and installing certain software like hadoop, rust, gimp, xfce tweaks and other things was such a breeze D: just "yay hadoop" and 90% of the work was done.
Grhhh... Wondering if I should accept defeat, and maybe switch to Linux MX or spend hours fixing what probably is a display driver issue that's pissing me off 😠2 -
Project idea:
Writing something akin to JavaFX or WPF to use with Rust.
A fairly easy to use XML-oriented system for writing run of the mill GUI apps for the desktop -
been about two weeks since my rust journey begin, and i've got to say, i love it. web frameworks with static type checking; amazing, standardised package manager; what a breeze, and macros; despite stating that i don't really see them as useful in earlier posts, they are really helpful. as well, in response to the slow "cold-start" build times, it's the price to pay for top-of-the-line compilation-time error checking. rust is amazing)4
-
Hello everybody,
I am 17 years old, I love to code and I cannot decide which new language I should learn.
What do you think of Rust and Crystal? What would you prefer? What is better?11 -
Where are recently all this rust posts coming from? Did I just not notice them for the last half year or have they just started a few days ago? And why now?
-
For fuck sake, stop complaining about the number of js libs. There is just as many if not more c/c++/c#/java/python/ruby/php... libs.
Just because they are available on npm or github, it doesn't mean you have to fucking see/read/use it1 -
"What do you mean I can't use a regex object as the key in a hashmap??
...ok, you know, now that I actually said it out loud"3 -
Just had an argument (with myself ;)) whether to write a completely server rendered site or a js app.
The only stas I have manged to find is from 2010 saying potentially 2% of users could have js disabled.
Why cannkt I find newer stats :/4 -
client has no clue what he wants and keeps changing the requirements of the projects; wants to deploy "to a desktop app like electron but faster, but also as a lib for developer to use on a server like a CMS" 🤦🏻♂️; takes two hours in a call and literally tells me that he want to "hear himself speak" so he can clarify what he needs...
me: NOP3 -
Have you seen those comments which are better than the rants themselves ...
I see myself being forced to ++ the rant, just so people could see the comment :/1 -
Anyone got some good recommendations for a Rust library that takes SQLite and lets you turn it into JSON?
I'm asking for a friend...also, I'm fairly positive the Puritans over at StackOverflow would have me crucified if I asked this one over there...1 -
i hate to admit it, but android chrome new tab sometimes provides some amazing programming news.
like this one about rust fuzzing.
https://fuzzit.dev/2019/10/...
i know little about rust and nothing about fuzzing (although I did know about a similar concept used for videogame testing).
damn, this is the type of thing that makes me want to become excited to learn a lang.3 -
new Rant(‘
I'm sorry but if you think a language, OS, or pretty much anything else sucks just because it's hard to learn/operate then you're just lazy and closed minded. Look up "rustlang rant" on YouTube and you'll see what I mean.‘)3 -
2 Days ago i started learning Rust, because i was planning to learn for years.
Well turns out, rust is even better than i thought! Rust's STL is basically a blessing, you have stuff like vectors, tcplisteners, etc. in there! So no more self-management of sockets which were necessary to write in c / c++ (without ext. libs)!
Fucking love that shit!! It's so great! :)6 -
Someone should really close the COVID-19 ticket. Or at least make it ready for technical/PO review.1
-
Everyone I tell this to, thinks it’s cutting edge, but I see it as a stitched together mess. Regardless:
A micro-service based application that stages machine learning tasks, and is meant to be deployed on 4+ machines. Running with two message queues at its heart and several workers, each worker configured to run optimally for either heavy cpu or gpu tasks.
The technology stack includes rabbitmq, Redis, Postgres, tensorflow, torch and the services are written in nodejs, lua and python. All packaged as a Kubernetes application.
Worked on this for 9 months now. I was the only constant on the project, and the architecture design has been basically re-engineered by myself. Since the last guy underestimated the ask.2 -
I have procrastinated for four days straight. I have done nothing of what I should have done.
I've never been more productive though. Wrote a multi-platform SamacSys library-loader clone in Rust. I haven't written any documentation yet as that's about as boring as the stuff I have to actually do. 🙃
https://github.com/olback/...2 -
I was just looking new and lesser known programming languages. Then I came to Rust.
"Rust manages memory at compile time"
What?😵 How is that even possible?9 -
What should I learn first, Python or Rust?
All I know currenrlly is JS, and I want to get away from the browsers. And I'm a Linux guy, so Python or Rust seem's like the way to go :-)9 -
Rust is a nice language but the learning curve is quit steep so if you don't have time to pick it up I'd suggest using another language especially for assignments if they give you the choice. Otherwise you might like me and my classmates spend more time fighting the rust compiler than doing the assignment7
-
If there's one problem with rust, it's that it expects you to know how to use it.
One of my first projects was to try and use the SDL2 crate to make something, and I got stuck wrangling the borrow checker about how long my textures live.
I try again a year later, now knowing intuitively how the lifetime system works, and I come up with a solution easily.
This sort of thing is probably very discouraging to new users of the language5 -
You know when you are interested in a topic or have a question, and you find it on stackoberflow or hacker news, but it is from 754 days ago ...
You are left wondering, should I leave a comment here or create a new thread ...1 -
After weeks of working on my esolang interpreter in Rust while learning the language at the same time I'm finally at a point where I'm able to do the first test...
Only to realize IntelliJ Rust doesn't support debugging 😴3 -
What's the hype about Rust
I've been seeing post about Rust everywhere and I got curious so I checked the repo. However, I'm not sure what is it for.
Is it like C/C++, low level languages that can be used for desktop and CLI, or is it a AI-oriented, etc?
Give me an example like "it could replace C#" or something.2 -
Starting with rust, seems like an advanced language and I think python corrupted me, it makes learning new language a task. Is it python or rust is bit complex?4
-
Kind of feeling when started Learning Rust
Rust Stable
Rust Beta
Rust Nightly
It really fRUSTrating but..
Awesomeness of new beats all odds2 -
Holy shit I just figured out a pretty decent (and way to complex) workaround to implement specialization in Rust, I'm so hyped2
-
Is devRant using Google Analytics for upvotes (on web)? My privacy protection apps have removed the ++ button because of that on web :(1
-
So at work, I was trying to convince a senior programmer to adopt Golang for a new project that would need to handle large amount of throughput as oppose to Django with gunicorn and other optimizations (which is what we usually do).
The response was "we'd have a hard maintaining it, as no one really knows Go and it will be hard to hire people with Go knowledge".
So my question: "in your opinion, is that a good reason?" I have some go experience from other jobs, it seems like a superior solution for this problem.8 -
Is it just me or is the error handling in Go and/or Rust just.. tideous?
Maybe I'm biased because I grew up on C# and error handling has always been Exceptions and try+catch for me, but I find having to manually check errors everywhere not only annoying to code, but also horrible to look at.
Am I alone on this one?14 -
I think I've just fallen in love with 1Password
Locally synchronized vault, command line integration AND the desktop app is written in Rust?
Hooo boy11 -
Just got a new soldering iron set for xmas, courtesy of my uncle. I went to use it to hardmod a PS2. Good news: PS2 hardmodded for easy discswap and SwapMagic with original ejector. Bad news: the iron barely made it through that before oxidizing to unusability. Even after I properly wiped the tip off with a damp, clean rag before and during use, it still corroded to s**t in seconds once power was applied. (No, refiling and tinning didn't help. The solder layer oxidized too.)
Soldering irons rust to dust in my hands in seconds. Every time. Even when taken care of properly. f**k me...12 -
OMG it's suprising when you write down a code that run in the first time without an error :O I love Rust so much and I will never go back to C++ :D1
-
Any people using Julia here for something real. Like analysis or building applications? Is it worth learning or should I stick to python and cpp ?2
-
Imagine you have 100+ projects in java, that became obsolete due to Oracle decision to "improve the language" .
To me, the required effort is not easy to the point that better to invest in migrating the projects to other languages such as Rust.
So I expect to hear for example : "Lets see why we should continue using java"
Instead, you hear : " Oh the new version of java has nice features, lets continue using it".
Then I understood why :
If you start a new language, you are a beginner so if you were a master in Java, then you will not accept to be a beginner in Rust, just like anyone who discovers the language.1 -
Any good rust-IDE's out there? There's an atom-plugin that's ok imo and i found an eclipse-based IDE, but for that i have to set up a shitton of things.
How do you develop in rust?13 -
My thought process..
a compiler found a type error, oh thank god i was not using python or even worse js. this could have been hard debug error, type do matter huh!. what if compiler was even strict that could have found more error and i could really write even safe code. Ohh may be i should learn/finish Rust
** suddenly conscious slaps in the face**
first finish one project, STOP language hopping ..
Oh! right!1 -
Rust's Result is definitely the best error-handling experience I have ever had. I started working on some Typescript stuff after using Rust for a few weeks and had to implement my own Result. It's just so easy and clean that it leaves exceptions in the dust. I don't think I can live without Results anymore.
Now I understand why everyone loves rust so much. It's just so clean, safe, easy (after you get the hang of it) and so fucking powerful (procedural macros are awesome).
I want to use Rust everywhere now <35 -
Dont want anything, maybe an alternative main stream social network which I actually own my data and I can define who accesses it and who doesnt. Its my info not the company that it is being held on.
Smart p2p and encrypted which somehow only those I allow can view it.3 -
My laptop was at 500% of course usage and ram... Wtf...
Had to stay till 1am because I was debugging a microservice system with 15 services, 3 databases and a full mail server. Freaking integration tests took all night to build and run. Don't have a remote server to run this on because the guy is sick. Arghhhhhh8 -
Being fairly new to the software game I’ve yet to tried my fair share of languages, both at work at a professional level and small to medium sized projects at home. I’m now starting to see patterns and different features in languages, and I must say that Rust is a language that blew me away totally.
I read the online book and then I wrote a few small programs. It feels super modern with all the cool features and it’s so fast. The threshold can be high, depending on your background.
I’m no pro using the language at all, but I enjoy it so much. I urge you to try Rust for your next project. The community around the language is also very interesting and welcoming.
What are your experiences with Rust?3 -
!rant.isRant() && rant.isQuestion()
Is learning languages like Rust worth it? As in, will it be helpful getting a job and do companies even use it? 😄3 -
Can someone example to me why do people use a VPN when not on public wifi? Like you are already at home with your own private network.
Like the moment you log into Facebook or Twitter or medium or to check your Gmail/outlook whatever, all you are doing is making is making it very clear to the host companies that you are inconsistently paranoid. Because all the sudden the person who's home address is in Seattle, work and home phone are in Seattle and all of their communication is done with people in Seattle. Has their web traffic location encrypted unknown.
Yeah your packets might be encrypted, but you are still spreading enough self identifying information by merely existing on the web.
At the end of day it seems more like a illusion of safety that these VPN sell. At the cost of a good dollar and slower internet speeds.
Unless you got some actual trade secrets and sensitive information, the f is the point for you to use one?17 -
I've just poured my whole day into dockerizing of a Rust app.
+ How well do you manage your time?
- Yes.
I think if it's docker, then it's understandable.3 -
Just found this in my Github explore newsletter
https://github.com/swc-project/swc
Nice to see Rust is getting more attention!1 -
I decided to start learning Rust, mainly to work with REST API's, any recommendations? Or do I look out for another language?14
-
Use Rust they said. It will be much less hassle they said.
And now rustc just stops working in the middle of compiling. No error or anything it just doesn't want to continue compiling so I'm stuck forever on "Building ...". I thought I would never have to experience this again after deciding to pretend C++ doesn't exist but alas systems programming appears to forever be a right pain in the ass7 -
What are people unfiltered thoughts on apples new ARM processor? Especially if you are a Mac user?
(I'm an OS hopper, though my main machine is running ubuntu right now, and work machines are usually mac with windows with wsl)21 -
Please help, I can't figure out good names for my API :(
AsyncReadWriter and AsyncWriter are really close tokio's AsyncRead and AsyncWrite traits, it's confusing, and also you're not supposed to instantiate AsyncWriter yourself.
https://crates.io/crates/...
It's also kind of a shameful plug for my tiny lib, it's my first open source one, hopefully first of many2 -
So until now I ran bitwarden official docker image on my server but as I forgot to create snapshot before updating yesterday and the whole network got fucked up :D I installed bitwarden-rs (Rust implementation) instead... Aaand it is sooooo good! It takes only around 20MB of RAM instead of 1GB+ and it is just lightning fast. Also replaced Apache with nginx for the first time and I love it so far.5
-
Rust noob Q:
Given x a variable on the heap, e.g.
let x = String::from("Hello, devRant!");
Then, given some function that I didn't write (from a library) that takes ownership of its argument:
fn some_function(y: String) -> bool { ... }
How would you handle this situation:
if some_function(x) {
another_function(x); // not ok, because x has gone out of scope in the line before
}
Is it idiomatic to just clone() x in the first call? That seems bad practice, because it's the second (or some other additional) call that needs x. What should I be doing instead?8 -
first experience:
Crucial touchpoint with product owners;
- me doing my business on the toliet
- me cleaning up
- me brushing my teeth
** Yes I agree! That feature could****brushbrush****take some time to ***brushbrush*** do** -
“Do or do not, there is no try”
- Yoda, when developing in Rust
Also, my mobile is stuck to always make things a question @dfox
I think it is saving it from an old rant... maybe1 -
On the topic of mesh networks
1. Anyone know of a good non-cloud dependent mesh network system under $300?
2. Anyone every attempted to setup their own with libremesh or with prototype-cjdns-pi?1 -
Holy shit I don't understand Rust's module system. Package I have not a single clue what it is... It "can contain one library crate and multiple binary crates". What? Okay so a crate is a collection of modules. Great, now how do you define modules? `mod whatever {}` probably. Then what the hell does `mod whatever;` do?? Import a module from a file with the same name (ignoring the fact that modules and files don't seem to have anything to do with each other). But why `mod` to import? How does that differ from `use`-ing a module? What is any of this??3
-
I thought devRant week count would have overflowed and gone back to 1.
Qhat sort of year has more than 52 weeks, feels like the estimates PMs give ... -
I am a student with a full time job in React/React Native. I am thinking of learning something new. What should I learn Deep Learning or Web Assembly with Rust?1
-
Almost finish chapter 4 of rust book. I must say I'm so amazed by this language. Just like the first time I learn metaprogramming ruby.
Awesome in every level. You should try learning it too! :)12 -
My least successful one.. This is definitely dwm-status.
It is a daemon which sets the status bar of dwm with many configuration options. The main selling point is the way it updates: It listens to updates like file changes, dbus messages, output of a running process to be as less power consuming as possible.
Was a lot of fun to dive into rust! :)
EDIT: for the interested ones the link: https://github.com/Gerschtli/... :)4 -
Urgh... No exceptions in Rust annoys me. Now you only have the choice between "this didn't work please handle this error, thank you ^-^" and "you fool, prepare for annihilation". So basically if anything remotely serious happens your programs dead and there's nothing you can do about it. I don't get why people have this hate for exceptions. Everytime a new language gets made it's always either "ew it has exceptions" or "it's so nice it doesn't even have exceptions". NOOO! They can deal with serious situations in the best possible way and they can be statically checked (so no "but they're so complex and unpredicable" stuff please). If you can expect an exception they shouldn't be used in the first place (eventhough they are absolutely no less good than Option returntypes or whatever, just different) but in cases when it's impossible to predict an error they really shine. And not having them makes your language worse. If a device driver accesses illegal memory it should throw an exception, so instead of the computer shitting the bed, first the offending function has a chance to resolve the problem at it's root, then a few functions up the call stack, the general control functions of the device drivers can handle it and restart the operation if applicable, and even if the driver fails to handle it, the OS can jump in and restart the driver, log an error and do whatever. It's absolutely beautiful: This hierarchical ramp from near the accident site to more high level operations code ensures the error can be caught at the right level of abstraction without introduction a lot of boilerplate. If everything fails and nobody can handle it *then* the program or kernel or whatever can panic.4
-
Decided to make code editor, with language I don't know well with no idea how basic Text Buffer is made. This gonna be long journey but hopefully I have something done. If someone could point me a guide or blog posts about simple text buffers, I would be happy, thank you!
-
Want to start learning a new language (non-webdev), but can't decide between Rust, Elixir and Golang.
Any thoughts or comments?9 -
Hey folks,
So, rust.
Has anyone any ideas on a decent way to learn it? I feel of all the languages I've ever looked into it has the least about of resources of any discernable quality available. Even the docs can be a but dodge. Would I be better off learning pure c and then migrating? (as I imagine is the pathway of the standard rust user)
Any other recommendations would be deadly!8 -
When did it become so hard to come up with usernames that dont contain your name or year of birth ...4
-
AWS will be providing services for Rust as part of their sponsorship
https://aws.amazon.com/blogs/...
https://reddit.com/r/rust/...11 -
rust anyone? i am a c++ person, and it caught my attention as having an oopish-but-actually-functional new programming paradigm whatever... also (don't know if it's just mozilla's successful marketing) i had the impression that people see it as the new whiz kid in town. do you recommend indulging in it for the sake of trying something new?1
-
They need to add a new definition of Eclipse to all dictionaries.
Taking away the light and joy of development out of the process.
Synonyms: impossible, waste of time, wishing for Friday.1 -
anyone know of any quick ways to learn rust?
I am super busy these days so I don't really have time to read a book or something. I already know java, c++, etc so this type of language isn't very new to me.10 -
StackOverflow developer survey is out.
Python is now ranked 2nd as the most loved programming language behind Rust.... wait, what? Rust!?!?!
https://insights.stackoverflow.com/...5 -
A mixture of soundcloud and facebook to build a better social network only for music lovers. Trying to do this in rust to teach myself the language. And of course I'm hoping to finish it!
-
Tests, unit tests, integration tests, ui tests, tdd, bdd
I thought I was done with tests after school. Why, why you do this to me 😢😢😢4 -
I hate doc comments in Rust. They are literally just markdown without any special syntax for documenting stuff. What the actual fuck. Why can't everbody just straight up copy how javadoc does it 😭9
-
BACKSTORY:
I was considering creation of client-server app to learn some new language and wanted it to have the best possible performance.
The client part is not an issue, it can be whatever, really... the server choice is pain in the ass...
I have looked up web server framework benchmark here: https://techempower.com/benchmarks/
So comparing those I have 2 options:
- Actix (Rust)
- Vert.x (Java)
I was about to use Vert.x, it handles requests asynchronously which seems nice.
However I thought, what if I wanted to sell this shit someday and Java requires licenses, while Rust don't.
I am terrible if it comes to licenses, so...
QUESTION:
How does Java licensing work?
It is on client to pay it cause he is using it or on me as a product owner?
Or should I switch to Rust already?5 -
Anyone ever bought a laptop from ststem76 or from purism? I'm looking for a good laptop for development and gaming. (I'm a Linux fanatic btw)7
-
So I'm trying to learn Rust and I want to do like a simple project with it but I have no clue what..
Any ideas?4 -
Nothing better than Rust and LALRPOP. I've been trying to play with Bison and C++ for the whole quarantine and nothing would compile. I just sat for two days with Rust and LALRPOP and I was able to make a small interpreter that can make new variables, calculate simple expressions and print stuff. Like this:
var = 5 + 3;
print var;
var = 2 * var + 4;
var2 = 3 * var + 3 * (var + 4);
print var2 * var;
And all this in just two days. I have no Rust experience except for toying with it on an online playground. I have no LALRPOP nor parsing experience. Two days.
Now, it's not like I wouldn't be able to do this in C++ too if somebody told me how to. But nobody has. And the documentation online is gruesome. None of the bison example I found online could compile. This is why documentation matters people! Honestly, if there's one reason I think old projects die, it's because they ether don't update themselves OR they don't update their documentations. Look at the US government now, looking for COBOL programmers.4 -
I'm kind of interested in learning a language like go or rust, etc... But I'm not sure. I'm having a hard time really "getting" what they are used for? What do you guys recommend?7
-
Just finished what I consider a "good enough" version of a .gitignore generator in Rust (yeah yeah another one I know).
What a great feeling, even though struggled a lot and I'm completely frustrated that I implemented some things wrong. I have a working version (let's say alpha version) that actually works.
Unfortunately I discovered that there are better ways to implement my "match" expressions (when I was already done...typical shit) and String vs str is still a difficult concept to implement, BUT it is a great experience to finally have something open source that I can say that I made!
I honestly think everyone should have such a side project! I Should've done this earlier! 😑
If you're interested check it out on https://github.com/Ryhazerus/gg.git -
Any good programming language with great generics support that is not dynamic ?
Rust generics sucks so much I puked 2 times.
Tried with swift and it looks great.
Golang doesn’t have them.
Java sucks.
Maybe I try julia if someone say it’s cool.
I want to implement some 2d vector algebra and simple physics engine.
I started by creating generic 2d vector and trying to create dot product from it.
I didn’t wanted to do it in swift but wasted 2 days trying to do it in rust vs 1 hour in swift including 49 minutes of installing swift tools.
Anyway anyone know performant language with good generics support, let me know in comments.41 -
Has anyone here done any serious coding in Rust? I'm attempting to make a Salesforce API wrapper using it and it's both awesome and super difficult to wrap my head around
-
Some background:
About 2 months ago, my company wanted to build a micro service that will be used to integrate 3 of our products with external ticketing systems.
So, I was asked to take on this task. Design the service, ensure extendability and universality between our products (all have very different use cases, data models and their own sets of services).
Two weeks of meetings with multiple stakeholders and tech leads. Got the okay by 4-6 people. Built the thing with one other guy in a manner of a week. Stress tested it against one ticketing service that is used in a product my team is developing.
Everyone is happy.
Fast forward to last Thursday night.
“Email from human X”: hey, I extended the shared micro service for ticketing to add support for one of clients ghetto ticketing systems. Review my PR please. P.S. release date is Monday and I am on a personal day on Friday.
I’m thinking. Cool I know this guy. He helped me design this API. He must’ve done good. . . *looks at code* . . . work..... it’s due... Monday? Huh? Personal day? Huh?
So not to shit on the day. He did add much needed support for bear tokens and generalized some of the environment variables. Cleaned up some code. But.... big no no no...
The original code was written with a factory pattern in mind. The solution is supposed to handle communication to multiple 3rd parties, but using the same interfaces.
What did this guy do wrong? Well other than the fact that he basically put me in a spot where if I reject his code, it will look like I’m blocking progress on his code...
His “implementation” is literally copy-paste the entire class. Add 3 be urls to his specific implementation of the API.
Now we have
POST /ticket
PUT /ticket
POST /ticket-scripted
PUT /ticket-scripted
POST /callback
The latter 3 are his additions... only the last one should have been added in reality... why not just add a type to the payload of the post/put? Is he expecting us to write new endpoints for every damn integration? At this rate we might as well not have this component...
But seriously this cheeses me... especially since Monday is my day off! So not only do I have to reject this code. I also have to have a call now with him on my fucking day off!!!!
Arghhhhhh1 -
Just Realized... I have like 1 of every device... I'm a full on fence sitter...
iPhone X -- work phone
Huawei p20 -- personal phone
MacBook -- work laptop
Lenovo ThinkPad running Arch Linux -- personal laptop
Window Surface -- research/teaching laptop (use it when I teach and need to bring notes)
Gaming PC -- Gaming PC
And all of this took ~5 years to garner... Geez... I like all of these devices too (and sometimes i hate em) Holy...1 -
I had to generate different kinds of graphs at compiletime and had to compile a graph and write down the code size for that specific width/height in addition to one of three implementations which all need to be evaluated. I computer scienced the shit out of it!
I wrote some Rust code that easily lets me build some graphs with the dimensions passed as input parameter. Then i wrote a method that converts the graph into the definition of the graph in a C header (sadly the only way) and wrote a bash script that executes that rust code with all possible dimensions and saves the header into my source folder. Then i build the application and write the programsize into a file.
In the next step i run a python script that reads all the generated files with the sizes and created a csv file which in turn can be used by excel/numbers to visualize the dependency between depth of graph and code size 😄
I had only some hours for it all, it is messy but works 😄 -
The consistency of php standard lib function is astonishing. array_map, array_reduce ...
Why do I have to use php7 😢😢😭😭😭1 -
Cont. on: https://devrant.com/rants/3533743/...
So yeah, kind of had to figure out the semi-hard way that Yew really isn’t prod ready yet (as they clearly state somewhere). Too bad. Or maybe because I don’t have the experience in Rust to overcome some of the issues I’ve had... so it’s back to plan B, id est Vue with TS. At least I got much of the thinking work done already, so I could just write the damn code - and the stuff I had problems with in Yew were all simple for me in Vue.
Or that would’ve been the case if I hadn’t decided to use the newer composition API instead of the options API already familiar to me. Damn it took me all day to wrap my head around it and I’m sure there’s much more head-wrapping to be done. Still, I’m likely done with this at least 2-3 weeks before the deadline, so I can maybe spend the some time figuring out the Yew implementation, too... not sure why, but maybe it ends up better?1 -
I want to learn a new front and back end webdev language. So far, I've found Dart and TypeScript (though this one is not completely new to me) on the front end side, and Go, Elixir and Rust on the back end side. As I don't have too much free time, I can choose one of both sides for now, but I can't decide which ones to go with, since I can read so many pro-contra opinions.
I only need to choose for the skill, I don't have any specific target, I just want to learn new stuff.
Which ones do you suggest? -
AI taking my job
Become the next president with the moto of build a wall, build a wall, build a wall
Make dev great again ... -
Has anyone here tried nim lang?
I have been intrigued by it, but not sure if it will stay around for the long run. I believe they have been trying to reach v 1.0 for a while, but it is taking longer than expected.
Would be interested your opinions :) -
I’ve made a list of things I want to learn. Languages, frameworks, etc and i don’t really have too many things on the list that way I can learn them well.
I’ve been struggling with this choice because I’m honestly not sure whether or not I should consider Rust to be on the list.
I like the modern features it contains, and I don’t mind the syntax.
I don’t like it’s way of memory management, I’ve heard it’s performance can be very lacking, and I’ve heard a lot of negative things about the compiler and the efficiency of the language (although I feel like efficiency comes down to the person and how the code is written)
So please redpill me on Rust and try to convince me to add it to my list because it’s close.2 -
me: ah yess I need to sleep
brain:you should learn rust
me:SHUT UPP NO NOPE I AM SLEEEPING NOOOOPE
me:zzzz4 -
Sigh, when you realise your bank is using depracated dojo.js (uncompressed with console warnings) and it wont proceed unless you turn ublock origin off ...
-
You know how people rant about js frameworks; well the very same is true about nosql.
I thought let me broaden my horizon (pun intended) with a nosql db in my project.
So from Friday evening, I started off with ElasticSearch, which is pretty simple to get started, but apparently I need to understand it a lot better to use it as a primary data-store.
Then I stumble upon orient-db, was pretty exciting and learnt the apis/librarys but researching it a bit more to learn about the community; there is some bad-blood there.
Now I'm onto something called ArangoDB, think I'll stick with this; Any more time spent on this and I'll just give up on the project.5 -
Every time I get into an argument with the Rust complainer, I lose.
How was your experience learning Rust, and do you still use it? -
How do you go about introducing new technologies to your company/team?
Whether it’s writing the next API in another language or using a new framework/library/approach?6 -
Working with nightly builds and concept tech is such a fucking hassle...
I'm currently working on a WebAssembly proof of concept where I need to generate a unique id, but since threading is currently not supported (rust and webassembly) I cant use half of the libraries currently out.
And the ones that does work... guess what... are not compatible with the nightly build of the compiler I'm using for Rust. Just fucking end me.
The legit only workaround I can find is to make a server request and get the unique id from there... piece of cunt software...I need a break 😑 -
Too early in the year for goals so far, but I'll give it a shot. Here's what I'm gunning for in the short-term:
Week 85 - 2018 Dev/Coding Goals:
- Continue educating myself in the Rust programming language (I feel like I dropped the ball there last year, Rust is easy to get programmer's block because it's syntax isn't always clear what should be done with it and/or why, the references. Ugghh fml).
- Get feature parity of PYXReloaded with it's predecessor, and get most of the planned features implemented. Friends of mine really want this and like screencaps I've sent already. It's a project I've been working on with @Gianlu for the past few days.
Week 85 - 2018 General/Personal Goals:
- Get over my motivational issues.
- Get over my depression/loneliness
- Get over my social anxiety.
I'm trying to better myself, both in coding and personal life. I fucking love this community. I used to use Reddit to find posts exactly like the ones here, but this is wayyy better and has everything all in one place.
Have a prosperous 2018, guys. Remember not to look at what you want to get done in just 365 days. You need to see the big picture. -
confession: before today i had no idea what rust was. i read a wikipedia article and i'm still not sure, but i think i'm obligated to love it
https://insights.stackoverflow.com/... -
Is this codecov report correct? (Rust)
https://codecov.io/gh/orhun/...
It's too damn weird. Shows %22 but most of the lines processed. Wtf? -
Fuck this shit... how hard can it be to build a fucking Thread safe tree with links to parent??? This is madness. Deadlock hell... aaaaaaaargh
I am close to switching languages for this project3 -
Writing the general memory allocator for my hobby os. It's kludgy, but it works.
I add a single for-loop that executes well after that.
The frame allocator can't initialize.
fml -
I wonder if we will have a sprint review meeting for 2016. You know to prevent the shit storm that happened to continue ...
-
I'm probably doing something wrong because I cannot think of a good implementation (or alternative) for this pattern in Rust.
trait Terminal {
fn color_manager(&mut self) -> &mut dyn ColorManager;
}
All I want is having things in their own tidy little class with a specific job. In this case handling color conversion, having a registry for indexed colors, stuff like that...
It's composition which Rust should be good at so I assume there's a better way
How can I do something like this properly? -
Okay say I'm compiling a windows binary but I need to call a function from a linux library when running on cygwin. How would one go about doing this? Does it even make sense?
My idea is compiling a dll with one function that links against the linux lib and calls the function. Then just load the dll when needed.
Kinda new to linking stuff so any input is appreciated2