[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

what does /g/ think of rust?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 169
Thread images: 10

File: Rust.sh-600x600.png (101KB, 600x600px) Image search: [Google]
Rust.sh-600x600.png
101KB, 600x600px
what does /g/ think of rust?
>>
Good
>>
>>57889595
More like Bust amirite
>>
>>57889595
SJW shit, and not as good as D - the language so manly that it even sounds phallic.
>>
>>57889595
It's shaping up well.
>>
>>57889595
Ada and D are undeniably better, tbqh.
>>
Only four languages are acceptable:
>Lisp for interpreted scripts
>C++ for standalone programs that can *actually* benefit from OOP
>C for portable standalone programs that don't need OOP (i.e. most of them)
>Assembly for the rest
Anything else is a piece of shit forced meme shilled for by dumb SJWs and makiposter weebs.
>>
>>57889595
it's essentially Anal C++, only capable of being understood by C++ devs, nearly none of whom want to switch to a SJW-infested ecosystem with not enough library support or enough compiler performance.
>>
>>57890006
>>57890103
> D
go home, walter. nobody wants your awful GC-filled "systems" programming language
>>
>>57890103
Ada doesn't have anything approaching the level of Rust's borrow checker and the syntax and semantics of the language were basically designed to be as bureaucratic and uncomfortable to use as possible.
>>
>>57890219
Plenty of people do, it's a very nice language with very competent people behind it (though I agree the whole GC on by default thing was a mistake, but hey, they're working on it)
>>
>>57890156
I'm retarded, what's OOP?
>>
>>57890341
https://en.wikipedia.org/wiki/Object-oriented_programming

Notwithstanding the consensus among retards, it's by far the least important feature of C++ versus C.
>>
>>57890341
Obsolete Operative Protocoll
>>
>>57890295
What does the 'borrow checker' give me that Ada can't?
>>
>>57890366
even though RIAA isn't perfect, it's the only sane way to build certain types of sufficiently complex systems, and there's no way to get comparable compile-time checking of cleanup in C/without OOP style scoped calling of encapsulated destructors.
>>
>>57890400
Compile-time checks for use-after-free errors and data races.
>>
>>57890441
Unless you're using a really over-broad definition of OOP as anything supporting methods on objects, RAII / destructors don't inherently have much to do with it.

Also they don't even actually have to encapsulated in the object itself, as is the case with gcc's cleanup attribute.
>>
>>57890451
Freeing variables instead of letting them go out of scope with their memory pool is indicative of poor design
>>
>>57890560
Memory pools are variables themselves and get freed eventually. Putting something in a memory pool doesn't stop you from taking and passing around eventually invalid references to it (unless you're using Rust).

Also, dynamic allocation and freeing of memory is built into Ada's specification. It's not bad design; unless you're writing embedded software in many situations programs will need to recover some of the memory they're using without trashing most of the existing state of the program.
>>
>>57890749
The only way you can pass around freed variables if you follow the access hierarchy and memory pool model is if you use unchecked_access, which is not bad design, it's terrible design. Most of the time, unchecked_deallocation should only be used on memory pools, when they go out of scope, since all pointers that resides in it will be gone as well.

Dynamic memory, by its nature, is unsafe, which is why high integrity systems don't use it.
>>
>>57889595
Already obsolete by the time it finally hit 1.0. We have Go for writing servers, C++ and D for going fast, Ada for embedded things that need to adhere to safety standards, and C for when you just have to talk to the hardware. Rust is pointless.
>>
>>57891069

Exactly.
>>
>>57891069
Now picture if you didn't need to sacrifice one advantage for another or alternate between four different languages in various stages of obsolescence or feature creep whenever you wanted to switch between doing any of those things.
>>
>>57889595
It's alright. Worried it'll never get out of early access, but it has great PvP.
>>
>>57891069
I'm not a developer, but people usually praise Rust for its low-level approach and its security, which would (according to them) make it ideal for kernel development (and basically anything related to hardware).
>>
>>57891486
No matter what they praise it for, you still need C to talk to the hardware. That will never change.
>>
>>57891906
As I said I'm not a developer, but could you please quickly explain why? That sounds interesting.
>>
>>57891966
C is based on how the computer actually works. The memory space is just one big array of numbers, which you can read and write using pointer manipulation. If that's not powerful enough, you can drop down to inline assembly to touch registers and CPU flags. Rust doesn't have any of that, so you can't write functions like setjmp/longjmp (the basis of exception systems) or alloca (which manipulates the stack). Computers need C.
>>
>>57892096
Thank you.
>>
>>57891486

