|
AlsoD posted:common haskell naming conventions: thanks i had got the ' confused with Julia i think, where it does denote (side) effects on the arguments
|
# ? May 2, 2014 00:35 |
|
|
# ? May 26, 2024 07:34 |
|
Valeyard posted:Erlang eh?
|
# ? May 2, 2014 00:48 |
|
pointsofdata posted:thanks i had got the ' confused with Julia i think, where it does denote (side) effects on the arguments even worse is matlab where ' is a post-fix function which transposes a matrix used like: X'*A*X
|
# ? May 2, 2014 00:51 |
|
AlsoD posted:people (you and shaggar) keep citing this triumphantly, have you watched the rest of the video (from 3-4 years ago) where he gives a little more context on that statement? they know
|
# ? May 2, 2014 00:52 |
|
AlsoD posted:even worse is matlab where ' is a post-fix function which transposes a matrix used like: X'*A*X well that one actually makes sense
|
# ? May 2, 2014 00:58 |
|
pointsofdata posted:thanks i had got the ' confused with Julia i think, where it does denote (side) effects on the arguments this is terrible misinformation it should be !
|
# ? May 2, 2014 01:08 |
|
i always thought ' denoted helper functions e.g.: func_with_accumulator n = func_with_accumulator' n acc:0
|
# ? May 2, 2014 11:51 |
|
Shinku ABOOKEN posted:i always thought ' denoted helper functions e.g.: this is what i was originally taught but i've not see it used much in the wild, people often just call these functions 'go' (see my post a few pages ago). I suppose it's somewhat context dependant - if it's defined local to the function in a where block then it wouldn't make much sense for it to be a strict version while its bad practice to make little helper functions like this be top-level in the module
|
# ? May 2, 2014 12:01 |
|
i am a sane person so i do not put 's in my function names.
|
# ? May 2, 2014 12:22 |
|
Bloody posted:i am a sane person so i do not put 's in my function names. next you'll be telling me that you don't use x₀ and x₁
|
# ? May 2, 2014 12:34 |
|
AlsoD posted:next you'll be telling me that you don't use x₀ and x₁ are there programming languages where you can use wacky non-ascii characters in function names?
|
# ? May 2, 2014 12:52 |
|
prefect posted:are there programming languages where you can use wacky non-ascii characters in function names? AlsoD posted:lmao if you thought haskell's operators were bad agda lets you put underscores in the name then call that function with arguments wherever underscores were radium wouldn't show it but those <[ are actually BLACK LEFT-POINTING SMALL TRIANGLE Agda gonadic io fucked around with this message at 13:02 on May 2, 2014 |
# ? May 2, 2014 12:57 |
|
here we go: it's not just acceptable in agda but common practice and baked into the standard library lmao gonadic io fucked around with this message at 13:26 on May 2, 2014 |
# ? May 2, 2014 13:13 |
|
prefect posted:are there programming languages where you can use wacky non-ascii characters in function names? You need a special keyboard for APL
|
# ? May 2, 2014 13:23 |
|
prefect posted:are there programming languages where you can use wacky non-ascii characters in function names? ಠ_ಠ pre:public class ಠ_ಠ { public static void main(String[] args) { System.out.println("ಠ_ಠ"); } }
|
# ? May 2, 2014 13:37 |
|
yeah i just tried it and javac won't let you name a class 💩
|
# ? May 2, 2014 13:38 |
|
AlsoD posted:here we go: And has it's own input method in the emacs mode :-) Have you actually managed to write a useful program in Agda yet?
|
# ? May 2, 2014 14:26 |
|
these sorts of features are nice when writing obfuscated c
|
# ? May 2, 2014 14:30 |
|
AlsoD posted:people (you and shaggar) keep citing this triumphantly, have you watched the rest of the video (from 3-4 years ago) where he gives a little more context on that statement? yes that's the one we're talking about. Haskell is useless cause its effects are very limited. But when you move a Haskell feature into c#, then it becomes very useful. So the only reason you should be using Haskell is to develop features for c#.
|
# ? May 2, 2014 14:33 |
|
Zombywuf posted:And has it's own input method in the emacs mode :-) I'm busy atm but I totally will finish off some sort of binary tree with lower and upper bounds
|
# ? May 2, 2014 14:47 |
|
lol at my company's it department pitching dreamhost unironically $500 million company lol
|
# ? May 2, 2014 15:07 |
|
Shinku ABOOKEN posted:someone mention network stacks on one of these threads berkeley was first to implement the concept of sockets as we know them today (or at least in their current forms? idr) and bsd became the most popular internet os for a while and a lot of people took networking code and concepts from them. 1993 rolls around, microsoft needs an ip implementation for windows nt, so they license one from a third party which was derived from bsd code. it shipped as another network system alongside ipx et al i'm sure someone like hackbunny knows exactly how much of that code still remains, iirc the windows license included an attribution to the university of california as late as xp e: it's literally about the origin of the code, the ip utilities like ping and ftp behave like the bsd versions and accept, possibly uniquely in windows, command line switches with dashes instead of slashes Quebec Bagnet fucked around with this message at 02:47 on May 3, 2014 |
# ? May 3, 2014 02:44 |
|
coffeetable posted:sulk have you done anything of note in haskell or c# or did you just watch that four minute video of spj and Form An Opinion do you really need to ask this about sulk
|
# ? May 3, 2014 02:45 |
|
chmods please posted:do you really need to ask this about sulk double sulk posted:Go gently caress yourself
|
# ? May 3, 2014 03:19 |
|
chmods please posted:berkeley was first to implement the concept of sockets as we know them today (or at least in their current forms? idr) and bsd became the most popular internet os for a while and a lot of people took networking code and concepts from them. this made me realize that im pretty sure the only command line tools ive ever used on windows are ip utilities because i couldnt think of any that didnt accept dash switches
|
# ? May 3, 2014 04:32 |
|
i've used a couple of the disk utilities but otherwise same, that's weird
|
# ? May 3, 2014 16:56 |
|
double sulk posted:haskell is a useless language deemed as such by its lead designer and exists solely for the purpose of improving more useful languages like c# actually the lead designer said it started out useless but isn't anymore. hth
|
# ? May 3, 2014 17:29 |
|
he has to say that or microsoft would fire him. hth
|
# ? May 3, 2014 19:25 |
|
ah ya the PR machine that is microsoft research
|
# ? May 3, 2014 19:30 |
|
they're not gonna pay him to work on something useless dumass. otoh its also not allowed to work on anything anyone cares about
|
# ? May 3, 2014 20:12 |
|
prefect posted:are there programming languages where you can use wacky non-ascii characters in function names? one of the early golang presentation vids has an example of how public/private is handled, where uppercase omega is public and lowercase omega is private or it may have been some other greek char i dont remember for sure anyway the vid was from an I/O i think
|
# ? May 3, 2014 20:15 |
|
im a dumb baby and i spend most of my time in imperative languages but using C# and even (gasp) python is nice sometimes because i get to whip out cool functional programming tricks that make some problems really natural to solve instead of writing like 50 lines of nested loops and fragile recursion argument for mediation? wait this is the pos lol if you program a computer
|
# ? May 3, 2014 20:20 |
|
just use langs that target the CLR and/or start with the letter c and arent clojure and you will be fine.
|
# ? May 3, 2014 20:28 |
|
Kevin Mitnick P.E. posted:he has to say that or microsoft would fire him. hth even if he would have been fired not for saying that in that video (which isn't true) that clearly wasn't his motivation for saying so
|
# ? May 3, 2014 20:30 |
|
bad opinions about langs: i use python for poo poo thats small or temporary or otherwise doesnt need reasonable certainty that it'll always work or handle errors correctly java at work cuz thats what my team uses c++11 for my own stuff that doesnt already fall in the python bucket c# is great but ive successfully avoided windows programming so far and arent in any hurry to start now
|
# ? May 3, 2014 20:34 |
|
Shaggar posted:yes that's the one we're talking about. Haskell is useless cause its effects are very limited. But when you move a Haskell feature into c#, then it becomes very useful. So the only reason you should be using Haskell is to develop features for c#. Or, to understand features in C# better. I don't want to learn Haskell and use it for toy projects because I think it is the best language for the job. I want to learn it because I think it will improve my code in languages which have some support for functional programming, like C# and Python.
|
# ? May 3, 2014 21:02 |
|
Kevin Mitnick P.E. posted:they're not gonna pay him to work on something useless dumass.
|
# ? May 3, 2014 21:55 |
|
nrook posted:Or, to understand features in C# better. I don't want to learn Haskell and use it for toy projects because I think it is the best language for the job. I want to learn it because I think it will improve my code in languages which have some support for functional programming, like C# and Python. why wouldnt you just use c# and python to get better in them?
|
# ? May 3, 2014 21:57 |
|
bc idiomatic c# and python don't look like haskell
|
# ? May 3, 2014 22:07 |
|
|
# ? May 26, 2024 07:34 |
|
Valeyard posted:why wouldnt you just use c# and python to get better in them? working in a lang that forces you to be functional is going to make you think about problems functionally instead of imperatively which 99.99% of the CS world approaches problems as so im in support of learning a toy lang for the purpose of bending your brain
|
# ? May 3, 2014 22:10 |