16:48 rjek Oh, hideous things like ATmega.
16:48 sunrunner20 yea lol
16:48 rjek But on those systems, you won't be worrying about moving large files around.
16:48 sunrunner20 but ATmegas have some ram iirc
16:48 noktoborus
16:48 rjek So basically, on systems where it matters, it doesn't actually matter.
16:49 hoelzro sunrunner20: well, how would you copy files on that system without Lua?
16:49 Hodapp when you deal with embedded systems, you run into cases where the distinction between RAM, cache, registers, and any other type of memory is rather muddied.
16:49 rjek No, you simply throw away MCUs that muddy it, and use something half-decent.
16:49 Hodapp It's not a question of whether the MCU or decent or not; it's a question of what architecture it is and what it's expected to do.
16:49 noktoborus #lua
16:50 rjek Hodapp: IME, ones that muddy those lines are more effort than they are worth.
16:50 Hodapp It really depends on what you need them for.
16:50 rjek Recently we've been loving the STM32.
16:50 McManiaC
16:50 rjek Not significantly more expensive than smaller things, but wonderful to work with.
16:50 Hodapp I had little trouble working with a PIC which IIRC has only a "register file" for storage.
16:51 rjek The STM32 being ARM Cortex-M3 based, you just use GCC, and away you go.
16:51 McManiaC #lua
16:51 rjek The Entropy Key, our random number generator whose driver software is written in Lua, has an STM32 in it for doing all the crypto and statistics.
16:53 ztirf #lua
16:55 jamby
16:56 cbreak_work
16:56 WaterR[a]tj WaterRatj
16:57 ztirf
16:58 McManiaC
16:59 McManiaC #lua
17:02 Chromix #lua
17:06 McManiaC
17:07 McManiaC #lua
17:09 doub the STM 32 maps its registers in the same address space as its RAM, isn't that muddy by Hodapp's definition ?
17:12 rjek No it doesn't.
    It has registers. And then it has RAM. It's an ARM.
17:13 jakllsch surely it puts some hardware registers in mmio space
    but those wouldn't be CPU registers
17:13 rjek That's just memory-mapped IO.
17:13 chaoslawful1
17:14 rjek The processing registers are in the CPU core.
17:14 curtana
17:19 XIX
17:20 XIX #lua
17:26 muenchhausen #lua
17:28 mattikus #lua
17:28 zomgbie #lua
17:29 tobiassjosten #lua
17:35 keffo
17:39 uzsolt #lua
17:48 anthonyl
17:51 cortana` #lua
17:52 Funkeh`
17:53 keffo #lua
17:55 ovi1
18:14 stepnem
18:15 sunrunner20 newb quesion: do i need to require io library or is it included by default
18:15 stepnem #lua
18:16 deryni The stock interpreter includes it by default, your embedding environment may or may not.
18:18 sunrunner20 i'll know when i move these files over ot the mac...
    I've writen like 300 lines of code in lua (new to lua, obviously) and haven't run them through a debugger yet-- should be fun...
18:20 sunrunner20 quick google search doesn't show me- do I need to watch out for == vs = in lua?
18:21 deryni They are different things.
    == is equality, = is assignment.
    I'm not sure what else there would be to "watch out for" there.
18:21 sunrunner20 I know, was wondering if lua some how figured out your intent for compairson vs assignment
18:22 deryni No.
    Though I think it might actually be able to always tell the difference but I'm not sure.
18:23 sunrunner20 I'm used to C type languages with a 'dumb' compiler, not able to figure out you intent
    biggest difference: lua doesn't require semicolons
18:24 sunrunner20 thats kinda unnerving acctually lol
18:24 deryni You can use them if you want to.
18:24 Corsix !lua x == 4
18:24 batbot Corsix: > false
18:24 Corsix !lua if x = 4 then end
18:24 batbot Corsix: @ [string "if x = 4 then end"]:1: 'then' expected near '='
18:24 Corsix (the former would throw an error if loaded outside the bot)
18:25 ventonegro
18:25 Corsix !lua do x == 4 end
18:25 batbot Corsix: @ [string "do x == 4 end"]:1: '=' expected near '=='
18:25 Corsix so most if not all of the time, it'll complain if you get it wrong
18:28 anthonyl #lua
18:29 Frakenstein #lua
18:31 MattJ grumbles
18:32 MattJ I need to make a simple .exe that executes a Lua script, but don't want to spend ages setting up a development environment on Windows :(
18:32 sunrunner20 setting a variable to nil sends it to garbage collection, correct
18:33 MattJ wxLua ships with such a tool, but the template .exe it embeds the script into is dynamically linked to gazillions of wxWidgets DLLs
18:33 deryni If that's the only reference to the value it will be free to be collected, yes.
18:33 sunrunner20 thought so
18:33 Corsix MattJ: I can knock something up for you, if you want, though slightly more details of requirements are needed
18:34 Corsix e.g. Choice of Lua 5.0/5.1/5.2, Visual C++ 6/2003/2005/2008/2010, which file to run, what error catching to have, etc.
18:35 MattJ The rest of the binaries I'm using are from Lua for Windows, whatever that's set up to use
    Hmm
