Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

My lambda is calculating

Name: Anonymous 2012-09-01 13:42

I must fork all of the glibc versions before I go completely academic

I can't even stand non-LISPs' lack of first class and anonymous functions anymore ;_;

Name: Anonymous 2012-09-01 14:02

javascript

Name: Anonymous 2012-09-01 14:46

>>1
I think you'd like Lua.

Name: Anonymous 2012-09-01 14:49

>>3

apparently you didn't see >>2

Name: Anonymous 2012-09-01 15:41

>>4
lua is just a little bit more far out than javascript.


function caching_inherit(self, ...)
  local parent_classes = {...}
  local cache = {}
  local meta = {__index = function(self, k)
                  local cached_value = cache[k]
                  if cached_value ~= nil then
                    return cached_value
                  else
                    for _, parent_object in ipairs(parent_classes) do
                      local parent_value = parent_object[k]
                      if parent_value ~= nil then
                        cache[k] = parent_value
                        return parent_value
                      end
                    end
                  end
                end}
  setmetatable(self, meta)
  return self
end

A = {a='A.a', b='A.b', c='A.c'}
B = {b='B.b', x='B.x'}
C = {c='C.c'}

X = caching_inherit({x='X.x'}, B, C, A)

print('X.a == ', X.a)
print('X.b == ', X.b)
print('X.c == ', X.c)
print('X.x == ', X.x)

Name: Anonymous 2012-09-01 16:56

>>5
operator overloading
get the fuck out

Name: Anonymous 2012-09-01 16:57

>>5
not to mention: SLOW AS FUCK

Name: Anonymous 2012-09-01 17:03

>>6,7
y u no leik abstractions for linked hierarchical hash tables with cached parent look ups?

Name: Anonymous 2012-09-01 17:05

>>8
y u no leik
Fuck off back to Reddit, ``please"

Name: Anonymous 2012-09-01 17:23

>>4
I did, but JavaScript is shit.

>>6
Many good languages have operator overloading. I agree it's usually confusing, but it can be useful for math libraries. There's a reason languages like Smalltalk and Ruby allow the programmer to use mathematical operators for arithmetic instead of explicit method calls.

>>7
Lua is known for being fast. What are you smoking?

Name: Anonymous 2012-09-01 17:23

"
No, >>9, you are the redditor.

Name: Anonymous 2012-09-01 18:07

>>10
Lua is known for being fast. What are you smoking?
FFOC

Name: Anonymous 2012-09-01 18:13

>>11
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""
"""""""""""""

Name: Anonymous 2012-09-01 18:24

>>10
Lua is known for being fast. What are you smoking?
apparently it's not as strong as what you are smoking!

Name: Anonymous 2012-09-01 18:44

>>13,14
I can't tell if you are being ironic or not.

Name: Anonymous 2012-09-01 19:08

>>12
>>14
It's fast for what it is, and it's faster than any lisp implementation.

Name: Anonymous 2012-09-01 19:22

>>16
who gives a fuck about lisp when javascript exists

Name: Anonymous 2012-09-01 20:25

>>17
JavaScript is a shitty language.

Name: Anonymous 2012-09-01 21:11

>>18
U MENA JavaShit

Don't change these.
Name: Email:
Entire Thread Thread List