Rust

Rust

Application and Data / Languages & Frameworks / Languages
Needs advice
on
GolangGolangKotlinKotlin
and
TypeScriptTypeScript

I want to try out backend development by making a somewhat simple finance tracker web app and intend to use PostgreSQL, but I have very little knowledge of the area and would like to know which language and accompanying framework would be best suited.

My preferences would be between Kotlin (I already know Java) and Golang or TypeScript, but other recommendations are welcome.

I also know a bit of Rust from doing Advent of Code with it, but I would instead use something easier for now.

READ MORE
6 upvotes·89.2K views
Replies (1)

Hi Flip-rossi, I think that it will depend on the size of data transfer (and user counts) between the frontend and the backend and the architecture of communication, mainly depending on how the frontend will be presented. I have my own finance project that is Typescript on the frontend, Rust on the backend, and PostgreSQL as a database. Data transfers are not so huge, so it makes no difference if you prefer Java (Kotlin) or other languages. UI is for me the most important thing. On BE, it can be a simple calculator or just a data transfer pump between DB and FE. As I said, it will definitely depend on FE functionalities and architecture. So go with your preferred technology and don't stop learning new tools.

My technology stack in this is FE: Typescript + SolidJS, BE: Rust + actix + diesel , DB: postrgreSQL, ochestrated deployment by docker compose 

READ MORE
3 upvotes·1 comment·2K views
Finacus Solutions
Finacus Solutions
·
August 1st 2024 at 1:46PM

I agree with your approach. The technology stack you mentioned seems robust and well-suited for your needs. Prioritizing the frontend for user experience and leveraging your preferred technologies will help you create a successful project. Keep exploring new tools to stay updated!

·
Reply
Needs advice
on
GolangGolangRustRust
and
TypeScriptTypeScript

Should I start with web development or DevOps?

And which of the 3 I should learn first Golang, TypeScript, or Rust? I want to land a junior-level job in 10 months.

READ MORE
3 upvotes·11.7K views
Needs advice
on
GolangGolangNode.jsNode.js
and
PythonPython

Hi Guys, If you were to learn one of these languages for backend development: Golang, Python or TypeScript/Node.js, which one would you choose? Should meet the following criteria: - Focus on web application development. - Be stable for the next 10 years. - Good for microservices (compete with Java Spring Boot). - Production ready for now and not in the future. (Like Rust) - Have good ecosystems, i.e. libraries, testing, CLI, framework and good deployment options. - Good language features. I'm not interested in ML/AI, Data Science or DevOps.

READ MORE
8 upvotes·61.5K views
Replies (3)
Web Developer at Ecombooks·

Both Python and Node.JS solves similar yet different purposes for microservices. As a concern, I choose Node.JS over anything as My services could be handled by any cloud. If you want to perform some tasks requiring more to the server, then definitely go for Python else JS is best.

READ MORE
7 upvotes·3 comments·46.9K views
JD-4
JD-4
·
October 12th 2022 at 12:23AM

Thanks Bhupendra, Can you please explain to me what you mean with "requiring more to the server"? some explicit real use cases ma be useful.

·
Reply
Bhupendra Madhu
Bhupendra Madhu
·
October 13th 2022 at 5:15AM

Converting files to JSON format or any task requiring computing power might need python as its possible to do in python and JS is just for data processing and all sort of tasks

·
Reply
Finacus Solutions
Finacus Solutions
·
December 3rd 2024 at 5:36PM

Both Python and Node.js are great choices for microservices, each serving different purposes. Node.js is ideal for handling lightweight, asynchronous tasks with fast performance, making it perfect for scalable services that interact with various cloud environments. On the other hand, Python excels in tasks that require heavy server-side processing, such as data analysis or machine learning. For general web services and real-time applications, Node.js would be the best choice.

·
Reply