18:36 MattJ I wouldn't /mind/ just a stock Lua interpreter that ran "main.lua" instead of argv[1], though having it embedded is better since then it's independent of current working directory
18:37 MattJ But then I'll be wanting to modify the files :)
18:38 Slipyx #lua
18:39 sunrunner20 you can do io.open(file,'rwb') right?
18:39 Corsix if "rwb" is a valid mode for fopen, yes
18:50 stepnem
18:51 DarkGod #lua
18:51 stepnem #lua
19:02 MarderIII #lua
19:10 foodoo #lua
19:11 DarkGod
19:11 XAMPP
19:12 DarkGod #lua
19:12 amino jesterKing
19:17 anthonyl
19:18 Dejan
19:18 Chromix
19:18 XIX
19:19 XIX #lua
19:19 brixtonasias #lua
19:20 keffo
19:22 anthonyl #lua
19:25 Monevo
19:26 Monevo #lua
19:29 lhf #lua
19:30 lhf MattJ: about a stock Lua interpreter that ran "main.lua" instead of argv[1]...Do you know about LUA_INIT?
    env LUA_INIT="@main.lua" lua does what you want.
19:31 MattJ Ah, that's a nice idea, thanks
    Unfortunately not sure how to do it on Windows without a .bat file
    Anyway... I think I have what I want now, thanks
19:31 lhf you can set LUA_INIT once
19:35 Corsix MattJ: If you still need something, http:///corsix.org/temp/LuaExeWrapper.zip
19:35 keffo #lua
19:36 Dejan #lua
19:37 mattikus
19:40 pf_moore #lua
19:41 lhf there's also srlua
19:47 Amadiro
19:51 wm4_ #lua
19:53 anthonyl
19:57 wm4_ wm4
19:57 wm4 #lua
20:02 Amadiro #lua
20:12 sunrunner20
20:14 MrGando
  MrGando #lua
20:14 MarderIII
20:25 MattJ Corsix: Wow, excellent, thanks :)
    Works great - would be even better for me if it worked in wine, but alas, that would be too easy :)
20:28 badipod #lua
  badipod #lua
20:28 Corsix No obvious reason why WINE shouldn't like it
20:30 hoelzro
20:31 uzsolt #lua
20:33 MattJ It hits a fixme
    fixme:resource:write_raw_resources .rsrc isn't at the end of the image 00000200 + 00000c00 != 00001000 for L"LuaExeWrapper.exe"
20:36 Funkeh` #lua
20:36 noktoborus
20:36 Corsix making the exe have a fixed base address might avoid that
20:36 noktoborus #lua
20:36 Corsix as it would strip the reloc segment and put .rsrc last
20:42 Corsix http:///corsix.org/temp/LuaExeWrapper2.zip
20:42 MattJ Is there a reason the URLs you give have :/// ? :)
20:43 MattJ It breaks my download+extract script :P
20:43 Corsix because of how my FTP client and directory structure is set up
20:44 Corsix I've now tweaked the settings; they shouldn't have /// in future
20:44 MattJ Yep - it works in wine now, thanks!
20:45 MattJ You should upload this somewhere and put it on the wiki
20:49 dvx
20:52 lhf MattJ: try also srlua
20:53 MattJ lhf: Yes, I looked at that earlier
20:53 lhf ah ok
20:53 MattJ The problem was that I was trying to avoid installing a C compiler
20:53 lhf whatever works for you
20:53 MattJ Corsix's app rewrites a .exe that's already compiled
20:54 lhf there used to be a precompile srlua for windows but the link was broken
    and I removed it from my page
20:55 lhf ah http://www.soongsoft.com/lhf/lua/5.1/srlua.tgz
    it seems to work
20:56 MattJ Ha nice, thanks
20:57 MattJ might use this for another project
20:59 WaterRatj WaterR[a]tj
21:04 sunrunner20 #lua
21:04 Dejan
21:06 weigon
21:11 rseifert
21:11 TheBunny
21:14 unknown_had
21:15 foodoo
21:15 TheBunny #lua
  TheBunny
21:33 Corsix
21:38 zomgbie
21:43 muenchhausen
21:43 anthonyl #lua
21:44 badipod
21:52 badipod #lua
  badipod #lua
21:59 keffo
22:05 keffo #lua
22:06 badipod
22:08 ryan_scott #lua
22:10 ToxicFrog #lua
22:13 rizzuh
22:18 lhf
22:32 curt`off Curt`
22:36 jakllsch
22:37 jakllsch #lua
22:40 uzsolt #lua
22:47 wm4 meh, could it be that the lua API check doesn't trigger when callung lua_pop with a negative value
    *calling
22:48 tobiassjosten
22:49 emmanueloga #lua
22:49 Firzen
22:51 deryni There's an api_check call in the negative number part of lua_settop.
22:52 TheBunny2 #lua
22:54 deryni Or rather in both parts, since lua_pop with a negative number would call settop with a positive one.
22:57 xenthral #lua
22:59 General1337 #lua
23:02 keffo
23:03 General13372
23:03 davidm123 #lua
23:04 Funkeh`
23:06 pf_moore
23:07 deltaphc #lua
23:12 ment
23:13 keffo #lua
23:13 MrGando #lua
23:18 AkiraYB
23:20 MattJ
23:21 MattJ #lua
23:32 xenthral
23:35 cortana`
23:35 groovy2shoes #lua
23:37 cortana` #lua
23:51 brixtonasias
23:57 cortana`
23:59 ovi1 #lua
00:16 Textmode #lua
00:16 ovi1
00:23 prn #lua
00:23 prn http://sourceforge.net/people/viewjob.php?group_id=348841&job_id=35232
00:25 batrick lol. (but off-topic)
00:43 relix
00:50 XAMPP #lua
00:55 hoelzro #lua
01:00 ldunn #lua
01:02 Slackwise
01:05 DarkGod
01:06 XAMPP
01:07 Slackwise #lua
01:09 XIX
01:10 XAMPP #lua
01:14 XIX #lua
01:18 jsimmons #lua
01:19 Slackwise_ #lua
01:23 Slackwise
01:26 hoelzro
01:27 cpressey #lua
01:33 mattikus` #lua