Home › Forums › Science & tech › Why is Go used everywhere bros? Literally 10 times more job offers than Rust on LinkedIn
- This topic has 128 replies, 1 voice, and was last updated 7 months, 3 weeks ago by
Anonymous.
-
AuthorPosts
-
-
September 28, 2021 at 3:47 pm #102119
-
September 28, 2021 at 3:52 pm #102120
Anonymous
GuestI don’t understand the freaking world, how the fuck does a language which doesn’t even have an average function for lists get so popular kek
-
September 28, 2021 at 4:03 pm #102122
Anonymous
GuestGenerics are almost ready anon, you will have your pajeet avg function
-
September 29, 2021 at 1:38 am #102202
Anonymous
GuestJust use the Canadian Aboriginal Syllabics block and you have your generics:
https://old.reddit.com/r/rust/comments/5penft/parallelizing_enjarify_in_go_and_rust/dcsgk7n/
-
-
September 28, 2021 at 4:23 pm #102124
Anonymous
Guestwhat is a function for lists? can you give an example for a dummy? i use python, what would be the equivalent?
-
September 28, 2021 at 4:46 pm #102125
Anonymous
GuestHe means a function that takes an array and does something with it, in this case, returns the average sum of all elements. Something like:
def average(array):
return sum(array) / len(array)Go can’t implement this now in std, because it lacks generics so they would need to write one for every single type. Like AverageF32, AverageF64 etc.
-
September 28, 2021 at 4:59 pm #102126
Anonymous
GuestMost Go programmers are writing programs that do things instead
-
September 28, 2021 at 5:01 pm #102127
Anonymous
Guest>they would need to write one for every single type
No, you would only need to write 1 for every type you use to store numbers (likely 1)-
September 28, 2021 at 5:03 pm #102128
Anonymous
GuestMore like 1 for each combination of number and foldable data structure
-
-
September 28, 2021 at 5:05 pm #102130
Anonymous
Guestwoke af person that actually spends some time to help complete strangers on the internet understand something, have a good day
(im not him) -
September 28, 2021 at 5:33 pm #102131
Anonymous
GuestInterestingly:
>> Why does Go not have generic types?
>> A language proposal implementing a form of generic types has been accepted for inclusion in the language. If all goes well it will be available in the Go 1.18 release.>> Go was intended as a language for writing server programs that would be easy to maintain over time. (See this article for more background.) The design concentrated on things like scalability, readability, and concurrency. Polymorphic programming did not seem essential to the language’s goals at the time, and so was left out for simplicity.
>> The language is more mature now, and there is scope to consider some form of generic programming. However, there remain some caveats.
>> Generics are convenient but they come at a cost in complexity in the type system and run-time. We haven’t yet found a design that gives value proportionate to the complexity, although we continue to think about it. Meanwhile, Go’s built-in maps and slices, plus the ability to use the empty interface to construct containers (with explicit unboxing) mean in many cases it is possible to write code that does what generics would enable, if less smoothly.
>> The topic remains open. For a look at several previous unsuccessful attempts to design a good generics solution for Go, see this proposal.
So they’re coming out, but they decided not to have a shitty implementation at first. I can respect that.
-
September 28, 2021 at 5:42 pm #102132
Anonymous
Guest> We don’t want to implement generics because we are too scrotebrained…. No UHM I mean muh polymorphic programming Le bad!!
-
September 28, 2021 at 9:52 pm #102169
Anonymous
Guest>I can… le not read!
-
September 29, 2021 at 5:13 pm #102244
Anonymous
GuestYou should go back to writing enterprise software with Java
-
September 29, 2021 at 5:44 pm #102246
Anonymous
Guest>writing enterprise software with Java
Replace that with scala because I’m not a pajeet and yes, I will. And I make 6 figures from it kek
-
-
-
September 28, 2021 at 6:01 pm #102133
Anonymous
Guestthe only way that go can provide decent generics is by copying rust (which copied haskell), so implement real type traits and operator overloading, add traits (interfaces in go) like Number which provide Add, Mul, Eq etc. Otherwise, the whole idea will fail because they are mostly useless. The other approach would be templates like in sepples which lead to extremely weird compile error messages. So, introducing generics only for primitives sounds dumb.
-
September 28, 2021 at 6:23 pm #102135
Anonymous
Guesta language with a type system like rust’s, but without lifetime autism and with a good garbage collector would be pretty popular for general purpose systems that don’t demand absolute performance
-
September 28, 2021 at 6:27 pm #102136
Anonymous
GuestTo my knowledge the best candidate is unfortunately Swift
-
September 28, 2021 at 6:29 pm #102137
Anonymous
GuestThere’s been so much talk about this exact need that I’m certain some nerd has tried to prototype this language already.
-
September 28, 2021 at 6:32 pm #102138
Anonymous
GuestHaskell fits the bill. Unfortunately, scrotebrains can’t into recursion, so it probably won’t become mainstream
-
September 28, 2021 at 6:35 pm #102140
Anonymous
GuestHaskell has bigger problems preventing it from going mainstream, such as it being a language for researchers to invent obscure notation by inventing operators, and having a dogshit package ecosystem (Cabal, Stack).
What you’re all asking for is JVM/.NET with typeclasses baked in from the start.
-
September 28, 2021 at 6:39 pm #102144
Anonymous
Guest-
September 28, 2021 at 6:40 pm #102145
Anonymous
GuestThe problem with JVM is the rest of JVM, because it can’t be ignored.
-
September 28, 2021 at 6:42 pm #102146
-
September 29, 2021 at 2:29 pm #102237
Anonymous
Guest>compile to native binaries
Does it still rely on java’s GC?
That’s probably my biggest issues with a lot of langs. -
September 29, 2021 at 2:43 pm #102240
Anonymous
Guestno, it has its own memory management system that recently has been improved
-
September 29, 2021 at 6:19 pm #102247
Anonymous
GuestInteresting, I might have to see how it performs, this might actually be a decent solution to Java’s performance issues given it’s not exceptionally difficulty to build a few different binaries for different OSs.
-
September 28, 2021 at 7:11 pm #102147
Anonymous
Guest>because it can’t be ignored.
But it can anonI don’t really see anything about how typeclasses are baked into the essence of the language.
And this kotlin native thing is really just a cross platform shim, not really what I meant
It does seem like Kotlin has it’s own stdlib and it’s own ecosystem, which works, but seems to be heavily influenced by Java, which is forebodingWhat I personally really want is the ability to effortlessly FFI between different flavors of languages from a C-like language to a Haskell-like language.
This is currently impossible because the C ABI reigns supreme, and it has no knowledge whatsoever of type safety.
Microsoft was a visionary in this sense by creating the C#/F# ecosystem in .NET, but they did not think to add typeclasses into the CLR, which makes their ML implementations limited.
There is also no "very low level language" in their ecosystem. -
September 29, 2021 at 11:03 am #102234
Anonymous
Guest>There is also no "very low level language" in their ecosystem.
C and C++ aren’t sufficiently low level for you? they both compile to the CLR if you hand the compiler the /CLR flag. -
September 29, 2021 at 11:50 am #102235
Anonymous
GuestDo you lose out on performance, efficiency, bare metal capabilities, zero-cost interfacing with ordinarily-compiled C code that way?
-
September 29, 2021 at 5:25 pm #102245
Anonymous
Guestno
-
September 29, 2021 at 4:51 am #102226
-
-
-
September 28, 2021 at 6:37 pm #102142
Anonymous
GuestIs side effect autism really better than lifetime autism?
-
September 29, 2021 at 11:00 am #102233
Anonymous
Guestno, they’re both chud autism.
-
-
-
September 28, 2021 at 9:53 pm #102171
Anonymous
GuestNo thanks. If its unclear if a type can be used as a function argument or not, then it’s bad design.
go already has this type class nonsense, sort of.-
September 28, 2021 at 10:18 pm #102177
Anonymous
GuestIdeally the syntax and the author’s naming sense can make it abundantly clear what applies to the function.
But in general, I agree that it is often done wrong; e.g. sepples 20 is an abortion.The dependent types seen in theorem prover languages like LEAN and Idris can be quite readable when the author is attempting to do something actually useful instead of masturbating with notation and symbols.
-
September 28, 2021 at 10:20 pm #102179
Anonymous
Guestlisten, people don’t want to prove theorems and they don’t want to wank over categories: they want to write programs
-
September 28, 2021 at 10:20 pm #102180
Anonymous
Guestyou didn’t read
listen
typeclasses are readable
you just have to put in some effort -
September 28, 2021 at 10:23 pm #102181
Anonymous
Guestwhat’s the point?
-
September 28, 2021 at 10:27 pm #102184
Anonymous
GuestBasically, the difference is whether you believe that classes are a viable solution to general problems, or a restriction that prevents interoperability woke af on the whims of authors, rather than the actual data contained in an object.
For example, a Point3D from three different libraries would be totally incompatible with each other in Java, but the human is confused at why he needs to cope when the information presented is exactly the same.
Typeclasses are essentially the idea that libraries should be able to work universally with each other despite not necessarily knowing that the others exist.
-
September 28, 2021 at 10:28 pm #102185
Anonymous
Guestyou have described an interface, or contract
-
September 28, 2021 at 10:29 pm #102187
Anonymous
GuestAnd in Java, you inherit from an interface. There is no compatibility between identical interfaces.
-
-
-
September 28, 2021 at 10:29 pm #102186
Anonymous
Guesttypeclasses tell you the capabilities of types that fulfill their contract
go has a weaker version, which is duck typed-
September 28, 2021 at 10:30 pm #102188
Anonymous
Guestduck typing is woke af
And in Java, you inherit from an interface. There is no compatibility between identical interfaces.
disgusting
-
-
-
-
-
-
-
-
September 28, 2021 at 6:18 pm #102134
Anonymous
GuestYou need shockingly little actual features to get work done.
Go is about keeping things simple, and explicitly gatekeeping out people who can’t comprehend simplicity.That said, it’s mostly used in microservices and other cloud shit, though people have run it on bare metal without an OS before.
-
September 28, 2021 at 6:37 pm #102141
Anonymous
Guest>You need shockingly little actual features to get work done.
More features (or, at least, different features than those that Go has) are needed to get work done efficiently.
> Go is about keeping things simple, and explicitly gatekeeping out people who can’t comprehend simplicity.
Go is not much simpler than Java.-
September 28, 2021 at 6:38 pm #102143
Anonymous
GuestYou’d be surprised at how the lack of easy inheritance makes it completely opaque to the average pajeet, how they are supposed to create an AbstractBeanFactory
-
September 28, 2021 at 7:41 pm #102148
Anonymous
Guest>Go is not much simpler than Java.
Whaaa? It’s been a few years since I did java, and it was hadoop jobs for work. But Go is so much simpler and straightforward it almost looks like bash by comparison. What are you talking about? Have you actually written *ANY* java or go code outside of a cs101 class?-
September 28, 2021 at 7:50 pm #102151
Anonymous
Guest>What are you talking about?
>Goscrote tries to pass default value
He has to define a freaking struct to use inside the function that gets overwritten each time you extend the function
Kek
-
-
-
-
September 28, 2021 at 7:44 pm #102149
Anonymous
GuestGo standard library doesn’t even have a function to draw a simple line. It’s so lacking that you’re better off using Java if you’re doing webshit.
Generics are almost ready anon, you will have your pajeet avg function
>generics
Any day now. Goscrotes have been saying that for at least a year.-
September 28, 2021 at 7:49 pm #102150
Anonymous
GuestDraw a line where?
-
September 28, 2021 at 7:54 pm #102152
Anonymous
GuestAnywhere you want kek
-
September 28, 2021 at 7:58 pm #102153
Anonymous
GuestIn the terminal? On a webpage? On paper?
-
-
September 28, 2021 at 8:18 pm #102154
Anonymous
GuestOn screen, dumbfuck. Moreover it can’t even display anything on screen, only write to a file, so in order to do that you need a freaking 3rd party lib for such trivial shit other language have out of the box.
-
September 28, 2021 at 8:19 pm #102155
Anonymous
Guest>NOOO EVERY LANGUAGE NEEDS AN IMMEDIATE MODE GUI AND WINDOWING LIBRARY BUILT IN
Rust trannies don’t have it either lol-
September 28, 2021 at 8:36 pm #102160
Anonymous
GuestRust is shit for different reasons, but if you market your language as a general purpose one, then it should at least be able to draw simple lines if you do provide some gui capabilities.
-
September 28, 2021 at 8:38 pm #102161
Anonymous
GuestI am pretty sure that Go does not provide a windowing or GUI library, does not intend to, and doesn’t market itself as doing anything other than backend server applications and CLI utilities.
-
September 28, 2021 at 8:40 pm #102163
Anonymous
GuestMeanwhile if you wanted a GUI, you’re using some kind of Electron variant with JS/TS, a platform-specific language, or C++ with some shitty library made by linux autists.
Nobody builds desktop applications with Java anymore. -
September 28, 2021 at 9:33 pm #102166
Anonymous
GuestIt has image/draw package for handling simple graphics, albeit it only write to a file and is unable to display it in a window. But it’s so half-assed you can only draw rectangles. Either do a proper job or don’t include it at all like it is with sepples.
-
September 28, 2021 at 9:37 pm #102167
Anonymous
GuestThat’s a disappointment. Do we have any usage statistics (preferably production/library usage) on those functions?
-
-
-
-
-
-
-
September 28, 2021 at 8:29 pm #102157
Anonymous
Guest>Go is bad because no graphics library in std
go is bad, but the lack of graphics in std is the dumbest argument I’ve heard. Can you name a single language beside V that provides that-
September 28, 2021 at 8:35 pm #102159
Anonymous
Guest>Can you name a single language beside V that provides that
Java-
September 28, 2021 at 8:40 pm #102162
Anonymous
GuestSome guys once wanted to add graphics to sepples std. Everyone laughed at them. It’s really dumb.
-
-
September 29, 2021 at 2:49 am #102220
Anonymous
Guestpython
-
-
September 28, 2021 at 10:14 pm #102175
Anonymous
Guestgenerics have been mainline for some time now. next minor version.
>type autism
>popularmongoloid
go’s contracts seem a lot like traits, but iirc you could do things with contracts that you couldn’t with haskell’s traits
-
-
September 28, 2021 at 10:05 pm #102173
Anonymous
Guestbecause it’s good
oddly specific whine
-
September 29, 2021 at 2:04 am #102209
Anonymous
GuestWhy do you need a built-in average function when you can write your own in 3 lines? Are you the scrotebrain who uses npm packages like IsEven?
-
September 29, 2021 at 10:52 am #102232
Anonymous
Guest>3 lines
Show me, you can’t goscrote
-
-
September 29, 2021 at 8:10 am #102228
Anonymous
GuestBecause people use programming languages to do real work, not for first year programming exercises.
-
-
September 28, 2021 at 4:01 pm #102121
-
September 29, 2021 at 3:29 am #102224
Anonymous
GuestKek.
-
-
September 28, 2021 at 4:19 pm #102123
Anonymous
GuestIt’s just simple and fast brah. You can tell it’s good by how much seethe there is about it on this board. Neets here hate it bc it reminds them of their jobless existence.
-
September 28, 2021 at 5:05 pm #102129
Anonymous
Guest>Literally 10 times more job offers than Rust
Why do you compare shitty webdev lang to Rust?-
September 28, 2021 at 11:40 pm #102195
Anonymous
Guest>Why do you compare Rust to Rust?
lol?
-
-
September 28, 2021 at 6:34 pm #102139
Anonymous
Guestbecause FAANG (Google in this case) controls everything
look at AWS and how the entire freaking industry has standardized it’s use -
September 28, 2021 at 8:24 pm #102156
Anonymous
GuestIt is an easy language for literal scrotebrains to learn and companies need more and more coders to keep wages down, thus the perfect pajeet language was born. This is going to end up like java where everything is written in pooified go and runs like complete shit and they have to rewrite everything later, 100x’ing their actual development costs vs if they just hired competent people in the first place.
-
September 28, 2021 at 8:32 pm #102158
Anonymous
GuestIt’s basically the language you give to people who can’t program so that they cause as little fuck up as possible. If you’re constantly onboarding and throwing away people every year or two, and the people themselves are of dubious quality, it’s a pretty good fit. Also, if you’re a complete moron but you still want to program something, it’s not bad either. For everyone else, there’s better languages for every purpose.
-
September 28, 2021 at 9:50 pm #102168
Anonymous
Guestbecause rust is a hobby language that has no usage in the real world
-
September 28, 2021 at 10:14 pm #102174
Anonymous
GuestThen why is Microsoft hiring Rustrannies?
Why does it keep coming up again and again on all the programming sites even though all the other memelangs don’t?
Rust is obviously trying to do something unique and value, even if in a scrotebrainedly difficult way
-
September 28, 2021 at 10:17 pm #102176
Anonymous
Guestit comes up often because rust fans are very, very loud and forceful. in spite of all this racket, and despite filling some niches well, it’s just not an appealing language.
-
September 28, 2021 at 10:19 pm #102178
Anonymous
Guestthe ones hiring are the same trannies. futile attempt of popularizing that language
-
September 28, 2021 at 10:25 pm #102182
Anonymous
Guest>why is trannies hiring trannies?
really makes you think
-
-
-
September 28, 2021 at 9:52 pm #102170
Anonymous
GuestIt’s not a perfect language, but I’ve used Go for small programs that could easily be compiled for both Linux and Windows. It’s not much worse to write than Python, and you get the portability of a native binary, so it worked pretty well for what I needed.
-
September 28, 2021 at 10:04 pm #102172
Anonymous
Guestbecause go is perfect for small perfomant applications
-
September 28, 2021 at 10:27 pm #102183
Anonymous
GuestWhy is it only go that seems to attract constant complaints that it isn’t a carbon copy of either rust or haskell? You don’t see people shouting at java for lacking typeclasses, nor do you see people shouting at C for having no pattern-matching.
-
September 28, 2021 at 11:06 pm #102191
Anonymous
GuestWhy would anyone want to learn Rust?
-
September 28, 2021 at 11:23 pm #102192
Anonymous
GuestTo do systems programming and not have to deal with C++’s bullshit.
-
September 28, 2021 at 11:33 pm #102193
Anonymous
Guestwhat if you already know C++, why would you ever do Rust? Imagine having to retrain all your monkeys to do Rust instead of C++.. So much downtime..
-
September 29, 2021 at 1:20 am #102196
Anonymous
Guest>what if you already know C++, why would you ever do Rust?
Because it’s much nicer to work with than C++.i do my systems programming in ocaml, go and forth
what the fuck do i need rust or sepples for?>systems programming
>go
Pick one-
September 29, 2021 at 1:28 am #102197
Anonymous
Guest1. systems programming doesn’t just mean bare metal
2. there is a go runtime for bare metal-
September 29, 2021 at 5:00 pm #102242
Anonymous
GuestIt means it gives you full control over your application. For example Go doesn’t allow you to manage your memory.
>it’s much nicer to work with than C++
holy kek does she actually believe thisC++ is bloated. It’s build system and related tools are platform dependent and way more time consuming than Cargo. C++ ecosystem is split across multiple competing compilers, are incompatible with each other. Stdlib is old and full of deprecated features. Macro system is weak and unhygienic. Things like serde is straight up impossible to implement in C++. A lot of modern C++ features are so bad they are basically dead on arrival, like destructing or modules.
Of course Rust is nicer to work with.
-
-
September 29, 2021 at 1:31 am #102199
Anonymous
Guest>it’s much nicer to work with than C++
holy kek does she actually believe this-
September 29, 2021 at 1:33 am #102201
Anonymous
Guestit probably is; sepples is awful
-
-
-
-
September 28, 2021 at 11:38 pm #102194
Anonymous
Guesti do my systems programming in ocaml, go and forth
what the fuck do i need rust or sepples for? -
September 29, 2021 at 8:49 am #102230
Anonymous
Guestbut you can already do the same thing by just telling your C++ programmers to use std::unique_ptr and std::shared_ptr instead of teaching them a whole new language with a very different paradigm
-
September 29, 2021 at 10:20 am #102231
Anonymous
Guest>modern sepples is only about std::unique_ptr and std::shared_ptr
>also magically smart pointers will make your code safe
dumb larper has no idea about multithreading -
September 29, 2021 at 2:39 pm #102239
Anonymous
Guestthe rules of rust AXM are stricter than that
google tried to encode them in c++’s type system, but couldn’t
https://docs.google.com/document/d/e/2PACX-1vSt2VB1zQAJ6JDMaIA9PlmEgBxz2K5Tx6w2JqJNeYCy0gU4aoubdTxlENSKNSrQ2TXqPWcuwtXe6PlO/pub
-
-
-
-
September 29, 2021 at 1:30 am #102198
Anonymous
GuestBoth languages are figments of your imagination. Nobody uses this shit
-
September 29, 2021 at 1:32 am #102200
Anonymous
Guesteverywhere uses go
-
-
September 29, 2021 at 1:39 am #102203
Anonymous
Guest -
September 29, 2021 at 1:51 am #102207
Anonymous
GuestBeing dead simple to write and read. Also, their std library just werks.
-
September 29, 2021 at 1:52 am #102208
Anonymous
GuestNo idea, but it sure isn’t because of the scrotebrained looking millennial mascot.
-
September 29, 2021 at 2:08 am #102210
Anonymous
Guestthe woman who drew it is gen x
-
-
September 29, 2021 at 2:09 am #102211
Anonymous
Guest>getting generics soon
Fuck pOOP.
It’s all Pajeetware in the end (even if it isn’t explicitly Java).
void* pointers should be enough for anyone.-
September 29, 2021 at 2:14 am #102212
Anonymous
Guesthappily, nerics have fuck all to do with OOP
-
-
September 29, 2021 at 2:17 am #102213
Anonymous
Guestworked for a year on mercadolibre.
can confirm they use it
can confirm everyone is actually scrotebrained in that company-
September 29, 2021 at 2:19 am #102214
Anonymous
Guestd-kruger
-
-
September 29, 2021 at 2:23 am #102216
Anonymous
Guestliterally won’t learn this language because of the scrotebrained shit mascot they have.
seriously. is it supposed to be funny? I’m not scrotebrained why should I code in your scrotebrained mascot’s language -
September 29, 2021 at 2:28 am #102218
Anonymous
Guestim a newscrote with no clue about programming. i do see go is used a lot on github …rust as well.
is go worth learning as a beginner? right now i have very rudimentary python ability…basically a C-c C-v srcipter.
-
September 29, 2021 at 2:39 am #102219
Anonymous
Guestyou will get the most benefit out of working in a project, not learning another language.
get something done: it goes a long way.
if you don’t have anything to do, apply for a job. don’t be afraid, it’s easier than you think-
September 29, 2021 at 2:59 am #102221
Anonymous
Guestthank you for the advice frend
-
September 29, 2021 at 3:12 am #102222
Anonymous
GuestNo prob.
I don’t know what your goals/interests are, but for example I worked for a full year at a tech company just using python.
If you tell me more about your interests maybe I can give more help-
September 29, 2021 at 3:28 am #102223
Anonymous
Guestso far i have been using scripts to help at work and i would like to eventually develop some simple tools to help them.
i work for family so i typically go above and beyond where i can. for example i wrote a script that nets us a few thousand dollars each quarter from our distributors who constantly fuck up our pricing… basically i used a python script to take the lowest price we got an item, and compare that to what we were charged each time for that item.so i’d like to be able to do stuff like that. in the short term i would like to learn how to manipulate pdfs better. for example pull text and use it to generate spreadsheets/datasets.
long term im interested in maybe developing plugins for ranger/lf (file managers) to make it more amenable to small biz use. i have messed around with ranger a bit, and i know lf like ranger but written in go, which is why i asked about go in the first place.
-
-
-
-
-
September 29, 2021 at 4:45 am #102225
Anonymous
Guest -
September 29, 2021 at 4:58 am #102227
Anonymous
GuestCome on. Implement a priority queue.
https://pkg.go.dev/container/heap
Youll be writing 6 functions -
September 29, 2021 at 2:18 pm #102236
Anonymous
Guestbecause it’s woke af and rust is cringe
-
-
AuthorPosts
- You must be logged in to reply to this topic.