I would go with Go if you need performance or solve highly concurrent tasks. If not, Node feels easier to work with and is arguably more common (also, it's JS - it's everywhere, and you can switch to FE more quickly since you want to focus on web apps). Python is cool as well, but I hate how the package management is not solved, and the pythonic coding standards are not excellent, in my opinion, of course. As for stability (in terms of their APIs), I guess Go is the safest choice (it's still v1, after all), Python is a close second, and Node changes relatively fast. It's also a question of what language(s) you already know and use.

READ MORE
3 upvotes·1 comment·45.8K views
Finacus Solutions
Finacus Solutions
·
February 11th 2025 at 11:03AM

It's better to use Go for performance and high concurrency, while Node is easier and more widely used for web apps. Python's great, but it's hard to manage packages. Python has the most stable APIs, followed by Go, while Node changes a lot. It depends on your skills and what you need.

·
Reply
View all (3)
Software Engineering ·
Needs advice
on
GolangGolangPythonPython
and
RubyRuby

Hello!

I'm a developer for over 9 years, and most of this time I've been working with C# and it is paying my bills until nowadays. But I'm seeking to learn other languages and expand the possibilities for the next years.

Now the question... I know Ruby is far from dead but is it still worth investing time in learning it? Or would be better to take Python, Golang, or even Rust? Or maybe another language.

Thanks in advance.

READ MORE
23 upvotes·319.2K views
Replies (8)
CEO at Cuemby, LLC·
Recommends
on
Golang
Python
at

Hi Caue, I don't think any language is dead in 2022, and we still see a lot of Cobol and Fortran out there, so Ruby is not going to die for sure. However, based on the market, you'll be better off learning Goland and Python. For example, for data science, machine learning, and similar areas, Python is the default language while backend API, services, and other general purpose Goland is becoming the preferred.

I hope this helps.

READ MORE
15 upvotes·121.2K views
Recommends
on
Golang
Python

I feel most productive using go. It has all the features I need and doesn't throw road blocks in your way as you learn. Rust is the most difficult to learn as borrow checking and other features can puzzle a newcomer for days. Python is a logical next step as it has a huge following, many great libraries, and one can find a gig using python in a heartbeat. Ruby isn't awful, it's just not that popular as the others.

Another reason to use python is that it is not compiled. You can muck around in the interpreter until you figure things out. OTOH, that makes it less performant. You really need to think about your use cases, your interest in lower-lever versus high-level coding, and so on.

READ MORE
10 upvotes·118.7K views
View all (8)
Needs advice
on
GolangGolangPerlPerl
and
RustRust

I intend to use a programming language which I'll use as AWS runtime and write a script that will comb through tons of files in a directory and its subdirectories and search for simple text regular expressions and process and write the matches in a file as output. I have heard that Perl is good for regex based search but I also want the performance to be good as it will have to go through tons of files for IO. In this post: https://filia-aleks.medium.com/aws-lambda-battle-2021-performance-comparison-for-all-languages-c1b441005fd1, I see that Rust works well as AWS Lambda runtime with very good performance. Which one should I choose as my AWS lambda runtime for this problem? Golang is also an option as it is fast as per the above link.

READ MORE
4 upvotes·169.7K views
Replies (1)

I used to work in a Perl shop and must admit that the language is very simple for tasks like these, but as you mentioned it's not fast at execution time. I'm now a Go programmer professionally but I taught myself the language while in college purely out of interest and eventually found my way to the job, not the other way around. I've recently been learning a little rust because of how much that language comes up in conversations around Go. I find the concept of the borrow checker nice but I have to admit I feel lost like I am in most flavors of new fancy framework js. That's not to say Rust is really anything like js, but the learning appears the same to me as someone who's convinced they could learn just about any programming language if it was necessary (over time I've seen procedural, OOP, declarative and functional stuff but never programming logic outside of the prolog code I wrote in school).

Go isn't made for your specific task at hand but it's a very easy language to pick up and it has good directory traversal standard library code and good regex (even though with time perl's has been optimized to be faster and I think it's written in C++) but more than anything Go is "cloud native" programming in that an awful lot of new microservice tech stacks are centered around it, docker and kubernetes are written in it, and there's a thriving community whose focus is generally web-first and performance-oriented. This means for your use case there might already be a large cohort of gophers that have asked the stackoverflow questions for you

I personally would push you towards the NYT Profiler for Perl before I would towards Rest, but that's because I know you wouldn't waste any time being able to get to the task at hand and then make it go faster, and I expect all but a few rustaceans would be able to do so with the same speed.

Whatever you pick I wish you the very best of luck!

READ MORE
2 upvotes·2 comments·93.7K views
Sumer Singh
Sumer Singh
·
June 15th 2022 at 4:40AM

Perl is super fast to write but only if you have lot of experience in it

Go is maintainable and faster in performance

Rust is fastest in performance

·
Reply
Jean Casteaux
Jean Casteaux
·
September 11th 2022 at 12:30PM

Go is "maintainable" up to a point, I find that error handling and interfaces typically require more dev and maintainance time than in other languages, because they are too simple.