> Security meme

It's just a built-in code analyzer.

If you cant use the existing VAST C/C++ tooling to assert the code "quality" and follow some project guidelines then you shouldn't even in programming.
>>
>>57892170
I don't program and I don't give a shit of your assessments on my ability to program, but I've heard a guy who worked at Minatech (a French research laboratory) on a FOSS chromatographic analyzer (according to him, for a 2-years wage bound to 6 months of work) who said that "Rust at least solves some (trivial) problems".
>>
>>57892285
Rust doesn't solve any problems that weren't already solved.
>>
>>57892163
Just FYI the other poster is talking bullshit, you don't need C to talk to the hardware. There are operating systems which boot from assembly straight into Rust
>>
>>57892342
These problems were solved, but not by C/C++.

According to him, the Rust language is still more secure than Go or other languages.
>>
>>57892364
How much does your "friend" get paid by Mozilla to trick you into shilling on Taiwanese street performer message boards?
>>
>>57892382
Am I supposed to reply to that?
>>
>>57889595
>>>/v/
>>
>>57892444
You're supposed to run back to your safe space with your tail between your legs.
>>
>>57893583
How the fuck is it related to a safe space? I'm asking questions and contributing about what a guy who has both a master in development and applied mathematics and a master in physics told me, are you fucking stupid?
>>
>muh guaranteed memory safety
>>
File: woody_harrelson_68169.jpg (115KB, 600x300px) Image search: [Google]
woody_harrelson_68169.jpg
115KB, 600x300px
He needs to shut the fuck up
>>
>>57890451
> Rust is a glorified linter
Wow lad, slow down. Don't change the world too fast, now.
>>
It's a good language for applications that need to perform. Rust feels like C++ mixed together with Haskell. You get the speed of C++ and the functional features of Haskell. Libraries are still in their 0.9 phase, but are perfectly usable.
Yeah, it's a Mozilla funded project and it has some degree of SJW, but who cares? You won't notice it.
>>
>>57890156
Why lisp? How does it compare to Lua or Python
>>
>>57890156

>Ruby for interpreted scripts
>Go / Node for smaller web stuff
>C# / Java for standalone programs
>C only if you really really REALLY need the performance
>Elixir if you need concurrency, high reliability or a functional language


Everything that is not included here is either a meme or not worth it.
>>
>>57890338
>but hey, they're working on it)
>>
>>57889595
It has potential, but as long as there isn't another compiler I won't touch it for serious stuff.

As many flaws Ds model of development has that makes D unusable, more than one compiler is a thing they did right.
>>
>>57896481
>>C# / Java for standalone programs
you have really no fucking clue what youre talking about kek
enjoy your hundreds of megabyte Mono and JVM bloatware
>>
>>57896599

That's why I wrote "C# / Java", dummy.

C# = Everything M$ related
Java = Crossplattform


Enjoy your 10% perfromance gain with your C++::Cluster::Fuck<of_a_language>..
>>
>>57896536
Rust uses LLVM, so in theory you can swap clang for gcc. But you're right, having your programming language depending on LLVM is really dangerous.
>>
File: 1473785758264.gif (499KB, 835x805px) Image search: [Google]
1473785758264.gif
499KB, 835x805px
>>57896672
>>10%
>when in reality it's 2 - 3x the speedup [1]
>mfw geogebra takes 15s to start
>mfw chromium starts instantly
>mfw my statically linked, standalone c++ binary is a 1mb file
>mfw openJDK is hundreds of MB
>mfw the official java runtime on windows is unironic malware

kill yourself, pajeet
your not going to convince anybody with your bloated malware

[1] https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=gpp&lang2=java
>>
File: 1476309954105.png (444KB, 600x894px) Image search: [Google]
1476309954105.png
444KB, 600x894px
>>57896723
kek, pajeet BTFO
>>
>>57889595
golang > rust
>>
>>57896536

plenty of shit compilers < one really good compiler, though..
>>
File: cpp_vs_java_diagram.png (21KB, 800x600px) Image search: [Google]
cpp_vs_java_diagram.png
21KB, 800x600px
>>57896723

>when in reality it's 2 - 3x the speedup [1]

"Cherry picking, the post"..

From your benchmark:
k-nucleotide: 7.15 vs 8.10 seconds (11.7 %)
regex-dna: 3.89 vs 4.56 seconds (14.7 %)
mandelbrot: 5.82 vs 7.14 seconds (18.5 %)
...

Also:
"Objectively comparing the performance of a Java program and an equivalent one written in another language such as C++ needs a carefully and thoughtfully constructed benchmark which compares programs completing identical tasks. The target platform of Java's bytecode compiler is the Java platform, and the bytecode is either interpreted or compiled into machine code by the JVM. Other compilers almost always target a specific hardware and software platform, producing machine code that will stay virtually unchanged during execution[citation needed]. Very different and hard-to-compare scenarios arise from these two different approaches: static vs. dynamic compilations and recompilations, the availability of precise information about the runtime environment and others."
>https://en.wikipedia.org/wiki/Java_performance#Comparison_to_other_languages

Long story short, I can show you this benchmark, you can show me that benchmark.

But fact of the matter Java got continously faster over the last two decades and no end in sigth. C++ just got a little less retarded syntax.

Look, this was 6 years ago and Java got considerably faster since then:
>http://blog.cfelde.com/2010/06/c-vs-java-performance/


>>57896743

Trololol, I just call him a pajeet and ignore the industry..

Java is everywhere, while C++ is.. what? Operating system, graphical libraries and maybe robotics?

LMAO, get a Job..
>>
>>57897060
BTFO
>>
>>57897060
since you've asked where C++ is being used:
- operating systems, daemons, DEs, WMs (though C is still the winner here)
- image editing (photoshop, inkscape)
- video editing (aftereffects (all adobe programs btw), maya)
- CAD (autodesk)
- web browsers (all of them: firefox, chromium, IE, edge)
- data analysis (ROOT)
- compilers (GCC, LLVM, JVM)
- machine learning (caffe, tensorflow, openNN)
- game engines and games
- mathematics (matlab, GNU octave, (mathematica))
basically, C++ is everywhere

meanwhile, where's java?
- enterprise applications where server cost is lower than the development cost
- some seldom breakthrough (geogebra, minecraft) which always comes with terrible performance
>>
>>57897232
AND THE MAN COMES BACK!
>>
>>57896599
>you can't AOT compile CIL to a stand alone binary
>>
>>57896686
It's not so much for having another backend, but another frontend by other people with another background. To have max redundancy if one team goes full retard.

>>57896794
Nah, it's both equally shit.
a) can be ruined by having a cancerous reference implementation, e.g. Python, D
b) can be ruined by having the only implementation in the hands of restrictors, e.g. Ada
>>
File: based_linus.png (39KB, 625x675px) Image search: [Google]
based_linus.png
39KB, 625x675px
>>57897232

It's funny how many words you make for the same things I already listed:

Deamons belongs to the OS category, CAD, video editing and games belongs to the audio/graphical category..

Also for TensorFlow it's enough to know Python, as long as there are low-level code monkey like you..


As for Java, it's still the most widespread language for companies, will you argue about that one?

Most of the internet is run by Apache (written in C, not ugly C++) and NginX. Most big companies use Java for the Web, just check how the numbers for i.e. the Spring framework. Not counting the vast amount of Java Application servers that run in intranets somewhere in companies..

Face it:
Unless you do some autistic nerdom programming ("hurr, how do I optimize my rendering") nobody cares about that abomination that is called C++. It's a dying art, soon to be replaced by the Rust SJWs.
>>
My current favorite language even though I still have more to learn
>>
>>57890006
>>57890103
>D
The irony of D is that it wants to be a better C++ but makes the same mistakes. The language is complex as fuck, it tries to be everything.
It's like going to an ice cream shop and being asked "what flavor do you want" well actually I want all of them.

You might think this is good but it's not. It only adds to the complexity and It's a distraction. I've seen a lot of C++ programmers invent problems just so that they could use feature X.

D should have been C# without gc and the massive runtime

That way it would've easily found a spot in desktop application and gaming land.
>>
>>57890441
You could easily have something like scoped pointers.
>>
>>57892096
Rust has raw pointers, inline Assembly and intrinsics.
>>
>>57892096
>C is based on how the computer actually works. The memory space is just one big array of numbers, which you can read and write using pointer manipulation.

That's "Folk C", the good old language of 20 years ago, when men were men and nobody cared about undefined behavior, and compilers weren't smartasses about it.

