Need advice about which tool to choose?Ask the StackShare community!

OCaml

160
126
+ 1
21
Rust

3.3K
3.7K
+ 1
1.2K
Add tool

OCaml vs Rust: What are the differences?

What is OCaml? A general purpose industrial-strength programming language. It is an industrial strength programming language supporting functional, imperative and object-oriented styles. It is the technology of choice in companies where a single mistake can cost millions and speed matters, .

What is Rust? A safe, concurrent, practical language. Rust is a systems programming language that combines strong compile-time correctness guarantees with fast performance. It improves upon the ideas of other systems languages like C++ by providing guaranteed memory safety (no crashes, no data races) and complete control over the lifecycle of memory.

OCaml and Rust belong to "Languages" category of the tech stack.

Rust is an open source tool with 38.2K GitHub stars and 5.95K GitHub forks. Here's a link to Rust's open source repository on GitHub.

Dropbox, Sentry, and Postmates are some of the popular companies that use Rust, whereas OCaml is used by Hammer Lab, NG Informática, and Maersk Digital. Rust has a broader approval, being mentioned in 56 company stacks & 523 developers stacks; compared to OCaml, which is listed in 6 company stacks and 6 developer stacks.

Advice on OCaml and Rust
Needs advice
on
RustRustPythonPython
and
JavaScriptJavaScript

So, I've been working with all 3 languages JavaScript, Python and Rust, I know that all of these languages are important in their own domain but, I haven't took any of it to the point where i could say I'm a pro at any of these languages. I learned JS and Python out of my own excitement, I learned rust for some IoT based projects. just confused which one i should invest my time in first... that does have Job and freelance potential in market as well...

I am an undergraduate in computer science. (3rd Year)

See more
Replies (3)
Recommends
JavaScriptJavaScript

I would start focusing on Javascript because even working with Rust and Python, you're always going to encounter some Javascript for front-ends at least. It has: - more freelancing opportunities (starting to work short after a virus/crisis, that's gonna help) - can also do back-end if needed (I would personally avoid specializing in this since there's better languages for the back-end part) - hard to avoid. it's everywhere and not going away (well not yet)

Then, later, for back-end programming languages, Rust seems like your best bet. Its pros: - it's satisfying to work with (after the learning curve) - it's got potential to grow big in the next year (also with better paying jobs) - it's super versatile (you can do high-perf system stuff, graphics, ffi, as well as your classic api server) It comes with a few cons though: - it's harder to learn (expect to put in years) - the freelancing options are virtually non-existent (and I would expect them to stay limited, as rust is better for long-term software than prototypes)

See more
Recommends
JavaScriptJavaScript

I suggest you to go with JavaScript. From my perspective JavaScript is the language you should invest your time in. The community of javascript and lots of framework helps developer to build what they want to build in no time whether it a desktop, web, mobile based application or even you can use javascript as a backend as well. There are lot of frameworks you can start learning i suggest you to go with (react,vue) library both are easy to learn than angular which is a complete framework.

And if you want to go with python as a secondary tool then i suggest you to learn a python framework (Flask,Django).

See more
Moinul Moin
Recommends
JavaScriptJavaScript

go for javascript, brother.

See more
Decisions about OCaml and Rust
Roman Glushko
Machine Learning, Software Engineering and Life · | 3 upvotes · 168.6K views

I chose Golang as a language to write Tango because it's super easy to get started with. I also considered Rust, but learning curve of it is much higher than in Golang. I felt like I would need to spend an endless amount of time to even get the hello world app working in Rust. While easy to learn, Golang still shows good performance, multithreading out of the box and fun to implement.

I also could choose PHP and create a phar-based tool, but I was not sure that it would be a good choice as I want to scale to be able to process Gbs of access log data

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of OCaml
Pros of Rust
  • 5
    Satisfying to write
  • 4
    Pattern matching
  • 3
    Also has OOP
  • 3
    Easy syntax
  • 3
    Very practical
  • 3
    Extremely powerful type inference
  • 137
    Guaranteed memory safety
  • 125
    Fast
  • 82
    Open source
  • 75
    Minimal runtime
  • 69
    Pattern matching
  • 61
    Type inference
  • 55
    Concurrent
  • 54
    Algebraic data types
  • 45
    Efficient C bindings
  • 43
    Practical
  • 37
    Best advances in languages in 20 years
  • 29
    Safe, fast, easy + friendly community
  • 29
    Fix for C/C++
  • 23
    Stablity
  • 22
    Closures
  • 21
    Zero-cost abstractions
  • 19
    Extensive compiler checks
  • 18
    Great community
  • 15
    No NULL type
  • 14
    Async/await
  • 14
    Completely cross platform: Windows, Linux, Android
  • 13
    No Garbage Collection
  • 12
    Great documentations
  • 12
    High-performance
  • 11
    Super fast
  • 11
    High performance
  • 10
    Fearless concurrency
  • 10
    Generics
  • 10
    Safety no runtime crashes
  • 9
    Helpful compiler
  • 9
    Compiler can generate Webassembly
  • 9
    Guaranteed thread data race safety
  • 8
    Easy Deployment
  • 8
    Macros
  • 8
    Prevents data races
  • 7
    RLS provides great IDE support
  • 7
    Painless dependency management
  • 6
    Real multithreading
  • 4
    Support on Other Languages
  • 4
    Good package management

Sign up to add or upvote prosMake informed product decisions

Cons of OCaml
Cons of Rust
  • 3
    Small community
  • 1
    Royal pain in the neck to compile large programs
  • 25
    Hard to learn
  • 23
    Ownership learning curve
  • 10
    Unfriendly, verbose syntax
  • 4
    High size of builded executable
  • 4
    Variable shadowing
  • 4
    Many type operations make it difficult to follow
  • 3
    No jobs

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is OCaml?

It is an industrial strength programming language supporting functional, imperative and object-oriented styles. It is the technology of choice in companies where a single mistake can cost millions and speed matters,

What is Rust?

Rust is a systems programming language that combines strong compile-time correctness guarantees with fast performance. It improves upon the ideas of other systems languages like C++ by providing guaranteed memory safety (no crashes, no data races) and complete control over the lifecycle of memory.

Need advice about which tool to choose?Ask the StackShare community!

What companies use OCaml?
What companies use Rust?
See which teams inside your own company are using OCaml or Rust.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with OCaml?
What tools integrate with Rust?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

Nov 20 2019 at 3:38AM

OneSignal

PostgreSQLRedisRuby+8
8
4117
Jun 6 2019 at 5:11PM

AppSignal

RedisRubyKafka+9
15
1249
What are some alternatives to OCaml and Rust?
Haskell
It is a general purpose language that can be used in any domain and use case, it is ideally suited for proprietary business logic and data analysis, fast prototyping and enhancing existing software environments with correct code, performance and scalability.
ReasonML
It lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems.It is powerful, safe type inference means you rarely have to annotate types, but everything gets checked for you.
Java
Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
Erlang
Some of Erlang's uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems.
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
See all alternatives