code logs -> 2021 -> Fri, 08 Jan 2021< code.20210107.log - code.20210109.log >
--- Log opened Fri Jan 08 00:00:58 2021
--- Log closed Fri Jan 08 00:05:22 2021
--- Log opened Fri Jan 08 00:05:28 2021
00:05 TheWatcher [chris@GlobalOperator.Nightstar.Net] has joined #code
00:05 Irssi: #code: Total of 30 nicks [20 ops, 0 halfops, 0 voices, 10 normal]
00:05 mode/#code [+o TheWatcher] by ChanServ
00:05 Irssi: Join to #code was synced in 15 secs
00:44 Kindamoody is now known as Kindamoody[zZz]
01:54
< Yossarian>
http://linuxgizmos.com/movidius-ai-acceleration-technology-comes-to-a-mini-pcie-card/ eh?
01:54
< catalyst>
http://bash.org/?400459
02:51
< Yossarian>
am I going nuts? In lua's repl, isn't there a shortcut for typing print statements or io.write?
02:55
<&ToxicFrog>
In recent luas you can just type an expression and it'll print the result of evaluating
02:55
<&ToxicFrog>
In older ones prefix the line with = as a shortcut for return, e.g. `= 1+1` => `return 1+1` and will output 2
03:01
< Yossarian>
I am thinking # is an operator to print or return sizeof for some reason
03:09
<@celticminstrel>
It's a REPL after all.
03:09
<@celticminstrel>
So you'll always see the result of whatever expression you type in.
03:09
<@celticminstrel>
No need to overthink it.
03:09
<@celticminstrel>
Just type 1+1 and you'll see 2
03:10
<@celticminstrel>
# is an operator that returns the number of array elements in a table
03:19
< SmithKurosaki>
I really need to get back into coding and learn SQl
03:44
< Yossarian>
I saw a feature in Juypter Notebook or whatever it is called for interpreted language (python) that as you write you have chunks of code, you can seperate chunks and type in there and it will execute that given chunk or selected code as if it were in the REPL.
03:44
< Yossarian>
Can emacs do that?
03:45
< Yossarian>
because in some instances a lot of testing to be done, especially if it is an interpreted language... if I can get real-time feedback by running certain chunks by typing into a block or being able to execute a block...
03:47
< Yossarian>
I was just curious if emacs can do that, besides with emacslisp.
03:47
< Yossarian>
I can make my editor do something like what I described.
03:49
< Yossarian>
another interesting thought is I know lua's garbage collector has "chunks" and I'm not sure often it sweeps away chunks but it'd be interesting to have them stick around, I know lua is implemented as a stack machine buttt I think something like that could be done.
04:22 Degi_ [Degi@Nightstar-8mrvkq.pool.telefonica.de] has joined #code
04:23 Degi [Degi@Nightstar-i1k7it.pool.telefonica.de] has quit [Operation timed out]
04:23 Degi_ is now known as Degi
04:35 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
04:36 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
04:36 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
06:33 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code
06:33 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
06:39 celticminstrel [celticminst@Nightstar-98j9a3.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:56 Netsplit Traal.Nightstar.Net <-> Krikkit.Nightstar.Net quits: @PinkFreud
07:12 Netsplit over, joins: @PinkFreud
07:35 SmithKurosaki [uid215460@Nightstar-ed0oqj.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
08:57 Pink [uid208117@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
08:57 Pink [uid208117@Nightstar-h2b233.irccloud.com] has joined #code
09:57 Kindamoody[zZz] is now known as Kindamoody
10:58 catalyst_ [catalyst@Nightstar-ro5mi4.dab.02.net] has joined #code
11:01 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
11:11 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
11:13 catalyst_ [catalyst@Nightstar-ro5mi4.dab.02.net] has quit [Ping timeout: 121 seconds]
11:23 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
13:06 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
13:06 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed]
13:17 Pink [uid208117@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
14:43 celticminstrel [celticminst@Nightstar-98j9a3.dsl.bell.ca] has joined #code
14:43 mode/#code [+o celticminstrel] by ChanServ
15:12 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:12 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:34
<&ToxicFrog>
I believe emacs can do that if you are willing to spend enough time fiddling with elisp.
16:34
<&ToxicFrog>
Yossarian: ^, also # is a unary prefix operator named __len that returns the size of the array-part of tables and the length (in bytes) of strings, and can be customized for userdata.
16:35
<&ToxicFrog>
Yossarian: I have no idea what you mean by "lua's garbage collector has chunks [...] ot
16:35
<&ToxicFrog>
it'd be interesting to have them stick around", anything that gets collected is, definitionally, no longer accessible except with a C-side debugger
16:35
<&ToxicFrog>
(and if you're doing that you can also just turn off the collector entirely)
16:36
<&ToxicFrog>
Also, Lua is not a stack machine, it's a register machine with a sliding register window that looks stack-y to the C API.
16:39
<&ToxicFrog>
celticminstrel: you did in fact need some overthinking in earlier versions of lua, because lua has a statement/expression distinction and the repl only accepted statements, not expressions
16:39
<&ToxicFrog>
So 'return 1+1' emits 2, but '1+1' is a syntax error.
16:39
<&ToxicFrog>
This is definitely fixed from 5.3 onwards, I don't think it's fixed in luajit.
16:50 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
16:50 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
16:50 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:53 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:15 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
17:16 catalyst [catalyst@Nightstar-n2n43e.dab.02.net] has joined #code
17:23 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
17:26 catalyst [catalyst@Nightstar-n2n43e.dab.02.net] has quit [Connection reset by peer]
18:07 SmithKurosaki [uid215460@Nightstar-ed0oqj.irccloud.com] has joined #code
20:55 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [The TLS connection was non-properly terminated.]
21:58
<&McMartin>
luajit IIRC is 5.1 based
21:58
<~Vornicus>
5.1, plus the bits from 5.2 that are backwards compatible
21:58
<&McMartin>
Aha
23:39 Pink [uid208117@Nightstar-h2b233.irccloud.com] has joined #code
23:45 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Operation timed out]
--- Log closed Sat Jan 09 00:01:00 2021
code logs -> 2021 -> Fri, 08 Jan 2021< code.20210107.log - code.20210109.log >

[ Latest log file ]