|
my favorite go quirk is that imports are file-scoped. so if you import fmt in one file you'll need to reimport it in another file in the same package. however, file scope isn't really a thing otherwise. all other identifiers (even private ones) will be shared between files. which is super annoying because go has a serious problem with namespace collision due to the lack of generics and lack of any kind of module or namespacing system. so there's a weird situation where imports are file-local but private variables declared in a file are package-local. it makes no sense. what makes this even weirder is the fact that imports are mutable and maintain a global state. DONT THREAD ON ME fucked around with this message at 18:26 on Sep 17, 2017 |
# ? Sep 17, 2017 18:18 |
|
|
# ? Apr 29, 2024 16:16 |
|
MALE SHOEGAZE posted:i am also a go fan but how can you criticize generics as abusable in the same breath that you defend interfaces. empty interfaces are even more abusable than generics and they have the major downside of requiring runtime type checking. i just dont understand this argument. moreover, the lack of generics forces you to use the empty interface constantly. (empty interface is the base type in golang, for those among us who are not yet victims) since you can't express any complex ideas with the type system, you have to subvert the type system to accomplish anything complex!
|
# ? Sep 17, 2017 18:36 |
|
yeah the type system should be a wonderful tool but in go it's an annoying straight jacket
|
# ? Sep 17, 2017 18:39 |
|
MALE SHOEGAZE posted:also go imports and package/file scoping are insanely bad. hope u like dealing with cyclic dependencies. holy poo poo, i love cyclic dependencies!
|
# ? Sep 17, 2017 18:48 |
|
When you say "interface{}" I hear "void*"
|
# ? Sep 17, 2017 19:10 |
|
we have a PL thread for this kind of discussion, this thread is for how your sound doesn't work when you play your Steam games over HDMI because the Linux people are making AMD rewrite everything to be more Linuxy
|
# ? Sep 17, 2017 19:17 |
|
pseudorandom name posted:we have a PL thread for this kind of discussion, this thread is for how your sound doesn't work when you play your Steam games over HDMI because the Linux people are making AMD rewrite everything to be more Linuxy if by "more linuxy" you mean "not a pile of garbage with a giant middle-layer, multiple separate edid parsers (on top of the one in the kernel), multiple i2c reimplementations (again, on top of the one in the kernel) and thousands of lines of dead code" then you are right. it was a textbook example of throwing something over the fence and labeling it open-source. they've been making progress though and the todo list is getting shorter
|
# ? Sep 17, 2017 20:31 |
|
MALE SHOEGAZE posted:which is super annoying because go has a serious problem with namespace collision due to the lack of generics and lack of any kind of module or namespacing system. I agree that these things are weird quirks, not sure how they cause problems. What are languages with a good module or namespace system? Some variety of ML? What problems do you run into without them?
|
# ? Sep 17, 2017 21:29 |
I responded to this post in the PL thread in case people want to take the discussion there, since it seems more on topic in that thread than this one:
|
|
# ? Sep 17, 2017 21:52 |
|
i don't know what the gently caress anyone here is talking about; i just like the webserver. holy poo poo
|
# ? Sep 17, 2017 23:08 |
|
atomicthumbs posted:i don't know what the gently caress anyone here is talking about; i just like the webserver. holy poo poo It's bad op
|
# ? Sep 17, 2017 23:31 |
|
|
# ? Sep 18, 2017 02:21 |
|
windows 10 works pretty well for me, op
|
# ? Sep 18, 2017 16:11 |
|
SystemD is cool and good. SystemD's Dbus API is also really cool and good. Dbus is now not a complete loving nightmare to use thanks to it.
|
# ? Sep 29, 2017 11:47 |
|
its systemd not SystemD
|
# ? Sep 29, 2017 12:01 |
|
Tankakern posted:its systemd not SystemD Huh, auto capitalization on the S, however, I always thought it was a capital D. For you know... daemon. And I have been using it for quite a while!
|
# ? Sep 29, 2017 12:08 |
|
|
# ? Sep 29, 2017 13:05 |
|
You just got system'd.
|
# ? Sep 29, 2017 13:50 |
|
Doom Mathematic posted:You just got system'd.
|
# ? Sep 29, 2017 13:52 |
|
SshD
|
# ? Sep 29, 2017 16:37 |
|
imagine having to press shift on the bash prompt
|
# ? Sep 29, 2017 16:39 |
|
Case-insensitive string comparison is not linuxy.
|
# ? Sep 29, 2017 16:43 |
|
Truga posted:imagine having to press shift on the bash prompt lol if you're not using tcsh
|
# ? Sep 29, 2017 20:35 |
|
I wonder why nobody's made an interactive shell written in Python yet. Seems like it would be a natural choice since you could write plugins for things like context-sensitive tab completion in an actual real programming language. It would be like PowerShell, except not poo poo.
|
# ? Sep 29, 2017 21:12 |
|
Sapozhnik posted:I wonder why nobody's made an interactive shell written in Python yet. Seems like it would be a natural choice since you could write plugins for things like context-sensitive tab completion in an actual real programming language. It would be like PowerShell, except not poo poo. shells requiring language runtimes sucks
|
# ? Sep 29, 2017 21:22 |
|
shells with their own lovely custom programming languages also suck. domain specific languages are the devil's playthings.
|
# ? Sep 29, 2017 21:34 |
|
Bash sucks VBScript sucks PowerShell sucks Matlab sucks Maple sucks Your IRC client's "scripting language" is a gigantic piece of poo poo Your favorite build tool, unless it is Maven or maybe Meson, is a piece of poo poo Excel... has compelling use cases, unfortunately. But it also sucks. I haven't tried IFTTT but I'm sure it's also a piece of poo poo Program maintenance is hard enough as it is. Why do people think creating a deliberately lobotomized programming language and then sticking your head in the sand by superstitiously avoiding the P word is somehow going to make it easier?
|
# ? Sep 29, 2017 21:48 |
|
Sapozhnik posted:Bash sucks quote:I haven't tried IFTTT but I'm sure it's also a piece of poo poo
|
# ? Sep 30, 2017 02:44 |
|
Common Lisp and ASDF don't suck we just need McCLIM to be done enough and then we can use the CLIM Listener for all interaction which will be even better
|
# ? Sep 30, 2017 05:07 |
|
zsh is pretty needs suiting also plz replace SystemD with SubstanceD.
|
# ? Sep 30, 2017 05:20 |
anatoliy pltkrvkay posted:zsh is pretty needs suiting Yeah but fish is the new hipste
|
|
# ? Sep 30, 2017 08:25 |
|
anatoliy pltkrvkay posted:zsh is pretty needs suiting https://www.youtube.com/watch?v=QNZeA4KbyDo
|
# ? Sep 30, 2017 14:18 |
|
eschaton posted:Common Lisp and ASDF don't suck it's been twenty years and mcclim isn't complete
|
# ? Sep 30, 2017 22:01 |
Sapozhnik posted:Bash sucks what about my operating system, op?
|
|
# ? Oct 1, 2017 00:38 |
|
Skim Milk posted:what about my operating system, op? its a piece of poo poo
|
# ? Oct 1, 2017 00:52 |
|
Sapozhnik posted:Bash sucks right, except bash is good and fun, op. also vbscript is cool if you you're a malware programmer in the 90s - early naughts
|
# ? Oct 1, 2017 01:00 |
|
OldAlias posted:right, except bash is good and fun, op. also vbscript is cool if you you're a malware programmer in the 90s - early naughts bash is only "cool" in the sense that it is a cool hack it is amazing that someone managed to cobble together a scripting language using a command shell and a bunch of carefully named binaries /bin/true /bin/case /bin/[ etc
|
# ? Oct 1, 2017 03:32 |
God I can never remember the difference between [ and [[
|
|
# ? Oct 1, 2017 05:08 |
|
Notorious b.s.d. posted:bash is only "cool" in the sense that it is a cool hack nah /etc/ doesn't have binaries
|
# ? Oct 1, 2017 05:21 |
|
|
# ? Apr 29, 2024 16:16 |
|
nice
|
# ? Oct 1, 2017 05:39 |