▲ 867 ▼ F*** You! Co-Creator of Go Language is Rightly Furious Over This Appreciation Email (itsfoss.com) submitted 8 months ago* (last edited 8 months ago) by themachinestops@lemmy.dbzer0.com to c/technology@lemmy.world 119 comments fedilink hide all child comments https://bsky.app/profile/robpike.io/post/3matwg6w3ic2s
[+] NEILSON_MANDALA@lemmy.world 85 points 8 months ago* (last edited 8 months ago) (25 children) [removed by mod] permalink fedilink source hideshow 25 child comments replies: [–] m33@lemmy.zip 63 points 8 months ago (16 children) Let's try this instead package main import "actions" import "entities" func main() { actions.Fuck(entities.You) } permalink fedilink source parent hideshow 16 child comments replies: [+] NEILSON_MANDALA@lemmy.world 6 points 8 months ago* (last edited 8 months ago) (13 children) [removed by mod] permalink fedilink source parent hideshow 13 child comments replies: [–] Axolotl_cpp@feddit.it 33 points 8 months ago* (10 children) This gotta be ragebait, everyone know that a language isn't bad or good only for a single thing, hell there is no bad language, the reason why "python is better" is because you use it to make kids learn how to program, this is a good use, every other use is just...not good since it's slow as hell and the indented syntax make it hell to write with but i'il gave you that python > go for making kids learn. permalink fedilink source parent hideshow 10 child comments replies: [–] DrCake@lemmy.world 18 points 8 months ago (8 children) There’s no bad language you say? https://en.wikipedia.org/wiki/Brainfuck permalink fedilink source parent hideshow 8 child comments replies: [–] Danitos@reddthat.com 33 points 8 months ago* (last edited 8 months ago) (4 children) Don't you fucking dare speak badly of my beloved Brainfuck In fact, take this fully functional Fibonacci sequence generator I did some time ago, so you can repent from your blasphemy by looking at its beauty. ;>;>;<<[->>[->+>+<<]>>[<<+>>-]<<<[>>+<<-]>[<+>-]>[<+>-]<:<<] permalink fedilink source parent hideshow 4 child comments replies: [–] Deceptichum@quokk.au 6 points 8 months ago (2 children) Damn someone made Ogham script into a coding lang? permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 8 months ago (1 child) The fuck I'm looking at here? permalink fedilink source parent hideshow 1 child comment replies: [–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent [–] squaresinger@lemmy.world 2 points 8 months ago Looks like a bad LLM's try at drawing ASCII fish. permalink fedilink source parent [–] yetAnotherUser@lemmy.ca 10 points 8 months ago (2 children) That isn't a bad language. It's pretty simple and it serves a cool purpose, which is to convey the power of a Turing machine. Now this is a bad programming language. permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 3 points 8 months ago (1 child) Malbolge is great for replying to anyone who claims that since programming languages are Turing-complete, any one of them is fit for the job. permalink fedilink source parent hideshow 1 child comment replies: [–] sukhmel@programming.dev 2 points 8 months ago You can transpile from C to Malbolge and then run it (this will probably take forever for most of C programs). I thought it can be used for obfuscation, and sure enough Wiki already states that: Hisashi Iizawa et al. also proposed a guide for programming in Malbolge for the purpose of obfuscation for software protection permalink fedilink source parent [–] msage@programming.dev 2 points 8 months ago JS? runs for cover permalink fedilink source parent [–] anzo@programming.dev 4 points 8 months ago (1 child) I love Python because it's actually the second best language to do anything. For concurrency, Go is better. Also, you are terribly naive to judge a language only by its syntax. permalink fedilink source parent hideshow 1 child comment replies: [+] NEILSON_MANDALA@lemmy.world 2 points 8 months ago* (last edited 8 months ago) [removed by mod] permalink fedilink source parent [–] racketlauncher831@lemmy.ml 5 points 8 months ago (1 child) So much bloat. So many boilerplates. Just package main fuck you() {} is enough. permalink fedilink source parent hideshow 1 child comment replies: [–] m33@lemmy.zip 2 points 8 months ago Could you please file a PR ? 🤣 permalink fedilink source parent [–] wildbus8979@sh.itjust.works 9 points 8 months ago* (last edited 8 months ago) (6 children) Python is demonstrably worst for the planet than Go. https://www.iro.umontreal.ca/~mignotte/IFT2425/Documents/RankingProgrammingLanguagesByEnergyEfficiency.pdf permalink fedilink source parent hideshow 6 child comments replies: [–] addie@feddit.uk 36 points 8 months ago (4 children) Interesting, but misguided, I think. If you've selected Python as your programming language, then your problem is likely either to do some text processing, a server-side lambda, or to provide a quick user interface. If you're using it for eg. Numpy, then you're really using Python to load and format some data before handing it to a dedicated maths library for evaluation. If you've selected Go as your programming language, then your problem is likely to be either networking related - perhaps to provide a microservice that mediates between network and database - or orchestration of some kind. Kubernetes is the famous one, but a lot of system configuration tools use it to manipulate a variety of other services. What these uses have in common is that they're usually disk- or network- limited and spend most of their time waiting, so it doesn't matter so much if they're not super efficient. If you are planning to peg the CPU at 100% for hours on end, you wouldn't choose them - you'd reach for C / C++ / Rust. Although Swift does remarkably well, too. Seeing how quickly you can solve Fannkuch-Redux using Python is a bit like seeing how quickly you can drive nails into a wall using a screwdriver. Interesting in its way, but you'd be better picking up the correct tool in the first place. permalink fedilink source parent hideshow 4 child comments replies: [–] pupbiru@aussie.zone 6 points 8 months ago (3 children) further to that, “demonstrably worse for the planet” i’d like to debate: considering a huge amount of climate science is done with python-based tools because they’re far easier for researchers to pick up and run with - ie just get shit done rather than write good/clean code - i’d argue the benefit of python to the planet is in the outputs it enables for significantly reduced (or in many cases, perhaps outright enabled) input costs permalink fedilink source parent hideshow 3 child comments replies: [–] xep@discuss.online 4 points 8 months ago* (1 child) If you need to optimize for performance, a common approach in Python is to extend it in C/C++. It's quite easy to do. Many high performance modules in Python are written in C/C++. It's also easy to embed Python in a C/C++ program, should you feel the need to add some scripting support to it. A very nice feature of Python, in my opinion. permalink fedilink source parent hideshow 1 child comment replies: [–] pupbiru@aussie.zone 3 points 8 months ago absolutely! similar is true of node in v8 (though python imo is far more mature in this regard) and probably most other languages exactly why things like numpy are so popular: yeah python is slow, but python is just the orchestrator permalink fedilink source parent [–] bryndos@fedia.io 2 points 8 months ago Compare it to the likely alternative for the task/person, probably R or even MS excel in many cases i'd guess. The alternatives should ideally be based on empirical observation of the population. The marginal saving of choosing a higher efficiency than python might look a lot lower. permalink fedilink source parent [+] NEILSON_MANDALA@lemmy.world -29 points 8 months ago* (last edited 8 months ago) [removed by mod] permalink fedilink source parent [–] vivalapivo@lemmy.today 3 points 8 months ago Haven't python reintroduced the infix notation? That's incredibly exhausting and lame. A simple fuck you would look much fancier permalink fedilink source parent
[–] m33@lemmy.zip 63 points 8 months ago (16 children) Let's try this instead package main import "actions" import "entities" func main() { actions.Fuck(entities.You) } permalink fedilink source parent hideshow 16 child comments replies: [+] NEILSON_MANDALA@lemmy.world 6 points 8 months ago* (last edited 8 months ago) (13 children) [removed by mod] permalink fedilink source parent hideshow 13 child comments replies: [–] Axolotl_cpp@feddit.it 33 points 8 months ago* (10 children) This gotta be ragebait, everyone know that a language isn't bad or good only for a single thing, hell there is no bad language, the reason why "python is better" is because you use it to make kids learn how to program, this is a good use, every other use is just...not good since it's slow as hell and the indented syntax make it hell to write with but i'il gave you that python > go for making kids learn. permalink fedilink source parent hideshow 10 child comments replies: [–] DrCake@lemmy.world 18 points 8 months ago (8 children) There’s no bad language you say? https://en.wikipedia.org/wiki/Brainfuck permalink fedilink source parent hideshow 8 child comments replies: [–] Danitos@reddthat.com 33 points 8 months ago* (last edited 8 months ago) (4 children) Don't you fucking dare speak badly of my beloved Brainfuck In fact, take this fully functional Fibonacci sequence generator I did some time ago, so you can repent from your blasphemy by looking at its beauty. ;>;>;<<[->>[->+>+<<]>>[<<+>>-]<<<[>>+<<-]>[<+>-]>[<+>-]<:<<] permalink fedilink source parent hideshow 4 child comments replies: [–] Deceptichum@quokk.au 6 points 8 months ago (2 children) Damn someone made Ogham script into a coding lang? permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 8 months ago (1 child) The fuck I'm looking at here? permalink fedilink source parent hideshow 1 child comment replies: [–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent [–] squaresinger@lemmy.world 2 points 8 months ago Looks like a bad LLM's try at drawing ASCII fish. permalink fedilink source parent [–] yetAnotherUser@lemmy.ca 10 points 8 months ago (2 children) That isn't a bad language. It's pretty simple and it serves a cool purpose, which is to convey the power of a Turing machine. Now this is a bad programming language. permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 3 points 8 months ago (1 child) Malbolge is great for replying to anyone who claims that since programming languages are Turing-complete, any one of them is fit for the job. permalink fedilink source parent hideshow 1 child comment replies: [–] sukhmel@programming.dev 2 points 8 months ago You can transpile from C to Malbolge and then run it (this will probably take forever for most of C programs). I thought it can be used for obfuscation, and sure enough Wiki already states that: Hisashi Iizawa et al. also proposed a guide for programming in Malbolge for the purpose of obfuscation for software protection permalink fedilink source parent [–] msage@programming.dev 2 points 8 months ago JS? runs for cover permalink fedilink source parent [–] anzo@programming.dev 4 points 8 months ago (1 child) I love Python because it's actually the second best language to do anything. For concurrency, Go is better. Also, you are terribly naive to judge a language only by its syntax. permalink fedilink source parent hideshow 1 child comment replies: [+] NEILSON_MANDALA@lemmy.world 2 points 8 months ago* (last edited 8 months ago) [removed by mod] permalink fedilink source parent [–] racketlauncher831@lemmy.ml 5 points 8 months ago (1 child) So much bloat. So many boilerplates. Just package main fuck you() {} is enough. permalink fedilink source parent hideshow 1 child comment replies: [–] m33@lemmy.zip 2 points 8 months ago Could you please file a PR ? 🤣 permalink fedilink source parent
[+] NEILSON_MANDALA@lemmy.world 6 points 8 months ago* (last edited 8 months ago) (13 children) [removed by mod] permalink fedilink source parent hideshow 13 child comments replies: [–] Axolotl_cpp@feddit.it 33 points 8 months ago* (10 children) This gotta be ragebait, everyone know that a language isn't bad or good only for a single thing, hell there is no bad language, the reason why "python is better" is because you use it to make kids learn how to program, this is a good use, every other use is just...not good since it's slow as hell and the indented syntax make it hell to write with but i'il gave you that python > go for making kids learn. permalink fedilink source parent hideshow 10 child comments replies: [–] DrCake@lemmy.world 18 points 8 months ago (8 children) There’s no bad language you say? https://en.wikipedia.org/wiki/Brainfuck permalink fedilink source parent hideshow 8 child comments replies: [–] Danitos@reddthat.com 33 points 8 months ago* (last edited 8 months ago) (4 children) Don't you fucking dare speak badly of my beloved Brainfuck In fact, take this fully functional Fibonacci sequence generator I did some time ago, so you can repent from your blasphemy by looking at its beauty. ;>;>;<<[->>[->+>+<<]>>[<<+>>-]<<<[>>+<<-]>[<+>-]>[<+>-]<:<<] permalink fedilink source parent hideshow 4 child comments replies: [–] Deceptichum@quokk.au 6 points 8 months ago (2 children) Damn someone made Ogham script into a coding lang? permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 8 months ago (1 child) The fuck I'm looking at here? permalink fedilink source parent hideshow 1 child comment replies: [–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent [–] squaresinger@lemmy.world 2 points 8 months ago Looks like a bad LLM's try at drawing ASCII fish. permalink fedilink source parent [–] yetAnotherUser@lemmy.ca 10 points 8 months ago (2 children) That isn't a bad language. It's pretty simple and it serves a cool purpose, which is to convey the power of a Turing machine. Now this is a bad programming language. permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 3 points 8 months ago (1 child) Malbolge is great for replying to anyone who claims that since programming languages are Turing-complete, any one of them is fit for the job. permalink fedilink source parent hideshow 1 child comment replies: [–] sukhmel@programming.dev 2 points 8 months ago You can transpile from C to Malbolge and then run it (this will probably take forever for most of C programs). I thought it can be used for obfuscation, and sure enough Wiki already states that: Hisashi Iizawa et al. also proposed a guide for programming in Malbolge for the purpose of obfuscation for software protection permalink fedilink source parent [–] msage@programming.dev 2 points 8 months ago JS? runs for cover permalink fedilink source parent [–] anzo@programming.dev 4 points 8 months ago (1 child) I love Python because it's actually the second best language to do anything. For concurrency, Go is better. Also, you are terribly naive to judge a language only by its syntax. permalink fedilink source parent hideshow 1 child comment replies: [+] NEILSON_MANDALA@lemmy.world 2 points 8 months ago* (last edited 8 months ago) [removed by mod] permalink fedilink source parent
[–] Axolotl_cpp@feddit.it 33 points 8 months ago* (10 children) This gotta be ragebait, everyone know that a language isn't bad or good only for a single thing, hell there is no bad language, the reason why "python is better" is because you use it to make kids learn how to program, this is a good use, every other use is just...not good since it's slow as hell and the indented syntax make it hell to write with but i'il gave you that python > go for making kids learn. permalink fedilink source parent hideshow 10 child comments replies: [–] DrCake@lemmy.world 18 points 8 months ago (8 children) There’s no bad language you say? https://en.wikipedia.org/wiki/Brainfuck permalink fedilink source parent hideshow 8 child comments replies: [–] Danitos@reddthat.com 33 points 8 months ago* (last edited 8 months ago) (4 children) Don't you fucking dare speak badly of my beloved Brainfuck In fact, take this fully functional Fibonacci sequence generator I did some time ago, so you can repent from your blasphemy by looking at its beauty. ;>;>;<<[->>[->+>+<<]>>[<<+>>-]<<<[>>+<<-]>[<+>-]>[<+>-]<:<<] permalink fedilink source parent hideshow 4 child comments replies: [–] Deceptichum@quokk.au 6 points 8 months ago (2 children) Damn someone made Ogham script into a coding lang? permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 8 months ago (1 child) The fuck I'm looking at here? permalink fedilink source parent hideshow 1 child comment replies: [–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent [–] squaresinger@lemmy.world 2 points 8 months ago Looks like a bad LLM's try at drawing ASCII fish. permalink fedilink source parent [–] yetAnotherUser@lemmy.ca 10 points 8 months ago (2 children) That isn't a bad language. It's pretty simple and it serves a cool purpose, which is to convey the power of a Turing machine. Now this is a bad programming language. permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 3 points 8 months ago (1 child) Malbolge is great for replying to anyone who claims that since programming languages are Turing-complete, any one of them is fit for the job. permalink fedilink source parent hideshow 1 child comment replies: [–] sukhmel@programming.dev 2 points 8 months ago You can transpile from C to Malbolge and then run it (this will probably take forever for most of C programs). I thought it can be used for obfuscation, and sure enough Wiki already states that: Hisashi Iizawa et al. also proposed a guide for programming in Malbolge for the purpose of obfuscation for software protection permalink fedilink source parent [–] msage@programming.dev 2 points 8 months ago JS? runs for cover permalink fedilink source parent
[–] DrCake@lemmy.world 18 points 8 months ago (8 children) There’s no bad language you say? https://en.wikipedia.org/wiki/Brainfuck permalink fedilink source parent hideshow 8 child comments replies: [–] Danitos@reddthat.com 33 points 8 months ago* (last edited 8 months ago) (4 children) Don't you fucking dare speak badly of my beloved Brainfuck In fact, take this fully functional Fibonacci sequence generator I did some time ago, so you can repent from your blasphemy by looking at its beauty. ;>;>;<<[->>[->+>+<<]>>[<<+>>-]<<<[>>+<<-]>[<+>-]>[<+>-]<:<<] permalink fedilink source parent hideshow 4 child comments replies: [–] Deceptichum@quokk.au 6 points 8 months ago (2 children) Damn someone made Ogham script into a coding lang? permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 8 months ago (1 child) The fuck I'm looking at here? permalink fedilink source parent hideshow 1 child comment replies: [–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent [–] squaresinger@lemmy.world 2 points 8 months ago Looks like a bad LLM's try at drawing ASCII fish. permalink fedilink source parent [–] yetAnotherUser@lemmy.ca 10 points 8 months ago (2 children) That isn't a bad language. It's pretty simple and it serves a cool purpose, which is to convey the power of a Turing machine. Now this is a bad programming language. permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 3 points 8 months ago (1 child) Malbolge is great for replying to anyone who claims that since programming languages are Turing-complete, any one of them is fit for the job. permalink fedilink source parent hideshow 1 child comment replies: [–] sukhmel@programming.dev 2 points 8 months ago You can transpile from C to Malbolge and then run it (this will probably take forever for most of C programs). I thought it can be used for obfuscation, and sure enough Wiki already states that: Hisashi Iizawa et al. also proposed a guide for programming in Malbolge for the purpose of obfuscation for software protection permalink fedilink source parent
[–] Danitos@reddthat.com 33 points 8 months ago* (last edited 8 months ago) (4 children) Don't you fucking dare speak badly of my beloved Brainfuck In fact, take this fully functional Fibonacci sequence generator I did some time ago, so you can repent from your blasphemy by looking at its beauty. ;>;>;<<[->>[->+>+<<]>>[<<+>>-]<<<[>>+<<-]>[<+>-]>[<+>-]<:<<] permalink fedilink source parent hideshow 4 child comments replies: [–] Deceptichum@quokk.au 6 points 8 months ago (2 children) Damn someone made Ogham script into a coding lang? permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 8 months ago (1 child) The fuck I'm looking at here? permalink fedilink source parent hideshow 1 child comment replies: [–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent [–] squaresinger@lemmy.world 2 points 8 months ago Looks like a bad LLM's try at drawing ASCII fish. permalink fedilink source parent
[–] Deceptichum@quokk.au 6 points 8 months ago (2 children) Damn someone made Ogham script into a coding lang? permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 8 months ago (1 child) The fuck I'm looking at here? permalink fedilink source parent hideshow 1 child comment replies: [–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent
[–] ICastFist@programming.dev 3 points 8 months ago (1 child) The fuck I'm looking at here? permalink fedilink source parent hideshow 1 child comment replies: [–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent
[–] Deceptichum@quokk.au 6 points 8 months ago Ogham Script, an old Irish alphabet permalink fedilink source parent
[–] squaresinger@lemmy.world 2 points 8 months ago Looks like a bad LLM's try at drawing ASCII fish. permalink fedilink source parent
[–] yetAnotherUser@lemmy.ca 10 points 8 months ago (2 children) That isn't a bad language. It's pretty simple and it serves a cool purpose, which is to convey the power of a Turing machine. Now this is a bad programming language. permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 3 points 8 months ago (1 child) Malbolge is great for replying to anyone who claims that since programming languages are Turing-complete, any one of them is fit for the job. permalink fedilink source parent hideshow 1 child comment replies: [–] sukhmel@programming.dev 2 points 8 months ago You can transpile from C to Malbolge and then run it (this will probably take forever for most of C programs). I thought it can be used for obfuscation, and sure enough Wiki already states that: Hisashi Iizawa et al. also proposed a guide for programming in Malbolge for the purpose of obfuscation for software protection permalink fedilink source parent
[–] SlurpingPus@lemmy.world 3 points 8 months ago (1 child) Malbolge is great for replying to anyone who claims that since programming languages are Turing-complete, any one of them is fit for the job. permalink fedilink source parent hideshow 1 child comment replies: [–] sukhmel@programming.dev 2 points 8 months ago You can transpile from C to Malbolge and then run it (this will probably take forever for most of C programs). I thought it can be used for obfuscation, and sure enough Wiki already states that: Hisashi Iizawa et al. also proposed a guide for programming in Malbolge for the purpose of obfuscation for software protection permalink fedilink source parent
[–] sukhmel@programming.dev 2 points 8 months ago You can transpile from C to Malbolge and then run it (this will probably take forever for most of C programs). I thought it can be used for obfuscation, and sure enough Wiki already states that: Hisashi Iizawa et al. also proposed a guide for programming in Malbolge for the purpose of obfuscation for software protection permalink fedilink source parent
[–] anzo@programming.dev 4 points 8 months ago (1 child) I love Python because it's actually the second best language to do anything. For concurrency, Go is better. Also, you are terribly naive to judge a language only by its syntax. permalink fedilink source parent hideshow 1 child comment replies: [+] NEILSON_MANDALA@lemmy.world 2 points 8 months ago* (last edited 8 months ago) [removed by mod] permalink fedilink source parent
[+] NEILSON_MANDALA@lemmy.world 2 points 8 months ago* (last edited 8 months ago) [removed by mod] permalink fedilink source parent
[–] racketlauncher831@lemmy.ml 5 points 8 months ago (1 child) So much bloat. So many boilerplates. Just package main fuck you() {} is enough. permalink fedilink source parent hideshow 1 child comment replies: [–] m33@lemmy.zip 2 points 8 months ago Could you please file a PR ? 🤣 permalink fedilink source parent
[–] m33@lemmy.zip 2 points 8 months ago Could you please file a PR ? 🤣 permalink fedilink source parent
[–] wildbus8979@sh.itjust.works 9 points 8 months ago* (last edited 8 months ago) (6 children) Python is demonstrably worst for the planet than Go. https://www.iro.umontreal.ca/~mignotte/IFT2425/Documents/RankingProgrammingLanguagesByEnergyEfficiency.pdf permalink fedilink source parent hideshow 6 child comments replies: [–] addie@feddit.uk 36 points 8 months ago (4 children) Interesting, but misguided, I think. If you've selected Python as your programming language, then your problem is likely either to do some text processing, a server-side lambda, or to provide a quick user interface. If you're using it for eg. Numpy, then you're really using Python to load and format some data before handing it to a dedicated maths library for evaluation. If you've selected Go as your programming language, then your problem is likely to be either networking related - perhaps to provide a microservice that mediates between network and database - or orchestration of some kind. Kubernetes is the famous one, but a lot of system configuration tools use it to manipulate a variety of other services. What these uses have in common is that they're usually disk- or network- limited and spend most of their time waiting, so it doesn't matter so much if they're not super efficient. If you are planning to peg the CPU at 100% for hours on end, you wouldn't choose them - you'd reach for C / C++ / Rust. Although Swift does remarkably well, too. Seeing how quickly you can solve Fannkuch-Redux using Python is a bit like seeing how quickly you can drive nails into a wall using a screwdriver. Interesting in its way, but you'd be better picking up the correct tool in the first place. permalink fedilink source parent hideshow 4 child comments replies: [–] pupbiru@aussie.zone 6 points 8 months ago (3 children) further to that, “demonstrably worse for the planet” i’d like to debate: considering a huge amount of climate science is done with python-based tools because they’re far easier for researchers to pick up and run with - ie just get shit done rather than write good/clean code - i’d argue the benefit of python to the planet is in the outputs it enables for significantly reduced (or in many cases, perhaps outright enabled) input costs permalink fedilink source parent hideshow 3 child comments replies: [–] xep@discuss.online 4 points 8 months ago* (1 child) If you need to optimize for performance, a common approach in Python is to extend it in C/C++. It's quite easy to do. Many high performance modules in Python are written in C/C++. It's also easy to embed Python in a C/C++ program, should you feel the need to add some scripting support to it. A very nice feature of Python, in my opinion. permalink fedilink source parent hideshow 1 child comment replies: [–] pupbiru@aussie.zone 3 points 8 months ago absolutely! similar is true of node in v8 (though python imo is far more mature in this regard) and probably most other languages exactly why things like numpy are so popular: yeah python is slow, but python is just the orchestrator permalink fedilink source parent [–] bryndos@fedia.io 2 points 8 months ago Compare it to the likely alternative for the task/person, probably R or even MS excel in many cases i'd guess. The alternatives should ideally be based on empirical observation of the population. The marginal saving of choosing a higher efficiency than python might look a lot lower. permalink fedilink source parent [+] NEILSON_MANDALA@lemmy.world -29 points 8 months ago* (last edited 8 months ago) [removed by mod] permalink fedilink source parent
[–] addie@feddit.uk 36 points 8 months ago (4 children) Interesting, but misguided, I think. If you've selected Python as your programming language, then your problem is likely either to do some text processing, a server-side lambda, or to provide a quick user interface. If you're using it for eg. Numpy, then you're really using Python to load and format some data before handing it to a dedicated maths library for evaluation. If you've selected Go as your programming language, then your problem is likely to be either networking related - perhaps to provide a microservice that mediates between network and database - or orchestration of some kind. Kubernetes is the famous one, but a lot of system configuration tools use it to manipulate a variety of other services. What these uses have in common is that they're usually disk- or network- limited and spend most of their time waiting, so it doesn't matter so much if they're not super efficient. If you are planning to peg the CPU at 100% for hours on end, you wouldn't choose them - you'd reach for C / C++ / Rust. Although Swift does remarkably well, too. Seeing how quickly you can solve Fannkuch-Redux using Python is a bit like seeing how quickly you can drive nails into a wall using a screwdriver. Interesting in its way, but you'd be better picking up the correct tool in the first place. permalink fedilink source parent hideshow 4 child comments replies: [–] pupbiru@aussie.zone 6 points 8 months ago (3 children) further to that, “demonstrably worse for the planet” i’d like to debate: considering a huge amount of climate science is done with python-based tools because they’re far easier for researchers to pick up and run with - ie just get shit done rather than write good/clean code - i’d argue the benefit of python to the planet is in the outputs it enables for significantly reduced (or in many cases, perhaps outright enabled) input costs permalink fedilink source parent hideshow 3 child comments replies: [–] xep@discuss.online 4 points 8 months ago* (1 child) If you need to optimize for performance, a common approach in Python is to extend it in C/C++. It's quite easy to do. Many high performance modules in Python are written in C/C++. It's also easy to embed Python in a C/C++ program, should you feel the need to add some scripting support to it. A very nice feature of Python, in my opinion. permalink fedilink source parent hideshow 1 child comment replies: [–] pupbiru@aussie.zone 3 points 8 months ago absolutely! similar is true of node in v8 (though python imo is far more mature in this regard) and probably most other languages exactly why things like numpy are so popular: yeah python is slow, but python is just the orchestrator permalink fedilink source parent [–] bryndos@fedia.io 2 points 8 months ago Compare it to the likely alternative for the task/person, probably R or even MS excel in many cases i'd guess. The alternatives should ideally be based on empirical observation of the population. The marginal saving of choosing a higher efficiency than python might look a lot lower. permalink fedilink source parent
[–] pupbiru@aussie.zone 6 points 8 months ago (3 children) further to that, “demonstrably worse for the planet” i’d like to debate: considering a huge amount of climate science is done with python-based tools because they’re far easier for researchers to pick up and run with - ie just get shit done rather than write good/clean code - i’d argue the benefit of python to the planet is in the outputs it enables for significantly reduced (or in many cases, perhaps outright enabled) input costs permalink fedilink source parent hideshow 3 child comments replies: [–] xep@discuss.online 4 points 8 months ago* (1 child) If you need to optimize for performance, a common approach in Python is to extend it in C/C++. It's quite easy to do. Many high performance modules in Python are written in C/C++. It's also easy to embed Python in a C/C++ program, should you feel the need to add some scripting support to it. A very nice feature of Python, in my opinion. permalink fedilink source parent hideshow 1 child comment replies: [–] pupbiru@aussie.zone 3 points 8 months ago absolutely! similar is true of node in v8 (though python imo is far more mature in this regard) and probably most other languages exactly why things like numpy are so popular: yeah python is slow, but python is just the orchestrator permalink fedilink source parent [–] bryndos@fedia.io 2 points 8 months ago Compare it to the likely alternative for the task/person, probably R or even MS excel in many cases i'd guess. The alternatives should ideally be based on empirical observation of the population. The marginal saving of choosing a higher efficiency than python might look a lot lower. permalink fedilink source parent
[–] xep@discuss.online 4 points 8 months ago* (1 child) If you need to optimize for performance, a common approach in Python is to extend it in C/C++. It's quite easy to do. Many high performance modules in Python are written in C/C++. It's also easy to embed Python in a C/C++ program, should you feel the need to add some scripting support to it. A very nice feature of Python, in my opinion. permalink fedilink source parent hideshow 1 child comment replies: [–] pupbiru@aussie.zone 3 points 8 months ago absolutely! similar is true of node in v8 (though python imo is far more mature in this regard) and probably most other languages exactly why things like numpy are so popular: yeah python is slow, but python is just the orchestrator permalink fedilink source parent
[–] pupbiru@aussie.zone 3 points 8 months ago absolutely! similar is true of node in v8 (though python imo is far more mature in this regard) and probably most other languages exactly why things like numpy are so popular: yeah python is slow, but python is just the orchestrator permalink fedilink source parent
[–] bryndos@fedia.io 2 points 8 months ago Compare it to the likely alternative for the task/person, probably R or even MS excel in many cases i'd guess. The alternatives should ideally be based on empirical observation of the population. The marginal saving of choosing a higher efficiency than python might look a lot lower. permalink fedilink source parent
[+] NEILSON_MANDALA@lemmy.world -29 points 8 months ago* (last edited 8 months ago) [removed by mod] permalink fedilink source parent
[–] vivalapivo@lemmy.today 3 points 8 months ago Haven't python reintroduced the infix notation? That's incredibly exhausting and lame. A simple fuck you would look much fancier permalink fedilink source parent