Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2012-06-05

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:14 mwn3d_phone joined #rosettacode
01:02 mwn3d_phone joined #rosettacode
01:17 BenBE joined #rosettacode
01:42 BenBE joined #rosettacode
03:10 ClaytonB[RCo] joined #rosettacode
03:47 BenBE joined #rosettacode
03:47 mou joined #rosettacode
04:02 ClaytonB[RCo] joined #rosettacode
04:34 mou_ joined #rosettacode
04:41 local2 joined #rosettacode
05:12 GlitchMr joined #rosettacode
05:23 ClaytonB[RCo] joined #rosettacode
05:23 ClaytonB[RCo] Are there any other languages besides C++ that allow you to use pointers OR references?
05:27 BenBE joined #rosettacode
05:28 mischi joined #rosettacode
05:28 ClaytonB[RCo] hi BenBE: I just posted a question in case you're interested... Are there any other languages besides C++ that allow you to use pointers OR references?
05:34 sorear ClaytonB[RCo]: your question is meaningless as written because the pointer/reference distinction is pretty exclusive to C++
05:35 sorear C# has words "pointer" and "reference" but they're really quite different from the C++ concepts of the same name
05:35 ClaytonB[RCo] Well, I guess I mean "pointer" as in raw memory address and "reference" as any kind of managed access (in C++, I believe references are implemented as double-pointers that can only be doubly-dereferenced)
05:38 sorear no
05:38 sorear C++ references are exactly the same as pointers under the hood
05:39 sorear the only difference is syntactic - it is impossible to access a C++ reference without dereferencing it immediately
05:39 sorear (what you described is much closer to the C# notion of pointers and references than to C++)
05:42 ClaytonB[RCo] hmm
05:42 sorear Haskell is another example of a language that provides both pointers and managed references
05:42 sorear I think so is Go
05:42 ClaytonB[RCo] interesting, I didn't know Haskell has pointers
05:42 sorear one important thing in all of these languages is that pointers and managed references cannot be used interchangably
05:43 ClaytonB[RCo] yeah that's a recipe for disaster :P
05:43 sorear the pointers are used as part of the foreign function interface to access C memory, and cannot be used to refer to native objects ever
05:43 ClaytonB[RCo] ah
05:43 ClaytonB[RCo] ok, so it's there but more of an interface feature
05:43 sorear whereas managed references in those languages only point to native objects, never C memory
05:54 TimToady funny use of "native" there, almost opposite how we use it in #perl6
05:59 ClaytonB[RCo] Toady: You mean you use "native" to refer to lower-level?
05:59 ClaytonB[RCo] closer to machine?
06:01 mwn3d_phone1 joined #rosettacode
06:01 mwn3d_phone joined #rosettacode
06:10 sorear ClaytonB[RCo]: yes, that is how #perl6 uses the term
06:10 TimToady yes, "native int" vs "abstract Int"
06:11 ClaytonB[RCo] k
06:14 kpreid joined #rosettacode
07:04 ttmrichter joined #rosettacode
07:07 BenBE joined #rosettacode
07:32 BenBE joined #rosettacode
07:49 mischi joined #rosettacode
08:18 eel2 REPL log monitoring broke! problem: <EOFException>
08:22 BenBE joined #rosettacode
08:47 BenBE joined #rosettacode
09:12 BenBE joined #rosettacode
09:44 opticron joined #rosettacode
10:02 BenBE joined #rosettacode
10:27 BenBE joined #rosettacode
11:52 mwn3d_phone1 joined #rosettacode
12:03 GlitchMr joined #rosettacode
12:07 BenBE joined #rosettacode
12:31 GlitchMr http://rosettacode.org/wiki/A‚Äčnagrams/Deranged_anagrams#PHP
12:32 fedaykin "Anagrams/Deranged anagrams - Rosetta Code" http://rldn.net/5SZ
12:32 GlitchMr I'm sure I could've made this easier...
12:32 BenBE joined #rosettacode
13:22 BenBE joined #rosettacode
13:47 BenBE joined #rosettacode
15:02 BenBE joined #rosettacode
15:19 ClaytonB[RCo] joined #rosettacode
15:41 mwn3d_phone TimToady: just noticed "take this" and "take that" in [[Set consolidation]]. That must have been fun to write.
15:41 fedaykin http://rosettacode.org/wiki/Set_consolidation
15:48 ClaytonB[RCo] joined #rosettacode
15:50 TimToady mwn3d_phone: indeed, I generally do things for multiple purposes, and puns are one of those purposes :)
15:55 ClaytonB[RCo] why does the word "purposes" make me think of the word "nefarious"... :-P
16:27 mwn3d_phone I like how GeSHi highlighted "I" in "(H,I,K)" in the perl 6 example. Is that a keyword?
16:42 BenBE joined #rosettacode
17:07 BenBE joined #rosettacode
17:57 BenBE joined #rosettacode
18:06 ClaytonB[RCo] joined #rosettacode
18:41 mischi joined #rosettacode
18:51 lnettnay joined #rosettacode
18:57 TimToady mwn3d_phone: i is, but not I, so apparently it's being gratuitously case insensitive
18:58 TimToady in any case, i is just a constant, so it's not clear that it should be hilit at all
19:00 TimToady but if you get me started on GeSHi misunderstands Perl 6, I probably won't stop.... :)
19:00 ClaytonB[RCo] perl6 - syntax highlighter would have to be built-in?
19:00 ClaytonB[RCo] to work correctly, that is
19:16 lnettnay joined #rosettacode
19:21 lnettnay joined #rosettacode
19:25 lnettnay joined #rosettacode
19:36 Hypftier ClaytonB[RCo]: that goes for many languages, actually. GeSHi's approach to syntax highlighting is to be fast, not to be accurate. And for languages with particular complex syntaxes that can introduce errors along the way. Although it has moved to a grammar-based highlighting mechanism in newer versions, for some languages at least, so that should provide much better highlighting.
19:45 ClaytonB[RCo] joined #rosettacode
19:52 mou joined #rosettacode
20:09 lnettnay joined #rosettacode
20:30 ClaytonB[RCo] joined #rosettacode
20:30 lnettnay joined #rosettacode
20:34 lnettnay joined #rosettacode
20:38 lnettnay joined #rosettacode
20:41 lnettnay joined #rosettacode
20:44 lnettnay joined #rosettacode
20:46 lnettnay joined #rosettacode
20:48 lnettnay joined #rosettacode
20:50 lnettnay joined #rosettacode
20:52 lnettnay joined #rosettacode
20:55 lnettnay joined #rosettacode
20:57 lnettnay joined #rosettacode
21:00 lnettnay joined #rosettacode
21:05 ClaytonB[RCo] joined #rosettacode
21:10 ClaytonB[RCo] joined #rosettacode
21:20 lnettnay joined #rosettacode
21:41 lnettnay joined #rosettacode
22:09 lnettnay joined #rosettacode
22:12 BenBE joined #rosettacode
22:21 mwn3d_phone1 joined #rosettacode
22:37 BenBE joined #rosettacode
22:42 mwn3d_phone joined #rosettacode
22:42 mwn3d_phone1 joined #rosettacode
22:52 lnettnay joined #rosettacode
22:59 mwn3d_phone joined #rosettacode
23:04 mou joined #rosettacode
23:26 dom96 joined #rosettacode
23:38 mwn3d_phone1 joined #rosettacode

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary