yithar7153_2

"Strongly Typed"

Aug 19th, 2016
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.69 KB | None | 0 0
  1. <password2> functional code should do somethign
  2. <password2> i dont know why i bothered talking on here
  3. <panji> You mustn't be so negative! :D
  4. * rbern (~rbern@unaffiliated/rbern) has joined
  5. <password2> well I am
  6. <password2> deal with it
  7. <pulse> i'm coding something in C++
  8. <panji> bang your head against the wall then :P The article pulse posted is great for dealing with your problem - but it takes work and persistance to edit that amount of code
  9. <pulse> feels quite weird after years of JS
  10. <pulse> C++ is so much saner
  11. <velco> heh
  12. <pulse> it's also quite ludicrous and technical etc. but it feels much more, err, stable
  13. <merijn> pulse: Which honestly says more about JS than C++ >.>
  14. <password2> yeah
  15. * Bernzel ([email protected]) has joined
  16. <password2> well strongly typed is usefull
  17. * oxffff ([email protected]) has joined
  18. <pulse> i can imagine the shock of someone who only knows JS though
  19. <pulse> and then starts doing C++
  20. <password2> it removes a bunch of ambiguity
  21. <password2> i started with c++
  22. <pulse> i started with VB3 >_x
  23. <merijn> C++ is ok in that I can express what I want in it. But dear jesus does it require insane hacks
  24. <pulse> yeah, the other thing is that it requires way more coding
  25. <pulse> but that's a given
  26. <oxffff> VB for life
  27. <password2> but thats counteracted by better IDEs
  28. <pulse> oxffff, \m/
  29. <merijn> password2: Not really
  30. <merijn> password2: None of the stuff I was referring to is helped by IDEs
  31. <password2> header files are very nice
  32. <pulse> i still find templates confusing as fuck
  33. <password2> more coding
  34. <pulse> i was looking at some template code i wrote years ago
  35. * cyborg-one ([email protected]) has joined
  36. <pulse> i feel i was smarter in the past lol
  37. <merijn> pulse: You should see the template horrors I've written :)
  38. <password2> yeah , if you have a proper ide then it would autocomplete a shit laod
  39. <pulse> merijn, ugh :p
  40. <oxffff> Anyone still use NetBeans?
  41. <pulse> oxffff, i don't
  42. <pulse> i avoid java
  43. <panji> Our school wants us to
  44. <pulse> netbeans is not that bad though, aside from being sow
  45. <pulse> slow*
  46. <merijn> password2: My problem is not autocompletion, my problem is having to write template horrors to make C++ do what I want :)
  47. <Yithar> I've been using JS lately and I prefer OCaml much more even though they're both functional, because OCaml is strongly typed; I personally dislike languages with weak typing
  48. * oxffff has quit (Read error: Connection reset by peer)
  49. <password2> I think i never needed to write a template
  50. * oxffff ([email protected]) has joined
  51. <password2> I have once written one
  52. <pulse> templates are powerful as hell
  53. <merijn> There's no such thing as weak typing >.<
  54. <pulse> but they're also super confusing
  55. <password2> their powerful shure
  56. <password2> but eh
  57. <merijn> JS is a unit typed language >.>
  58. * jerit ([email protected]) has joined
  59. <velco> of course there is such thing as weak typing
  60. <pulse> merijn, weak == loosely typed
  61. <velco> x = 1; x++; x = "1"; x++
  62. <merijn> pulse: That's also not a technical term and doesn't mean a thing
  63. <velco> in JS
  64. <merijn> pulse: It's basically a term people use to refer to a vaguely defined set of behaviours with no real specification
  65. <pulse> merijn, it doesn't matter if it's a technical term, what matters is that it gets a point across
  66. <velco> or maybe I mean "x += 1"
  67. <oxffff> Who here took programming language in college and ended up getting good score but don't recall how
  68. <merijn> It's like people calling python "strongly typed", first of strongly typed doesn't even have a meaning and second it has runtime tagging, not types
  69. <mrkat> what's the difference?
  70. <velco> of cousre is has a meaning: it mean no (or relatively less) implicit type conversions
  71. <mrkat> between "tagging"and types
  72. <merijn> mrkat: Types are static properties of programming language text. Runtime tags are dynamic properties
  73. * panji has quit (Read error: Connection reset by peer)
  74. <velco> tags are are at most an implementation detail
  75. <pulse> merijn, which makes python is dynamically typed...
  76. <mrkat> you mean in python, variables don't have types; objects have types
  77. <mrkat> ?
  78. <pulse> -is
  79. <merijn> mrkat: Types define static behaviour, things that must be true over ALL possible execution paths.
  80. <merijn> pulse: Python is unit typed. i.e. it has a single unique type and every expression has that type
  81. * pulse scratches head
  82. <velco> that's not true; a type is a set of values and operations on them
  83. <velco> execution paths are completely irrelevant to types
  84. <pulse> i'm pretty sure i was in college once and they told me python is dynamically typed
  85. <merijn> velco: Types can be sets of values, operations are irrelevant
  86. <pulse> either they were lying or you are :D
  87. <pulse> which is it
  88. <password2> stop trying to be correct , its a pointless egotistic excercise
  89. <merijn> velco: Not all type are sets of values
  90. <velco> merijn: they definitely are; perhaps an empty set
  91. <merijn> velco: Consider, parametric (i.e., generic) types
  92. * nikivi ([email protected]) has joined
  93. <merijn> velco: Such as "Maybe" in Haskell or "List" in Java. Those require another type argument to be treated as type that are sets of values
  94. <velco> does not change anything the concrete notation you use to denote a set of values
  95. * glad ([email protected]) has joined
  96. * IntoxicatedHippo has quit (Ping timeout: 258 seconds)
  97. * Coldblackice (~anonz@unaffiliated/coldblackice) has joined
  98. <merijn> password2: I don't try to be correct. Type theory is my favourite field and the consistent terminology abuse committed by programmers helps no one when people end up trying to have a serious conversation about type systems
  99. <Yithar> hmm well this has made me look up my notes lol
  100. <Yithar> https://drive.google.com/file/d/0B1xLFrAl-fBVX3BEX3N5RFVNOFE/view?usp=sharing
  101. <oxffff> Folks, shall we have a fight about vim vs emacs vs nano
  102. <password2> consistent , unlike some data types
  103. <password2> and being a smarty pants helps even less
  104. * IntoxicatedHippo ([email protected]) has joined
  105. <rindolf> oxffff: what about Sublime Text? Kate? Gedit? JOE?
  106. <merijn> Yithar: Well, since you're notes are quoting Pierce your class was probably pretty decent
  107. <pulse> oxffff, vs code for me
  108. <liste> oxffff: ed is the standard editor
  109. * badon has quit (Ping timeout: 264 seconds)
  110. <password2> terminology abuse is a nice way to bitch about the wording people use and not what they are saying
  111. <oxffff> Well, they are all Gui environment
  112. <oxffff> Which are different from vim emacs and nano
  113. * haraigoshi has quit (Ping timeout: 260 seconds)
  114. <pulse> but i use gvim
  115. * liste is using Vim in a GUI environ,ment
  116. <liste> aka gvim
  117. <oxffff> Ed sounds bad luck for the doods
  118. * przemkovv-bis has quit (Ping timeout: 276 seconds)
  119. <oxffff> I try to forget its existence
  120. <ibouvousaime> rindolf: dang that sucks :(
  121. <pulse> notepad.exe is the most zen of all editors
  122. * mintograde ([email protected]) has joined
  123. <oxffff> Lol pulse trolls like a boss
  124. <pulse> :]
  125. <liste> wow, wine includes notepad
  126. <pulse> i learned from the best
  127. <liste> I know what I'll be using from now on
  128. <liste> though it's not the real notepad.exe :( wrong icon too
  129. <oxffff> Anybody votes for WordPad
  130. * csd_ ([email protected]) has joined
  131. * Krisostoomus has quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
  132. * panji ([email protected]) has joined
  133. <rindolf> Yithar: see http://perl.plover.com/yak/12views/samples/notes.html#sl-41 regarding 'strongly typed' vs. 'weakly typed'
  134. <Yithar> rindolf: hmm I see
  135. <pulse> rindolf, relativity? :P
  136. <pulse> "this apple is big"
  137. <pulse> you don't know how big this apple is either
  138. <pulse> unless i tell you i have a pear here that's 1/4 of the apple's size
  139. <rindolf> pulse: what?
  140. <oxffff> Lol
  141. <pulse> rindolf, i'm responding directly to the article you just posted
  142. * lightheaded ([email protected]) has joined
  143. <rindolf> pulse: I provided an anchor.
  144. * mrueg has quit (K-Lined)
  145. <pulse> strong and weak typing are relative
  146. <oxffff> A big apple is a big apple
  147. <pulse> just like big and small are relative
  148. <pulse> just like wide and short are relative
  149. <merijn> rindolf: That definition looks right to me :)
  150. <rindolf> merijn: which definition?
  151. <oxffff> big apple is smaller than small watermelon for sure
  152. <password2> your mom is absolute though
  153. <merijn> rindolf: "My conclusion is that 'strongly typed language' doesn't mean anything at all, and that if you hear someone say that some language is strongly typed, or some other language is weakly typed, you should assume that you don't know what they meant."
  154. <pulse> from wikipedia: "In computer programming, programming languages are often colloquially classified as strongly typed or weakly typed (loosely typed). These terms do not have a precise definition"
  155. * mrueg (~mrueg@gentoo/developer/mrueg) has joined
  156. <pulse> same way the term "big" doesn't have a precise definition
  157. <pulse> doesn't mean we should stop saying big
  158. * Tenso ([email protected]) has joined
  159. <password2> love does not have a precise description either
  160. <merijn> It should when you're busy discussing specific sizes of something
  161. <velco> yeah, if you disagree, assume th eopponent does not know anything, suuuure .....
  162. <password2> but we can use it in sentences non the less
  163. <oxffff> And yet we all feel loved. Life is truly magical
  164. * csd_ has quit (Ping timeout: 276 seconds)
  165. <rindolf> merijn: ah.
  166. * lightheaded has quit (Remote host closed the connection)
  167. * z3r0_ ([email protected]) has joined
  168. * z3r0_ has quit (Killed (Sigyn (Spam is off topic on freenode.)))
  169. * vassagus ([email protected]) has joined
Advertisement
Add Comment
Please, Sign In to add comment