[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1729129322147417.png (1.18 MB, 1024x1024)
1.18 MB
1.18 MB PNG
>Compile Fast
>Run Fast
>No Memory Management (Unless you want it)
>>
File: go rat.png (9 KB, 496x403)
9 KB
9 KB PNG
>>103238568
I hate women and I approve this message
>>
Just use Java.
>>
worst date handling of any language I've ever seen
>>
>>103238568
>if err!= nil
>>
>>103238670
>try { } catch (Exception e) {}
>>
File: 1732043545288997.png (325 KB, 603x898)
325 KB
325 KB PNG
Respond to the previous thread Gotrannies
>>
>>103238568
>AI slop
>>
>>103238708
It's visually less messy despite repetitiveness. You could of course reduce each entry to two lines rather than 4, since these things aren't shadowed anyway.

if cs.internalV, err = interlalV.NewForConfig(&betaMale, httpClient); err != nil {
return nil, err
}
>>
>>103238761
3 but yes compact. Anyway, a lot of this is very uncommon to find in the codebase, except a top level function that just calls others, and the language is designed for legibility... NESTING is the worst thing for legibility in code, this has been studied actually and shown via research.
>>
>>103238684
And?
>>
>>103238892
Exactly their is nothing special about either one
>>
>>103239008
There is in that I don't have to have a try-catch statement in every single routine in the call tree.
>>
File: go_girl.png (36 KB, 1168x1144)
36 KB
36 KB PNG
>>103238568
I couldn't compile with vscode so I drew on mspaint
>>
Thanks but I'll stick with .NET
>>
File: oompa_loompa_10023.png (1.58 MB, 1024x1024)
1.58 MB
1.58 MB PNG
>>103238568
Just like C, Go still doesn't set all the compiler hardening options to default on, hence all the Go binaries missing PIE, Full RELRO, NX, Full ASLR, Stack Canaries, Fortify options, etc...
>>
>>103238568
for me it's lisp, the compile faster run faster no memory management at all language
>>
I love go.
>>
>>103238670
Don't forget to wrap your errors!
>>
>>103238568
Get shit done language
>>
>>103239082
>_ = routine()
>>
>>103239763
ok nerd
>>
>>103244156
Great. Now your entire program panics whenever routine() errors.
>>
>>103238670
literal baby tier complaint
>>
>>103238708
Odin solves this with couple of nice keywords but it's not that important really. that code is very clear in what it's doing and avoids the hell that is exceptions.
>>
>>103238568
>spy on you fast
I'm sticking with rust.
>>
>>103238708
it's wild to me that Golang, a modern language with disgustingly simple syntax, chose not to have macro-based metaprogramming. I can't imagine the amount of Go code I've written that could've just been hidden behind a macro.
>>
>>103238708
They didn't code this very well. Each of those functions they're running conforms to a fairly tight interface. They should make a struct that takes a series of functions matching the pattern and pointers to where they want the output to go, create a slice of everything they want to do, and loop over the array. Only have to write the logic once in that case.
>>
>>103239681
amazing anon
>>
>>103246118
Do you think perhaps they benched it and found less desirable memory allocations? I believe slices go to heap when passed into functions is that right?
>>
>>103246014
How do Rustaceans have this little shame to actually publicly admit to using something that solely exists as a compromised pozzed piece of propaganda, that gains popularity entirely via capturing virtue signaller wannabes and society's undesirables?

You aren't going to make software with Rust, so what are you doing? Registry dumping like King Asperger from the /g/ DPT threads?

Security/privacy is def not a reason to pick Rust, its benefit is just performance. In terms of goals it is divergent from Go entirely and the two cannot be compared. Because Go's focus is to be as far opposite from Rust as possible, as in, clear and readable, maintainable, and productive... Whereas Rust makes infinite sacrifices in that arena for other rationales... Though of course, we all know the memory safety thing is a scam, because when was the last time your program didn't do what you expected due to a null pointer or some shit, vs when you simply had some kind of accidental logical issue like an accidental inversion in logic checking < instead of >? And the convolution of syntax increases the likelihood of these much more common code issues.
>>
>>103246436
I hate Rust shills, same as I hate Go shills. But honestly, as someone who has maintained large codebases in Python, Rust, and Go, I'd definitely prefer Rust if I was asked to build a non-trivial and sizeable software. Mainly cuz the most stable software I've maintined has been in Rust (and not due to memory safety).
>>
>>103246436
Nigga I was just trolling, kek. But you're right. The post was to picture the average response of a rust tranny, and I think I succeeded.
>>
>>103238568
Remember when Google wanted to shove telemetry down every Gotard's throat?
>>
>>103239082
Nice to know that all the programs you write are full of unhandled errors.
>>
>>103248064
Lurk until you've passed CS 102.
>>
>>103248086
Cope.
>>
File: 1642490338273.jpg (252 KB, 1280x1008)
252 KB
252 KB JPG
>>103247135
>the wagie doesn't mind sitting around for 10 minutes on company time while rust compiles
I wonder why
>>
>>103248367
>never heard of incremental compilation
school spergler spotted
>>
>>103238568
Im a webdevlet and only use the following (HTML, CSS, JS, PHP, frameworks relevant to those). what kind of projects do you use GO for? I see a lot of potential for it but dont really know the context of what its used for.
>>
>>103248367
same with C++. maybe stop working on trivial slop for babbies.
>>
>>103238684
the irony is it's the same problem. Go expects you to do runtime casting just to recover the types of errors you can potentially handle, and it still manages to be more verbose and shitty about it.

Honestly exception machinery > gotoddler's shit. Rust proved what anyone who knows ML or Haskell already knew though, that monadic sumtypes won, by a lot.
>>
>>103249019
>monadic sumtypes
dunning kruger tier trash
there's a reason why this academic masturbation is not popular in the industry
>>
>>103249042
>um I'm not the midwit, you're the midwit
kek, retards lost, rust won.
enjoy your reinvented visitor patterns to even copy a fraction of what Rust is doing though, gocuck / c++ weenie.
>>
To be honest I find programming in Go enjoyable. The base system is alright.
>>
>>103249019
>Rust proved what anyone who knows ML or Haskell already knew though, that monadic sumtypes won, by a lot.
I know it makes you feel good to call them "monadic sumtypes" but Javascript promises have been around longer than Rust, it's a standard webshit feature.
Actual monads are a pain to work with because you almost always want to compose Maybe and IO and end up writing PhD thesis to do something trivial
>>
>>103245972
no it doesn't you tard
>>
>>103248845
you can replace php with it for starters
>>
>>103251121
yes it does lard
>>
>>103248845
I use Go for webshitting (backend), a bit of 2d game dev (raylib) and parsers. It's mid for GUI's but the couple of libraries it has do the job just fine.
>>
>>103249067
Doesn't rust has like 1k jobs worldwide? That suggests it's barely used.
>>
>>103251338
rust careers are basically limited to Heebflare, Furryfox, and some experimental stuff in Microjeet. My company has an ideal use case but we’re so far down the webshit rabbit hole that we’re not considering other languages for a very very long time, and I suspect most of the industry is like that
>>
File: 1727693644489595.png (75 KB, 800x800)
75 KB
75 KB PNG
go is a meme unless you're an 80 IQ retard.
>>
>>103248845
Everything that isn't video gay-mes. Go threads are always full of completed projects, while certain "other" threads are filled with literal short bus autists like the guys on that Louis Theroux autism documentary posting pathetic registry key dumpers.

Note that the former is for productivity, making things, an idea for software comes to mind and you make it a reality.

The latter is for mentally masturbating in the dark alone and incel in stripy socks because looking like a woman is the closest you will ever get to being with a woman.
>>
>>103251165
>>103251330
>>103251803
I will have to take a look sometime this week. Maybe look up a tutorial project or something
>>
>>103248367
>rustchads: write code for 5 minutes, get a 10 minute break while code compiles to do pushups or sip some comfy coffee
>gonormies: type if err != nil {return err} for 15 minutes and get RSI from it
yeah i know which lang i'd rather use



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.