Now they are, and it's impossible for a human to write correct, complicated, strictly conformant C code anymore. Regarding your comment, you can only point inside an array or one position beyond. Otherwise even if you don't dereference the pointer it's still undefined.

Then C++ adds all its horrors and utter complexity. I'm surprised things don't explode more often.
>>
>>57897907

kek'd
>>
>>57897907

And I forgot to even mention weak memory models. Oh boy.
>>
>>57897583
The person you're replying to is right, but I agree that optimization isn't a priority when considering that devices capacity doubles every two years and that development of million-code lines frameworks and software is pretty expensive.

It seems these questions can be solved by Go, and I suppose it will become the next industry standard. About Rust, your question is, for developing desktop-side backends (kernels, compilers, etc.), a problem it aims to solve, isn't it?
>>
>>57898182
Wait what you think go will replace Java. Why?
>>
>>57898237
I think it will replace Java for embedded server development because it's modern, easy to use (which would reduce development costs), decently fast, and it doesn't fuck up with your computer, with server features (that I don't understand).
>>
Will C++17 save it from extinction?
>>
>>57890156
>JavaScript for web
>Python for scripting
>C for system and embedded device
>C++ for everything else
>>
>>57898344
I know the basics of Java and a decent amount of Python. Looking for a decent Swiss army knife language to learn on my own for fun projects. Any suggestions? I was looking through a Haskell book last night that looked really interesting but you guys even shit on that regularly.
>>
>>57889595
Meme
>>
>>57898611
I'm not a developer, sorry. (Hence, I don't know if your post isn't passive-offensive, but I'll try to answer anyway.)

According to >>57895383,
>Rust feels like C++ mixed together with Haskell. You get the speed of C++ and the functional features of Haskell. Libraries are still in their 0.9 phase, but are perfectly usable.

If you have a JAVA background, you may also be interested in Clojure, a Lisp dialect for .NET framework and JVM.
>>
>>57898649
I'm not either, but programming and the different languages fascinate me. I'm hoping eventually I can make something cool but I don't have time to really focus on more than 1, so I'm looking for something I can learn in my own and a good book to go with it.
>>
>>57890156
actually we need only 2 languages:
javascript for everything because it's the future
rust if you need direct hardware access

actual C is fucking retarded 60s bullshit and not even cpu makers actually make assembly stuff anymore
>>
>>57898493
>Still uses header files
>Still a pain to share or use other people's code
>Still a pain to compile on different platforms
>Still no standard ABI

The biggest problems with C++ isn't the language itself but the environment.
It's an asocial language. It's the reason c++ programmers reinvent the wheel all the time. It's the reason why nobody updates its dependencies and vulnerabilities persist.

Slapping on more features on it isn't gonna save the language. C++ problems are far deeper than its feature set.

But now it's to late. Nobody is gonna change their build tools to be compatible with someone else's.

Just start from scratch instead of trying to decorate a turd.
>>
>>57889595
Best language ever made so far. Not perfect (especially with regard to verbosity, and it has tco but not automatic tail call reductions, and no full inference yet). If it manages to get full inference, then rusti can move forward and rust can become a perfect option for both scripting and programming instead of just programming. If it fixes some of the verbosity (Rc::new(Box::new(Refcell::new(MutexLock::new(3)))) and the like in particular), and if it keeps otherwise improving the way it has (becoming faster and leaner), it will be the language to use for the next 50 years.
>>
>>57898781
C has no standard ABI either, by the way.
>>
>>57898689
I suggest you Rust, especially if you mean to be close to the hardware, but that's based on my personal tastes. You may try Go for embedded servers too.

I'm leaving, have a nice day!
>>
>>57898891
Yes but C is the lingua franca because of how simple C is. If your language doesn't have a C ffi it's pretty much a non-language.

C++ is far from simple. virtual functions, parameter overloading, "this" pointer, exceptions, ect...

I know there are some impossibilities defining a complete abi for a systems programming language.

But I'm not talking about a full abi spec, but at least have some conventions for a decent ffi.

I also remember trying to turn methods pointers into proper delegates with some hacks, but it it turned out impossible because of different implementations.
>>
>>57897750

>Rust
The irony of Rust is that it wants to be a better C++ but makes the same mistakes. The language is complex as fuck, it tries to be everything.
It's like going to an ice cream shop and being asked "what flavor do you want" well actually I want all of them.