·
Reply
Senior Software Engineer at Incube8 Pte. Ltd·
Needs advice
on
NestJSNestJS
and
Next.jsNext.js

I would choose Next.js / Nuxt.js or SvelteKit as they're implemented to support the backend that manages cookies/sessions/API/reactive components and props.

The good thing about them is that if ever your app grows with a ton of traffic, you can easily migrate your SSR app and use other programming languages such as Golang or Rust to serve the API.

NestJS is only used for the backend side, however, the backend side of this is already offered from these big 3 (Next/Nuxt/SvelteKit), as these 3 major SSR Frameworks were able to connect from RDB / MongoDB / GraphQL / 3rd Party APIs, you name it!

Regarding websocket / service-worker (PWA) / wasm, those big 3 can do it too

TL;DR: NodeJS is so big, don't complicate your life, make a single route to handle the frontend and backend, migrating to performant environment such as Go/Rust can be done over an api call inside those big 3 Next/Nuxt/SvelteKit.

READ MORE
4 upvotes·336.8K views
Needs advice
on
AngularJSAngularJSC++C++
and
JavaJava

I will use Elixir for personal projects. It's productive, reliable, secure, simple, etc. But when performance is critical, I need job opportunities, when I work with mutability, which do I pick? I need advice on which "bureaucratic, mainstream" programming language to pick when wanting performance and jobs. Elixir is often "slow", and it hasn't boomed yet the way Golang and Rust have, so which?

READ MORE
4 upvotes·154.3K views
Replies (1)
Lead Software Developer at Blaqueyard·

Well for those performant tasks maybe you can use Rust nifs for elixir. Elixir enables to write fault-tolerant, scalable code for concurrent systems, and as such, it is perfect for messaging systems and web applications that might need to handle a lot of users efficiently. But if you need speed you can plug in Rust or write a microservice using Goland/Rust.

READ MORE
Writing Rust NIFs for Elixir With Rustler | Blog | simplabs (simplabs.com)
4 upvotes·72K views
Needs advice
on
ElixirElixir
and
RustRust

I've been working with Js/Ts as a backend developer and I would like to get some suggestions about what new language to learn right now. I've been thinking about Elixir or Rust, focusing on creating WebApis and Blockchain technology. I am passionate about the funcional way but I'm now confident about Elixir in Blockchain. Rust seems like have more jobs about it than Elixir in a little research. Someone could give me some advice? Thank you.

READ MORE
5 upvotes·147.7K views
Replies (2)
Lead Backend Software Engineer at Suda Outdoors·
Recommends
on
Elixir
Golang

For web development I would suggest to take a look into Elixir. Elixir is extemely good for real time apps through websockets, apps with a need of high concurrency and / or apps where you need to process hundreds of thousands of states of differents users in parallel thanks to the actor model that comes with Erlang virtual machine. To solve these kind of problems in another stack could be really hard and painful (including your current stack).

It's true that Elixir is a niche stack ( It deserves way more popularity in my opinion), so, if your concern is to learn something that would keep you inside the trend and market, instead of Rust or Elixir I would suggest Go. Go it's another outstanding language, will a lot of virtues, small and easy to learn, with it for example, you could compile the same application to different operating systems just with a special compiler command (And the compiler is blazing fast). You can also start with a lot of good libraries that helps you to keep your code clean and under control and of course, it's performance is very good too.

Hope my suggestions could be helpful.

Best regards, and happy coding!

READ MORE
8 upvotes·1 comment·62.6K views
Jean Casteaux
Jean Casteaux
·
September 11th 2022 at 12:36PM

Elixir is very interesting and have great parallel and safety features. Go is too simple in my opinion. Sure, it's easy to learn, but when you implement an application it doesn't feel as productive as higher-level languages. Sure, it's a bit better than C but we have plenty of other choices!

* String interpolation? None, use the error-prone sprintf.

* Error handling? Go only provides multiple return values, and you'll make one of these values an error. Be prepared to write `if err != nil { return nil, err }` millions of time.

* Generics? They have finally arrived but in a simplified way, which doesn't allow to remove all duplicated and boilerplate code. No functional programming for you!

* Default arguments? Not with Go. Well, that's a pity.

* Dynamic libraries for plugins? Somewhat supported but that's going to be removed (see discussions on golang's github repo)

IMO the only benefit of the Go language is its lightweight and easy-to-use concurrency runtime.

·
Reply
Lead Developer at Black Swan Data·
Recommends
on
Golang

