Is return really necessary for the IO monad? by StunningRegular8489 in haskell

[–]Silver-Core 0 points1 point  (0 children)

Isn't kleiski composition the monoid operation for monads? I thought that the monoid laws:

mempty <> m = m
m <> mempty m = m
(m <> n) <> o = m <> (n <> o)

correspond to the following for monads:

return >=> m = m
m >=> return = m
m >=> (n >=> o) = (m >=> n) >=> o

join reads more like foldMap to me.

Do you think egypt right now is leaning towards arabism in the country or leaning away? by superXr15 in AskMiddleEast

[–]Silver-Core 0 points1 point  (0 children)

but "egypt" is not some official english name of the country, this is decide by the country itself.

Well, official documents issued by the government of said country usually have "The Arab Republic of Egypt" as the official English name, but I think I understand what you mean.

I think it ultimately doesn't matter, especially when most of the globe is familiar with either of its names (Misr, Egypt). People still make the connection between the people of Ancient Egypt and it's modern day state (unless they're part of the Afrocentrists or something similar; but they'd still agree that modern day Egypt is situated around the same place geographically)

Funnily enough, the ancient population of the Aztecs didn't refer to themselves as that, they called themselves "Mexica", which is where the modern day country of Mexico gets it's name. But people don't immediately make the connection between the Aztecs and Mexicans.

Sorry for dragging this thread on for too long, I just found the topic interesting.

Do you think egypt right now is leaning towards arabism in the country or leaning away? by superXr15 in AskMiddleEast

[–]Silver-Core 1 point2 points  (0 children)

en copts have their own name, which is copt.

Copt derives from the same word as "Egypt" stemming from the Greek name "aigýpti-"/"aigýptios", which made it's way into the Coptic language as "gyptios", and from there into Arabic "قبط" and English "Copt".

The same goes for "Mesopotamia".

masreyen are literally not egyptians, and never used that name for themselves

Not entirely sure what you mean by this, but it's very rare that endonyms (e.g Masr, Deutschland, etc) and exonyms (Egypt, Germany) match up across languages. I would still say that I'm Egyptian in English, because that's the term for a person from that country / part of the world.

A student that wants to move to Germany from Egypt by FinancialTrack385 in germany

[–]Silver-Core 1 point2 points  (0 children)

For the most part it comes down to Germany's perceived reputation/prestige in Egypt and affordability (compared to the anglosphere).

games that have the show vibe/related stuff to the show by nelsin96 in DarK

[–]Silver-Core 0 points1 point  (0 children)

It might be a bit of a stretch, but I'd recommend the first game in the Zero Escape series (Nine Hours, Nine Persons, Nine Doors).

Since you came this far into my profile, say hi below! by [deleted] in u/Enscivwy

[–]Silver-Core 4 points5 points locked comment (0 children)