You might think this is good but it's not. It only adds to the complexity and It's a distraction. I've seen a lot of C++ programmers invent problems just so that they could use feature X.

Rust should have been C# without gc and the massive runtime

That way it would've easily found a spot in desktop application and gaming land.
>>
>>57898611
>a decent Swiss army knife language to learn on my own for fun projects
You already know python, right? That's basically exactly what python's for: hacking together mid-to-low quality quick projects. It's got tons of library support for basically everything.

Otherwise, your choice really depends on what projects you want to work on. Go's good if you care about servers. C is probably the most "general" language--basically every programming language in existence can interface with C, so it's almost necessary to know regardless of whether you intend to use it. Ruby is good if you want a python-like scripting language with fewer good libraries but more elegant syntax.
>>
Seems pretty good.

A modern, comfy language that makes zero cost abstractions and compile time checks a huge part of its design philosophy?
Of course I love that.
>>
>>57898182
>these questions can be solved by Go
>I suppose it will become the next industry standard
I understand that Go is becoming popular because it's so simplistic that even retards can use it but that's not the world I want to live in.
>>
Rust is a language in search for a problem, which is why I don't think it will be used much in the private sector.

Is it for safety? Ada already is there and has an ISO standard. But what about the borrow checker? The rust developers could have made a port of Ada to llvm and added the checker in the compiler, that's not against the standard. Also as another person noted, storage pools are the safer way to deal with memory, not compiler checks for the most basic of things.

A 'better' c++? Syntax wise, speed wise? As far as syntax is concerned, rust is showing exactly what a poorly conceived language can look like. And it's only 2 years old. Speed wise is extremely unrealistic.
>>
>>57898978
It's already been explained upthread that Rust is no good if you need control of the hardware.
>>
>>57889980
KEK
>>
>>57892096
>>57899011
Every language in the C family, including C itself, is just a way of standardizing idiom boilerplate patterns of lower level systems.

At its inception, systems programmers thought C was horrible since it allowed mediocre individuals to write bloated nests of function call trees rather than do things the good old way of whole-system design with manually crafted state machines.

C clearly adds less over raw assembler/machine code than C++ or D/Rust/whatever, but it's modern romanticism to claim that its model is some sort of perfect Platonic ideal abstraction to what a Harvard/von Neumann machine "really" is.
>>
>>57901337
What the hell are you even trying to say?
>>
>>57889595
I would really love rust if () and ; are optional.
>>
>>57901461
C circlejerk is carried out by pretentious children with no sense of actual computing history.
>>
>>57901520
What do you mean?
>>
>>57902015
ruby/elixir spoiled me. I always forget to type `()` and `;`
>>
File: 1472759212492.gif (19KB, 480x240px) Image search: [Google]
1472759212492.gif
19KB, 480x240px
Why are you wasting time and energy talking about Rust instead of Myrddin or Zig?
>>
>>57896743

wheres the difference between java and c# ?
>>
File: rust4.jpg (81KB, 620x321px) Image search: [Google]
rust4.jpg
81KB, 620x321px
>>57889595
I think it's a pretty cool game, still a lot of bugs though.
>>
>>57898714
Go fuck yourself retard with a thousand cocks.
Oh wait, you'll never know in what order they're coming, but you know it'll be slow, cause JS is asynchronous and single threaded at the same trime, so thy cannot prepare your anus enough cause JS debuggers don't do shit.
>>
>>57902371
>Ruby
>spoiled.

I guess people can be spoiled by shit.

>>57902708
Syntactically or Functionally? They're close syntacticaly with C# having a lot of things java does not. C# is great until you realize it's run by Microsoft and .NET is a rabbithole of shit controlled by the one company that is, by some miraculous feat, worse than Oracle.

C#'s runtime is completely different, they're different at the bytecode level, etc.
>>
>>57900709
It has also been said that it's bullshit. Trust whoever you want and don't bother me with that.
>>
>>57900029
You're basically blending a programming language with the concept of being popular among "normies", are you stupid?
>>
>>57903064
all node js programs are multi threaded
>>
>>57903246
*single threaded
>>
>>57889595
Not really a language for the sort of stuff that I want to do, so I've skipped it.

Would rather mess around in Guile to be honest. That language is Scheme: Useful Edition.
>>
>>57900697
Mozilla always said Rust was here to serve their own interests first (partly in developing an Internet browser), though people could use it if they wished to. You may consider it as an Ada/C++ fork if you wish to, but you would finally at best paraphrase what Mozilla said.
>>
>>57898611
Check out Guile if you're on a GNU system.
It's breddy gud.

