157 karma · joined March 7, 2014
github.com/rweichler
Only works on jailbroken devices but it works well, has a local backup, and has been maintained (by me) for 2 years now.
Server costs are $2.50/mo, so this will stay up as long as I am alive.
Location: San Francisco Bay Area.
Remote: For the right opportunity.
Willing to relocate: For the right opportunity.
Technologies: iOS (5y), web frontend (1y, react), backend (1y, go, openresty/nginx, python, postgres, redis), LuaJIT (3y), Love2D (1y)
Resume/CV: https://twitter.com/rweichler (used to promo my products) https://github.com/rweichler (open source stuff) https://linkedin.com/in/reedweichler (work experience)
Email: rweichler@gmail.com
We are creating a systemwide equalizer solution for all platforms, starting with jailbroken iOS. Looking for engineers who are proficient in reverse engineering iOS (specifically mediaserverd, SpringBoard, and AudioToolbox), and for somebody experienced in LuaJIT. Someone with experience in both would be a huge plus. Remote only.
rweichler@gmail.com
function f(a, b, c, d)
a = a or 1
b = b or 2
c = c or 3
d = d or 4
end
> list comprehensionshttps://news.ycombinator.com/item?id=14444215
> local is default, not global
I think this is a con.
> a simple class system if you need it
I also think this is a con, because it limits flexibility.
Here's my class system:
Object = {}
function Object:new()
local self = setmetatable({}, {__index = self})
return self
end
And how to use it: local super = Object
Shape = Object.new(super)
function Shape:new(color)
local self = super.new(self)
self.color = color
return self
end
local super = Shape
RedShape = Object.new(super)
function RedShape:new()
local self = super.new(self, 0xff0000)
return self
end
If I want to add multiple inheritance, or interfaces, it is easy. Because it is just metatables. With MoonScript this is not possible.> `export`, `from` and `import` keywords
Sounds like a con to me. `require` is simple.
> `+=`, `/=`, `*=`
I agree with this one.
function listcomp(t, f)
local r = {}
for k,v in pairs(t) do
r[k] = v
end
return r
end
And then, your Lua code would be like: listcomp({1, 2, 3, 4}, function(k, v)
return v*2
end)
Which would be the equivalent to this in MoonScript: [v*2 for k,v in pairs({1, 2, 3 ,4})]
I dunno. Just seems like a wash to me. And then you think about the extra compile step to run MoonScript, and the potential performance hits, and I'm just turned off completely from it. -- LuaJIT
local oldG = _G
local newG = setmetatable({}, {
__index = oldG,
})
setmetatable(oldG, {
__index = function(t, k)
return rawget(newG, k)
end,
__newindex = function()
error('attempt to assign global variable')
end,
})
_G = newG
If you want to assign a global variable, `x = 5` will error but `_G.x = 5` won't.Probably would need to make a custom OS. I'd probably base it on BSD
Looks cool.
> Android
Pass.
extern "C" { void foo(); }
For D? That way you'd be able to use the LuaJIT ffi. That, in combination with what's in the OP, would be killer.3DS port: https://github.com/rweichler/luajit-3DS
iOS runtime inspector: https://github.com/rweichler/lucy
Cydia alternative: https://github.com/rweichler/jjjj
And this is just stuff by me, some schlep. LuaJIT is so underrated it's kind of sad.
please don't