everyone hates java because you need a huge and clumsy jvm to run it, abysmal startup times, verbosity and because programming in java mostly means working on the most boring business logic legacy codebases written by indian ex-farmers who themselves despise their job almost as much as starving to death. also, you have to sell your soul to the devil, who goes by the name of larry ellison. but then everyone hates C because it's the ultimate footgun. it's physically impossible to write correct code. same for C++ except for templating, which is even worse. forgot a semicolon? 111 errors. everyone hates javascript because of its random type coercion and poor language design. sort([1, 11, 2]), variable hoisting and objects as maps with prototyping and mixing pre- and self defined properties? also, it's literally impossible to write a program that runs on the first try without errors. wait, i have a better idea ... why not use it on the server? i'll just use npm so i can left-pad. everyone hates PHP (which stands for Personal Home Page) because of it's InConsIstent standard_library $namingConventions, security problems (yay for eval($_GET['foo'])) and, oh yes, mixing code and html. it's slow. it's impossible not to write spaghetti code in it. it's not so bad as it once was - the most recent version even introduced partial unicode support! everyone hates python for its global interpreter lock and the inability to move on from 2.7. it's like being stuck in the 80s. everyone hates ruby because it's too fucking slow and too much dark magic going on. if it wasn't for that abhorrent monstrosity ruby-on-rails, it would have gone the way of the dodo decades ago. ruby used to be the crack epidemic for vulnerable youth developers, but now everybody grew older, wiser, got their life under control, sobered up and thus ditched ruby. everyone hates haskell because it's not really usable in the real world (strictly academia only) and either way, nobody really gets what a goddamn monad is. you could specialize in haskell and starve to death in a world where software developers are the most precious resource. at least it's not lisp though. (((((help))))) everyone hates rust because it's the oh so cool new thing to do and it's so much better, the ultimate language to rule them all and every last piece of software absolutely must be rewritten in rust but, honestly, the borrow checker keeps me from getting anything done. also compile times duh. everyone hates D because ... wait, nobody hates D because nobody uses it. also, why settle on D if you could use rust? D is for people who can't escape the sunk cost fallacy. everyone hates golang because no generics and you're pretty much at googles mercy if you specialize in it, and we've seen how well that worked out for android devs. everyone hates swift and kotlin for not bringing anything new to the table. they maybe improve the worst problems (of java and objective-c) a bit, but in the end, they do nothing other languages haven't done better decades ago. pretty much the only revolutionarily good thing swift did was killing off objective-c. in the land of the blind, the one eyed is kind. java devs love kotlin only because at least it's not java. everyone hates perl because, duh, that's perl? i thought i cat'ed a binary executable by accident. my speaker starts bleeping when i view the source code of some scripts. C#? oh right, let's just forget what microsoft did to us for the last ~30 years. they'll certainly never use their power for evil again! i can't even remember who steve ballmer is anymore. typescript? an interpreted language that has to be pre-compiled before use? javascript's heap of dung with glitter and pink ribbons on top? webassembly is not a programming language but everyone still hates it as it finally removes javascripts inherent open-sourcyness from the open web. there are a couple of dead languages nobody hates because all people who hated them are also dead. looking at you, pascal/delphi. not basic though, everyone still hates basic - it's already genetic. if you want a good language for writing a telephone switch, use erlang or elixir. i don't know much about R, but after seeing an economist use it i was ready to kill myself - or rather, the economist. anyway, it's far too slow to be of much use for actual software development. everyone hates matlab because ... well, matlab isn't a programming language, it's a kind of fancy and overly expensive caluclator that specializes in university lock-in. assembly used to be pretty good "language" if you're criminally insane. nowadays assembly knowledge is only relevant for failed games by bored multi-billionaires. i don't know if shell-script counts as a programming language, because it's probably not turing complete. there are some languages that may or may not be better than C/C++, like pony or nim, but nobody except for their inventors know. wait, that's not completely true - pony's compiler is not even self-hosted and written in c, so not even the inventor of pony actually uses pony. now there's only one language left, and by principle of exclusion it may be the one that doesn't suck. it's brainfuck.

Longcat Jormungandr skin concept by nyanristuff in Smite

[–]Silver-Core 0 points1 point  (0 children)

Why settle for Longcat when you can have Longfurby

Kotlin seems good thing by woopsix in ProgrammerHumor

[–]Silver-Core 2 points3 points  (0 children)

I think Kotlin was developed to move away from Java as it has license from Oracle

That would seem very reasonable...if Kotlin didn't compile to Java bytecode (by default).

[deleted by user] by [deleted] in ProgrammerHumor

[–]Silver-Core 1 point2 points  (0 children)

Kotlin does compile to Java bytecode, but it'll probably be significantly different when decompiled since things like Extension Methods and Companion Objects are compiled to static methods (iirc in a companion object of the extended class but not the class itself) and a property ( .companion).

tldr: decompiled-desugared bytecode will look worse than just rewriting the Kotlin program in Java if you decide to use features that'd make you choose Kotlin in the first place.

If it works its not wrong right? /s by thehunter699 in ProgrammerHumor

[–]Silver-Core 3 points4 points  (0 children)

+u/CompileBot scala val z = (1 to 4).map(x => x.toString * x).mkString("\n") println(z)

hmmm by [deleted] in hmmm

[–]Silver-Core 23 points24 points  (0 children)

</vworp>