>>57896743
But wouldn't Poo.Init() be the C# syntax?
Java's styleguides would demand Poo.init().

>>57897907
You forgot to add
> how computers really work
> So long as they're PDP-11s.
Because it triggers C fanboys. C oldhats tend to chuckle.
>>
>>57902708
Java is pretty comfy, but its reputation is tarnished by two types of people:
> The poor bastards who have to write Java 6.0 for Android phones.
6.0 is not a very comfortable language to write in.
> The poor bastards that have to work with Pajeet's Codebase.
Pajeet doesn't seem to write much C# yet.

Modern Java is pretty comfy. It's not perfect mind you, but it's pretty decent. Just make fucking sure you use Project Lombok to generate the boilerplate and a modern build tool (that is, ant + ivy, gradle, or maven), and you're in for a comfy ride.

And yes, I'm assuming you're using an IDE.
>>
>>57903295
no, multi. node has some shit in the background
>>
>>57903414
>implying indian cube farm dwellers follow java style guidelines
>>
>>57897060
GC is literally for retards to write code with no idea of who owns the data and lends itself to shitty code structure.

Adding a vm on top of the shitty language makes for garbage software. Case in point, everything android and every desktop java application ever. Cherry-picked benchmark where the GC has been optimized for a specific usecase are useless.

Show me ONE example of a highly performant java application. There are thousands of examples for C++.
>>
>>57903244
Go is a language that allows retard beginners to contribute. It was specifically made for that purpose.
That's the reason there are absolutely no advanced abstractions in the language.

If you don't believe me read the bulletpoints under 6.
https://talks.golang.org/2012/splash.article
>>
>>57903732
At least they're upfront about it.
Don't fool yourself, literally every language with GC built-in is designed for retards.
>>
>>57903789
Usually languages have a GC because the assumption is that you're using it for a task where the benefits of manual memory management are worth less than the time you spend on manual memory management.
>>
>>57903832
Bullshit, "manual" memory management is fucking nothing in C++ if you use RAII.
Besides, if you don't have the discipline to do this memory management, you probably can't manage file handles or mutexes properly either.
>>
>>57903832
>use C++
>use RAII, allocate in constructor, free in destructor
>memory is freed when object goes out of scope
>??????????
>>
>>57903978
Doing things at the end of a scope is literally a godsend and the best C++ feature.
>>
>>57903929
>>57903978
It still requires you to think about it to some degree.
Also RAII hardly steps into the territory where manual memory management actually gives you an edge.
If you're working with lots of objects and you actually care about performance you'll definitely want to be very careful how and where they are allocated. RAII has nothing to do with this.
>>
>>57903588
I wouldn't know. I've never worked with Indians.
I've never even used a product that has Indian Support Teams either.

My life is preciously pajeetless. (Next Fedora codename?)
>>
>>57892096
Memory is not a big ass ararry, that is an abstraction provided by the OS as virtual memory
>>
>>57904036
fuck you dude go write some javascript lmao
>>
>>57904036
Sure, but >>57903832 was talking about cases where you don't care about memory management and RAII is very comfortable in this case.
In cases where you care, GC is a non-starter.
>>
>>57897750
>It only adds to the complexity and It's a distraction. I've seen a lot of C++ programmers invent problems just so that they could use feature X.
I don't see how that's D's problem. Don't need it, don't use it.
>>
>>57904158
You realize that a lot of programming is reading/understanding/maintaining other people's code, right?
>>
>>57904103
It gets more complex than that. Not everything is on the stack.
You'll end up having to use smart pointers and shit if you want GC-level comfyness.
>>
>>57904175
what the fuck is even complicated about C++ besides templates? everything else is in every other language
>>
>>57904175
So? Learn something new, it's good for you
>>
>>57904196
>>57904095
>>57903978
You need to calm down m8.
>>
>>57904179
why can't everything be on the stack?
>>
>>57904232
fuck you dude go write some fizzbuzz lmao
>>
>>57904242
pls respond i'm retarded. I don't see why you can't have everything on the stack. Is it a memory limitation?
>>
>>57904179
>Not everything is on the stack.
What do you mean? The data of a std::vector is on the heap but the management is done on the stack. Why couldn't you represent everything on the stack?

When it gets more complex, you're way past the "don't care about memory" point and you should start caring the relationship between your data structures.

