|
review changes to your languages keywords and fundamental types during your daily scrum
|
# ? Jan 6, 2015 04:22 |
|
|
# ? Jun 12, 2024 09:22 |
|
roger corman's lisp for win32, corman lisp, went open source today it is somewhat bitrotten but it is still a cool artifact of a time when people still had hopes and dreams for common lisp https://github.com/sharplispers/cormanlisp/ i was never a win32 guy but supposedly this was a really great implementation of CL on win32 if that's your bag
|
# ? Jan 6, 2015 04:42 |
|
sarehu posted:Did Rust really just officially decide to get rid of pointer-sized int/uint shortly after officially deciding to keep pointer-sized int/uint? yep. they are killing int/uint completely and will never have a default integer type; you will have to pick i32, i64, or isize yourself depending on use. apparently 64-bit integers just have cripplingly bad performance because of the extra cache usage, even on 64-bit machines; this means that there's no acceptable default type, but you would expect int to be that type, and so there should not be an int. (this last bit is actually good reasoning. the performance argument is dumb, though)
|
# ? Jan 6, 2015 05:06 |
|
sarehu posted:Did Rust really just officially decide to get rid of pointer-sized int/uint shortly after officially deciding to keep pointer-sized int/uint? Any time you get confused about rapid changes or odd decision-making just remember that Ruby programmers are working on it
|
# ? Jan 6, 2015 05:07 |
|
triple sulk posted:Any time you get confused about rapid changes or odd decision-making just remember that Ruby programmers are working on it ruby seems like a really bad language; why do people choose to use it? edit: granted I am a bad programmer and am not really experienced enough to call any language good or bad, but many of the more knowledgable posters dislike ruby and that's good enough for me. I just don't understand why people would start using ruby in the first place when more mature, and arguably better languages already exist. compuserved fucked around with this message at 05:30 on Jan 6, 2015 |
# ? Jan 6, 2015 05:23 |
|
compuserved posted:ruby seems like a really bad language; why do people choose to use it? rails.
|
# ? Jan 6, 2015 05:31 |
|
also scripting python, ruby, and perl are all really great for replacing shell scripts while you do horrible sysadmin tasks
|
# ? Jan 6, 2015 05:31 |
|
Notorious b.s.d. posted:rails. lmao, what a surprise that trains are involved
|
# ? Jan 6, 2015 05:36 |
|
compuserved posted:lmao, what a surprise that trains are involved
|
# ? Jan 6, 2015 05:42 |
|
Notorious b.s.d. posted:also scripting haskell's good at this too
|
# ? Jan 6, 2015 05:43 |
|
rjmccall posted:rust is really interesting to me because it stakes out a philosophical position on ownership and commits to it really, really hard. rust has unique ownership and borrowing, and if you aren't using them correctly you are Doing It Wrong and should feel bad. it is a huge imposition on users, and rust's answer is basically "look, you need to trust us, it's worth it if you get this right". and rust has committed to this on the back of basically an academic argument and very little practical experience with its consequences. there are an awful lot of practices and idioms based on implicit (usually temporary) shared ownership that have to be rethought to work under the rust model it doesn't commit to it, it forces the user to commit to it pretty hard.
|
# ? Jan 6, 2015 05:45 |
|
fart simpson posted:haskell's good at this too so is node and basically anything else that isn't compiled
|
# ? Jan 6, 2015 05:46 |
|
tef posted:it doesn't commit to it, it forces the user to commit to it pretty hard. thank you for your insight, i will apply your editorial suggestions to the second draft of my white paper
|
# ? Jan 6, 2015 05:54 |
|
rjmccall posted:thank you for your insight, i will apply your editorial suggestions to the second draft of my white paper np, happy to digest everything into pull quotes
|
# ? Jan 6, 2015 06:02 |
|
ah yes, haskell for scripting. let's use the language that had to invent its own make believe math for IO in order to do scripting. lmbo.
|
# ? Jan 6, 2015 06:04 |
|
rrrrrrrrrrrt posted:ah yes, haskell for scripting. let's use the language that had to invent its own make believe math for IO in order to do scripting. lmbo. i use it all the time for little scripts that i used to do in python. it works well and is much more pleasant to write
|
# ? Jan 6, 2015 06:38 |
|
rjmccall posted:yep. they are killing int/uint completely and will never have a default integer type; you will have to pick i32, i64, or isize yourself depending on use. apparently 64-bit integers just have cripplingly bad performance because of the extra cache usage, even on 64-bit machines; this means that there's no acceptable default type, but you would expect int to be that type, and so there should not be an int. (this last bit is actually good reasoning. the performance argument is dumb, though) this is a good thing if it means people use size_t, ptrdiff_t, uintptr_t (or renamed equivalents) this is a bad thing if there's also ssize_t, intptr_t, and other worthless typedefs (edit: how could i forget off64_t) floating around to confuse things also, how are they going to reconcile this with foreign interfaces (posix, etc.) that explicitly use 'int'? force the user to manually do their own typedef for int matching the abi? b0lt fucked around with this message at 08:49 on Jan 6, 2015 |
# ? Jan 6, 2015 08:45 |
|
isize and usize or something
|
# ? Jan 6, 2015 09:17 |
|
b0lt posted:also, how are they going to reconcile this with foreign interfaces (posix, etc.) that explicitly use 'int'? force the user to manually do their own typedef for int matching the abi? rust int didn't match c int anyway. no major platforms use a 64-bit c int. someone actually brought this up as a reason to use a fixed 32-bit int, and then somebody else pointed out that c's int was allowed to be as small as 16 bits (and often is in embedded systems) i suspect that this decision has a lot of ramifications for c interaction / portability / language evolution that they haven't really thought out, but it kindof depends on details about how they handle integer conversions that i won't pretend to know
|
# ? Jan 6, 2015 10:10 |
|
They have aliases for a lot of C integer types so for C FFI you just use libc::c_int instead, and hope you don't overflow inbetween conversions or whatever.
|
# ? Jan 6, 2015 12:51 |
|
too bad clay never gained any traction *sighs wistfully*
|
# ? Jan 6, 2015 14:48 |
|
afaik, clay pretty much died when we stole joe groff
|
# ? Jan 6, 2015 19:38 |
|
thanks, hitler
|
# ? Jan 6, 2015 19:53 |
|
Blotto Skorzany posted:thanks, hitler np
|
# ? Jan 6, 2015 23:58 |
|
fart simpson posted:i use it all the time for little scripts that i used to do in python. it works well and is much more pleasant to write I know some haskell and it has some cool stuff but I can't see it being nicer than python at scripting if you want an example to sell me here's a script for counting words in files. the biggest feature for me over whatever bash script thing is that it doesn't explode when it sees non-ASCII characters.
|
# ? Jan 7, 2015 00:45 |
|
im not a professional haskeller so theres probably some sick 1 liner version thats just >>='s and .'s and $'s and library functions that i dont know butcode:
|
# ? Jan 7, 2015 03:36 |
|
Flat Daddy posted:im not a professional haskeller so theres probably some sick 1 liner version thats just >>='s and .'s and $'s and library functions that i dont know but i might do it a similar way, although i think you're missing the feature where it prints out the most common words first. i'd add that by changing yours to: code:
|
# ? Jan 7, 2015 04:23 |
|
Symbolic Butt posted:I know some haskell and it has some cool stuff but I can't see it being nicer than python at scripting convert me back to python. this is a slightly simplified version of a thing i wrote recently to hook itunes into an automation system. the main features for me are it handles concurrent connections and keeps the connection alive and keeps accepting commands without dropping the connection after each received command. i initially tried to do this on python and there seemed to be a lot less explicit and a little more complex, and it was dropping the connection after each command and the obvious thing to keep it alive didn't seem to work code:
fart simpson fucked around with this message at 05:16 on Jan 7, 2015 |
# ? Jan 7, 2015 05:12 |
|
Really wish I had an excuse to do haskell
|
# ? Jan 7, 2015 05:39 |
|
actually the more i think about it the more i think haskell is probably better at scripts than programming in the large.
|
# ? Jan 7, 2015 05:57 |
|
MALE SHOEGAZE posted:Really wish I had an excuse to do haskell same, op
|
# ? Jan 7, 2015 06:05 |
|
rjmccall posted:yep. they are killing int/uint completely and will never have a default integer type; you will have to pick i32, i64, or isize yourself depending on use. apparently
|
# ? Jan 7, 2015 08:06 |
|
Bigints are gonna suck because you're gonna have to write like &x + &y if you don't want x and y to be consumed by the addition
|
# ? Jan 7, 2015 14:33 |
|
anybody got strong opinions about "seven languages in seven weeks"? https://pragprog.com/book/btlang/seven-languages-in-seven-weeks looks like it could be interesting/fun/educational
|
# ? Jan 7, 2015 15:50 |
|
anything put out by pragprog is guilty until proven innocent in my book
|
# ? Jan 7, 2015 15:52 |
|
prefect posted:anybody got strong opinions about "seven languages in seven weeks"? https://pragprog.com/book/btlang/seven-languages-in-seven-weeks it does look like that, but really, it will be seven tutorials stapled together. if you need a guiderail to push yourself into new languages, i guess it's cheaper than buying seven books, but a lot of what makes the book is going to be very introductory material. i've only given it a skim but my assumption seems to hold reasonably well from what i saw you'll get an introduction: getting the platform, running some hello world like code, a few larger exercises, but you won't really dig into what makes the language tick until you write something more complex really you could just spend the time picking up one language for a while, and then pick another. you'll learn more and there is plenty of time to do it. Blotto Skorzany posted:anything put out by pragprog is guilty until proven innocent in my book same. digging into the book Ruby — You'll probably get a taste but it has taken me months to understand why ruby and why code ends up looking that way Io — This is a toy language that never really saw much exposure outside of the Ruby/HN crowd. Prolog — This covers the very basics of prolog but nothing that will make it click. This is quite hard to do in a chapter. Scala — By the time you read this scala has probably changed sufficiently to make this dated. Erlang—Read Joe Armstrongs thesis instead. Clojure—Watch a Rich Hickey talk Haskell—Learn you a haskell online We have: class based smalltalk variant. protoype based smalltalk variant. logical programming language. class based java variant with functions and types. functional scripting language with actor concurrency. a lisp bolted to the jvm with immutable datatypes and multiple dispatch. i'd really ask what you're actually trying to achieve here, beyond maybe investing slightly more time in a language than just reading the wikipedia page i really don't like their typesetting and enjoyed my confirmation bias when it turned out i didn't like the copy much either
|
# ? Jan 7, 2015 17:15 |
|
tef posted:i'd really ask what you're actually trying to achieve here, beyond maybe investing slightly more time in a language than just reading the wikipedia page i'm not sure; it's going to be read by a book club, and i was wondering if i should join up, since it might be more motivating than trying to pick up new things in my spare time
|
# ? Jan 7, 2015 17:20 |
|
prefect posted:i'm not sure; it's going to be read by a book club, and i was wondering if i should join up, since it might be more motivating than trying to pick up new things in my spare time go for it
|
# ? Jan 7, 2015 17:31 |
|
It is just over 4 years old, can't speak for the content but a lot changes in that time. If you're going to read it just to open yourself up to new concepts then go for it.
|
# ? Jan 7, 2015 17:31 |
|
|
# ? Jun 12, 2024 09:22 |
|
prefect posted:looks like it could be interesting/fun/educational please fill in this form and i will recommend three languages to you to learn, and maybe some rough ideas of starter projects A] what languages do you know and can you rate your confidence on a scale of 0-10 0 - i know it exists to 3. i've written hello world, 5. i can edit it with the manual open constantly 7. i have graduated from the manual to stackoverflow and google 10 - i could get paid to write in it e.g ruby(7), python(10), C(5). the numbers are more to distinguish which ones you have spent more time using, rather than being a perfect total ordering B] how much time will you spend learning a new language, roughly in terms of number of afternoons C] Is this a hack "eh i'll hack for a bit but i'm not sure what i'd do with them" or an experiment "i have something to do but i wanna play in a new language" or neither D] what sort of things do you want to learn in a new language language features, for example: Actors/Concurrency, Alternate models of OO, immutability, higher order programming, type systems, fault tolerance, queries/pattern matching, etc algorithmic things: machine learning, ocr, search, compression, transformation coding skill: debugging, tracing, reverse engineering, documenting, analysis, design language, and formal approaches toolkits or libraries: gui programming, data processing E] any other constraints on time, area, interest, or otherwise F] do you develop on linux, osx, windows or do you have a particular target in mind, like mobile or browser or desktop? expect a response in a day or so i might need to think about it
|
# ? Jan 7, 2015 17:37 |