|
ahhh spiders posted:lua has those and it makes zero difference at all unless you're a big baby lua has 1.0 based arrays
|
# ¿ May 1, 2012 00:09 |
|
|
# ¿ May 13, 2024 06:34 |
|
Otto Skorzeny posted:it has 1.0 "based" hash tables; there is no array type actually in lua parlance, they're called tablesand they're part hash, part array (in 5.0+) http://www.jucs.org/jucs_11_7/the_implementation_of_lua/jucs_11_7_1159_1176_defigueiredo.pdf
|
# ¿ May 1, 2012 00:54 |
|
homercles posted:in perl you can configure the base index to be any positive number you can do this in visual basic using dim http://msdn.microsoft.com/en-us/library/aa243352(v=vs.60).aspx
|
# ¿ May 1, 2012 00:56 |
|
Rufo posted:stop it your making perl sound poo poo perl's great quote:To reanimate the program, its parse tree must be reconstructed. This phase exists only if code generation occurred and you chose to generate bytecode. Perl must first reconstitute its parse trees from that bytecode sequence before the program can run. Perl does not run directly from the bytecodes; that would be slow.
|
# ¿ May 1, 2012 01:06 |
|
seriously programming perl ownsquote:Basically, it's easier to run an economy where you assume everyone owns what they own, rather than assuming that everyone owns everything. Not that people aren't expected to share in a capitalist economy, or peculate[1] in a communist economy. These things tend toward the middle. Socialism happens. But with large groups of people, sharing everything by default only works when you have a "head chef" with a big meat cleaver who thinks he owns everything.
|
# ¿ May 1, 2012 01:14 |
|
Janin posted:dynamic typing, weak typing, no integers, hash tables as the primary abstraction ephemerons
|
# ¿ May 1, 2012 22:59 |
|
tef posted:ephemerons to elaborate, this came out in 97 and it is in lua 5.2.
|
# ¿ May 2, 2012 02:05 |
|
don't blame you, they're terrible.
|
# ¿ May 2, 2012 03:09 |
|
Gazpacho posted:i suppose if you wants to write actual programs in 100% continuation passing style by hand that's the language to do it in node.js
|
# ¿ May 2, 2012 12:07 |
|
why not learn postscript instead of forth rotor
|
# ¿ May 2, 2012 15:30 |
|
rotor posted:the subject really isnt open for debate. its fine. end of story.
|
# ¿ May 3, 2012 15:01 |
|
Rasmus
|
# ¿ May 3, 2012 16:53 |
|
OH poo poo I'VE BEEN SHAGGARED
|
# ¿ May 4, 2012 16:03 |
|
they should have been using opera
|
# ¿ May 4, 2012 16:07 |
|
Char posted:tef's flapping his gums I don't even have any machines that can run IE9 I'm totally freaking out
|
# ¿ May 4, 2012 16:12 |
|
obviously what I need to do is find out who bought me it and buy them my old av
|
# ¿ May 4, 2012 16:13 |
|
Werthog posted:the punchline is that this man is now my boss http://en.wikipedia.org/wiki/Floyd%27s_cycle-finding_algorithm#Tortoise_and_hare
|
# ¿ May 4, 2012 23:58 |
|
p.s. I am yet to use anything I picked up from a cs course, in my day job of programming
|
# ¿ May 5, 2012 00:01 |
|
ugh shaggar av
|
# ¿ May 5, 2012 00:02 |
|
tinselt0wn posted:lol tef youve never taken a cs course I've failed more cs courses than you've had empty quotes
|
# ¿ May 5, 2012 00:17 |
|
Lysidas posted:ugh fine if you're wondering, much of hotspot's optimiser, is dedicated to making up for programmers not understanding java
|
# ¿ May 7, 2012 17:47 |
|
JawnV6 posted:i feel like i should read higher order perl but i mash text around just fine w/ perl right now a good book.
|
# ¿ May 8, 2012 09:28 |
|
Hammerite posted:oh. i assumed it would be something more interesting than that. idk why you'd care much about that it's a little more annoying than that python strings act like lists, that contain lists, etc. there is no notion of a character. the problem is telling a list of things and a string apart becomes awkward. you'll have hit this when you've passed some arg "foo" instead of ("foo",) it causes some other issues, for some reason, python lacks a flatten operator (guido ), and so everyone ends up rewriting it in their own unique way: for example code:
aside: array indexing on strings isn't a good idea when you actually use unicode rather than the sticking your fingers in your ears *la la la* everything is ascii *la la la nonsense*
|
# ¿ May 8, 2012 09:54 |
|
Hammerite posted:Why? because combining characters? that and variable width encodings. unless you use utf-32 to store strings, you will have to deal with variable width encodings in utf-8 or utf-16 (surrogate pairs). being able to leap n chars into a string without scanning is a holdover from ascii.
|
# ¿ May 8, 2012 11:14 |
|
Lysidas posted:really tef? invalid syntax in your example code? eat it python-3 havers
|
# ¿ May 8, 2012 13:21 |
|
Hammerite posted:But what's the problem with array indexing of strings if you index codepoints or characters rather than bytes? tef posted:that and variable width encodings. unless you use utf-32 to store strings, KARMA! posted:not if the internal representation is utf 32!! basically you have to use 4 bytes for each character. it's expensive. quote:(Characters to avoid the combining characters thing.) The language should be able to do that surely. combining characters are different from variable width encodings, that's a whole separate issue altogether.
|
# ¿ May 8, 2012 13:47 |
|
from dive into mark (rip) I was walking across a bridge one day, and I saw a man standing on the edge, about to jump off. So I ran over and said, “Stop! Don’t do it!” “I can’t help it,” he cried. “I’ve lost my will to live.” “What do you do for a living?” I asked. He said, “I create web services specifications.” “Me too!” I said. “Do you use REST web services or SOAP web services?” He said, “REST web services.” “Me too!” I said. “Do you use text-based XML or binary XML?” He said, “Text-based XML.” “Me too!” I said. “Do you use XML 1.0 or XML 1.1?” He said, “XML 1.0.” “Me too!” I said. “Do you use UTF-8 or UTF-16?” He said, “UTF-8.” “Me too!” I said. “Do you use Unicode Normalization Form C or Unicode Normalization Form KC?” He said, “Unicode Normalization Form KC.” “Die, heretic scum!” I shouted, and I pushed him over the edge.
|
# ¿ May 8, 2012 13:48 |
|
Hammerite posted:with the variable width thing, you're saying: you either have to store in utf-32 (expensive in terms of memory), or scan through the string to find the offset (expensive in terms of computation). yup. utf-32 is quite expensive in terms of memory. utf-8 is what a large proportion of documents are serialised in quote:I'm saying I'm fine with that, gimme my array indexing. fwiw, when I read at an offset, i'm likely scanning the string in the first place. (regarding python, It is more I don't think "foo"[1] should be valid, because strings don't provide list semantics or list performance in python, guido ). quote:as regards normalisation forms and all that, I have to concede I don't know enough to have an opinion. enjoy http://www.unicode.org/reports/tr15/
|
# ¿ May 8, 2012 14:17 |
|
Markov Chain Chomp posted:i dont care about characters for some weirdo in cambodia hth racist
|
# ¿ May 8, 2012 16:03 |
|
quote:still usin CVS crew checkin in colour me unsurprised. quote:occasionally people talk about moving to git but after 12+ years with a bulletproof workflow, why atomic commits would be nice, eh
|
# ¿ May 9, 2012 08:10 |
|
CaptainMeatpants posted:guys if need to make a web api that will be used by a website and phones what should i use in 'hypermedia/rest' urls are opaque. I guess you must be talking about shaggar/rest.
|
# ¿ May 9, 2012 08:12 |
|
Internaut! posted:wait til you crack a history book someday well, I can just wait for you to post more about your exciting development environment. but given cvs is relatively new (only a year older than python), I don't think you get to whine about 'how it was' back in the days before structured programming. let alone when people wrote things like ratfor, or people argued about the utility of if statements. quote:and discover people were successfully developing software all the way back in the 20th century before stuff like git and svn were invented yup and people still write code as if the last 20 years never happened too. we've been trying to drag luddites like you away from punchcards and fortran to no avail. in the end, you'll die and then progress can happen.
|
# ¿ May 9, 2012 13:45 |
|
Internaut! posted:wait til you crack a history book someday I'm tempted to rebut this by posting my collection of old computer books (I have a few), but you're really not worth it. Even though I like posting books. Your haughty condescending tone carries an arrogance that can only come from a stubborn refusal to learn from the mistakes of others. You're no worse than the zealots you decry and defame, the key difference being which side of the false dichotomy you sit: 'new' vs 'old'.
|
# ¿ May 9, 2012 13:58 |
|
I'm saying you are a bad person. pee pee, doo doo, and all that.
|
# ¿ May 9, 2012 14:00 |
|
MononcQc posted:idgi perl
|
# ¿ May 9, 2012 14:26 |
|
Internaut! posted:that developers with grad degrees in hard sciences in environments like wall street use hey shaggar pay attention this is how you do it.
|
# ¿ May 9, 2012 16:04 |
|
for the record I think it is fine to use new technologies like, java, xml and svn. I don't see your problem with 'modern stuff'
|
# ¿ May 9, 2012 16:10 |
|
nerds
|
# ¿ May 9, 2012 17:07 |
|
Werthog posted:also please get a new avatar already, why do you still have that anime poo poo I was thinking of getting a new avatar but I am growing attached to this one
|
# ¿ May 9, 2012 17:07 |
|
|
# ¿ May 13, 2024 06:34 |
|
also nerds are terrible and I hate programming
|
# ¿ May 9, 2012 17:08 |