This is the one godlike thing about rust is that it takes RAII-management style to the next level.
>>
Rust looks like an ugly child of c++ and javascript
>>
>>57904301
You can always expect that you can free a resource in the same function that you initialized it in.
Your memory structure might be complex yet you still don't care about performance.

You can't claim that there is absolutely no room for a GC language.
>>
>>57904377
can't always expect*
>>
>>57889595
Great
>>
>>57897819
>intrinsics

Why does everything in Rust sound so gay?
>>
>>57904406
Because you're a pleb
>>
>>57904175

> t. "I need simple semantics because i am dumb"
>>
>>57904787
I'm actually arguing in favour of C++ in this thread, my point here is that the rebuttal of "just don't use it" to bloated languages is weak.
>>
>>57903064

For someone who has to deal with Javscript in settopboxes, I had to chuckle hard. It's so true and people try to force this language in places where it does not belong.

>>57898841

This post is underrated. I would add that Rust's multithreading choices makes sure the safety is there as well, as opposite to C where pthread came later as a library.
>>
File: wew.png (199KB, 676x363px) Image search: [Google]
wew.png
199KB, 676x363px
Its shit.
>>
>>57905202
Go away pissphone.
>>
>>57896481
> /g/
>> Hurr durr C is love, C is life
Guess what? Time to fucking grow up
>>
>>57899034
Wat
>>
>>57900709
Nope, Rust has the same if not even better and safer hardware access
>>
>>57895456
Lisp faggots generally point out the fact that Lisp has a superior macro system to literally every other language in existence.

What it gives you is the ability to "shape" a lisp into a language that looks almost like a DSL for the project you were doing.
>>
File: 1473904892658.jpg (362KB, 1106x1012px) Image search: [Google]
1473904892658.jpg
362KB, 1106x1012px
>>57905633
>Lispers literally have to write another language to use their broken language
>>
>>57904045
finally someone who actually took a systems architecture course.
>>
>>57905675
not at all. its just an option for when they want to do so. macros are meta-linguistic abstraction they nest syntax behind user defined syntax.
>>
>>57905589
There's nothing "safe" about hardware access. If Rust has that, it's no safer than C.
>>
>>57905675
Arguably, everyone has to. The infrastructure of any program is a language you use to write the business logic.

Some languages offer more flexibility in designing that language than others.
>>
>>57906875
It's safer because you won't accidentally talk to a memory mapped device when you're trying to append to a string and miss the boundary
>>
>>57906966
Using Rust is supposed to solve that? I have a better idea: Don't write shitty code.
>>
>>57903298
Guile is a good scheme implementation in theory, but in practice it's dogshit. Consider the fact that if you use literals (such as '() and the like), the compiler optimize them to all be the same objects, even if you modify it through a name anywhere in the program (so your '() might actually be '(1 2 3) because a completely different and unrelated part of the program was called with the '() default arg, added 1 2 3 to it, and returned that result).
>>
>>57903978
That's very often not enough, especially when object may be claimed by multiple conceptual parents, for example.
>>
>>57890924
How do things get around not using dynamic memory?
>>
>>57907518
You compute an upper bound for your required amount of memory and request an allocation for that amount when the program starts. The memory will only ever be freed at the end of the program.
>>
>>57905679
Could you point to any accessible learning/entry level resources? I want to know more, but fuck going back to full-time study
>>
>>57905633
Rust has that too. They lifted their macros straight from opendylan, which adapted scheme macros (the only good kind) for infix-syntax languages.
>>
>>57909245
I would suggest MIPS32™ Architecture For Programmers.
>>
>>57890366
>Notwithstanding the consensus among retards, it's by far the least important feature of C++ versus C.
Absolutely fucking nailed it.
>>
>>57903674
>Show me ONE example of a highly performant java application. There are thousands of examples for C++.
Java-poos btfo.
>>
>>57903674
>Show me ONE example of a highly performant java application. There are thousands of examples for C++.
>>57911848
>Java-poos btfo.
Elasticsearch/Lucene

I hate Java with passion but saying that it can't have good performance is just stupid.
>>
Cargo is the biggest selling point of Rust.
>>
gay
>>
>>57904406

>Why does everything in Rust sound so gay?

Well, the Rust team has two fromer Rails core developers, the Ember.JS guy and the SJW "guy" (forgot Zir name)...
Thread posts: 169
Thread images: 10


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.