Golang is to my mind by far the greatest bang for your buck in terms of investing your time it has a low barrier to entry. Elixir is fun and all, but it is VERY VERY niche. You are very unlikely to find a job directly requiring Elixir. Rust is a good option depending on what you want to achieve but golang is a great general-purpose language that has a very approachable learning curve, great documentation and a lot of jobs available. There are some very high profile projects written in golang. Docker, Kubernetes, InfluxDB and Grafana just to name a few. I was at this same junction at the end of 2018 having spent a lot of time in JS/TS & Ruby. I had already learned Elixir and done a couple of projects in it and I switched to Golang as I didn't want to learn niche languages. I have never regretted my choice. Obviously, every tool has its place but golang is a winner if you want to learn something new :)

READ MORE
7 upvotes·61.8K views
Full stack developer at Nugenesis·
Needs advice
on
GolangGolangPythonPython
and
RustRust

I'm a Python developer and it seems like there is no future of python. Should I start learning Go or Rust?

READ MORE
3 upvotes·185 views
Replies (3)
Backend Engineer ·
Recommends
on
Golang
Rust

Saying Python doesn't have a future is a very bold statement, and I don't think it's true. Just check the latest Stack Overflow Developer Survey. Especially in the data processing world of programming I see a lot of tracktion about Python. As someone who is currently learning both Go and Rust I think both of them would be a good choice. Which one you should pick? It depends of your interest and the things you want to build.

Are you searching for a memory safe, non GC language with a lot of functional programming feature? Then Rust is your choice. Are you searching for a language which has a relatively small learning curve or are you interested in the Cloud Native world? You are a programmer who doesn't want to think a lot about memory management? Then Go is your choice.

READ MORE
5 upvotes·144 views
Recommends
on
Golang

Python definitely has a future, and I think that future is in scripting. Data science workflows for example need to iterate often and Python is perfect for that.

I would choose Golang. We're using it at Multy and very happy with it. It feels like a more safe Python! When comparing it to Rust, Go is more easy to learn and faster to develop in my opinion, although Rust has some really nice advantages performance-wise.

READ MORE
3 upvotes·115 views
View all (3)
Founder at Stardust·
Needs advice
on
RustRust
and
SwiftSwift

Hey there, we are looking to develop our own layer 1 blockchain. We're splitting the responsibilities for origination, clearing, and settlement across three independent but cooperating node networks. We've gotten our Proof of Concept up using Ruby on Rails for the nodes, you can see it as the attached link. So far, so good. Now we are looking to convert it into a distributable and are trying to figure out which language is the best for this.

Essentially our needs from the language are: solid networking tools and speed, very fast execution of basic actions, some parallel execution, and able to compile the end product into an easy to distribute and use package for end users.

I was learning Rust, but I have a healthy amount of experience with Swift and right now, it's only me coding. I've only done iOS coding, but have built a fintech app from scratch that's now in the app store so I'm pretty familiar with the language and its benefits. Haven't experimented with Vapor or any of the application development tools, and I wanted to know if it is a crazy idea to develop a blockchain node in Swift instead.

READ MORE
Stardust Block Chain Explorer (explorer.stardust.finance)
8 upvotes·131.5K views
Replies (2)
Recommends
on
Rust

Pick Rust. Rust can provide all what you need and has been a major language in blockchain/cryptocurrency industry. Swift is slower than Rust and does not have such support in the networking and domain field. Swift tooling is great only on macOS, therefore you are likely to have troubles on other platforms.

READ MORE
8 upvotes·1 comment·127K views
Cassius Zulu
Cassius Zulu
·
March 15th 2022 at 8:56AM

Cool

·
Reply
Director at Realityworks·
Recommends
on
C++
Golang
Swift

You can use swift of course. It’s more of a question of being performant.

You really want to try some basic operations and find what’s most performant for you.

Rust is wonderful for cloud applications requiring heavy concurrency, it has compile time checking for such things.

Go and C++ could be more performant in your case. Swift is really quite an obtuse language, with a lot of features, some which may complicate your implementation.

Also, you want to consider the market of developers who could help build it. If you use Go or C++ there is a larger collection of people who know the languages than there is with swift.

READ MORE
6 upvotes·1 comment·128.6K views
Jean Casteaux
Jean Casteaux
·
September 11th 2022 at 12:39PM

How is Go more performant than Swift? Features are to be used wisely, like any engineer can do. Go actually lacks useful features, you'll find the language very "poor" compared to Swift. The latter is a joy to use, not Go.

·
Reply