code logs -> 2021 -> Tue, 19 Jan 2021< code.20210118.log - code.20210120.log >
--- Log opened Tue Jan 19 00:00:13 2021
00:21 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
01:02 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer]
01:02 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
01:11 Kindamoody is now known as Kindamoody[zZz]
03:14 Yossii [Yossii@Nightstar-d7h8ki.org] has quit [Connection closed]
04:02 Degi [Degi@Nightstar-4so3fu.pool.telefonica.de] has quit [Ping timeout: 121 seconds]
04:04 Degi [Degi@Nightstar-12l3e7.pool.telefonica.de] has joined #code
04:12 bluefoxx [fuzzylombax@Nightstar-gmbj85.vs.shawcable.net] has joined #code
04:37 SmithKurosaki [uid215460@Nightstar-ed0oqj.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
05:04 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
05:04 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
05:04 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
05:33
<&McMartin>
Hooray, got this ported over to my other renderer
05:33
<&McMartin>
Boo/hooray this is highlighting a bug in that renderer
05:33
<&McMartin>
Booray
05:34 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [Ping timeout: 121 seconds]
05:34
<&McMartin>
It's also pretty cool to be building normal graphics/animation programs with normal tools on a modern system and still ending up with a final binary that's, like, 25KB and only links stuff that's on the system
07:22 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
07:22 mode/#code [+o himi] by ChanServ
07:29 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
07:29 mode/#code [+qo Vornicus Vornicus] by ChanServ
07:37 celticminstrel [celticminst@Nightstar-n1gkap.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
08:25 abudhabi [abudhabi@Nightstar-df9cqm.adsl.tpnet.pl] has joined #code
09:32 abudhabi [abudhabi@Nightstar-df9cqm.adsl.tpnet.pl] has quit [NickServ (RECOVER command used by abudhabi_)]
09:32 abudhabi [abudhabi@Nightstar-a9ev88.adsl.tpnet.pl] has joined #code
09:41 * TheWatcher eyes https://twitter.com/foonathan/status/1351251411779133440
09:43
<~Vornicus>
what
09:46
< catalyst>
this tells you so much about C++ as a language
09:46
<@TheWatcher>
It's spiders all the way down~
09:48
< catalyst>
it's got everything - SFINAE, questionable use of types as insight into the compiler, poor standards compliance, hubris
09:48
<&[R]>
Imagine having the production code that would cause this to be revealed
09:51
< catalyst>
I've done similar things and I'm not proud
09:57
<@TheWatcher>
https://i.imgur.com/pFEGluP.jpg ~
10:02
< catalyst>
yes and it's in a game which includes that man (in that role)
10:03
< catalyst>
so maybe that's on brand idk
10:03
<@TheWatcher>
:D
10:03
<&[R]>
The one where he bitches you out for playing it at the end of it
10:03
<&[R]>
?
10:03
< catalyst>
I have oo idea
10:03
< catalyst>
no
10:03
< catalyst>
you think I play the games I make?!
10:04
< catalyst>
(I genuinely don't know, does he?)
10:04
< catalyst>
(that sounds like the kind of dialog they'd write)
10:05
<&[R]>
https://old.reddit.com/r/todayilearned/comments/2u33m1/til_the_1997_video_game_the_lost_world_jurassic/
10:05
<@TheWatcher>
Different game, [R]
10:06
<@TheWatcher>
Jurassic World Evolution
10:06
<@TheWatcher>
Released in 2018, FDev game.
10:12
< catalyst>
in 97 I was 11 :D
10:15
<~Vornicus>
gosh I thought you were my age
10:25
< catalyst>
I'm 34
10:26
< catalyst>
is that a lot younger than you thought?
10:30
<~Vornicus>
yeah I'm turning 40 this year
10:36
<&Reiver>
!
10:36
<&Reiver>
Nooo Vorn is eternal
11:09 Kindamoody[zZz] is now known as Kindamoody
11:12
<@gnolam>
Argh
11:12
<@gnolam>
Bail, damn you, bail! We're takin on water! The abstractions are leaking!
11:13
<@TheWatcher>
I sure you can get a cream for that.
11:26
<@sshine>
I'd like to grep 'import' that are not '^import' or '^@import'. if it were only one, I'd write: ack '(?!^)import'
11:28
<@sshine>
adding the second constraint seems to do nothing: ack '(?!^@?).?import'
11:28
<~Vornicus>
`[^@]import`
11:28
<~Vornicus>
if there's a character before it then it's not at the beginning
11:29
<@sshine>
the ^ is the beginning-of-line symbol
11:29
<@sshine>
I think [^@] means literal ^?
11:29
<@sshine>
sorry for regex dialects :) @ is literal, ^ is beginning-of-line
11:29
<&[R]>
[^@] means any one character that isn't @
11:29
<~Vornicus>
isn't it negate, inside of brackets
11:29
<~Vornicus>
that
11:30
<@sshine>
ah yes
11:30
<@sshine>
so [^@]import avoids the lines that begin with @import, but not the lines that begin with just import.
11:31
<&[R]>
$ printf '%s\n' {,^,@}import | grep -E '^[^\^@]?import'
11:31
<&[R]>
import
11:32
<&[R]>
Oh, derp
11:32
<@sshine>
it seems, incidentally, that (?!^@).import works because the . fails to match if import is at the beginning of the line.
11:32
<@sshine>
I found that by mistake.
11:32
<@sshine>
https://regex101.com/r/JHOt1J/1
11:33
<@sshine>
regexes are so hack-ish.
11:33
<@sshine>
"oh, it worked by accident? good enough for me!"
11:34
<@sshine>
thanks guys :)
11:35
<&[R]>
^[^@].*import
11:35
<&[R]>
I think that's what you want
11:36
<&[R]>
[^@] will match any non @ character meaning the line can't start with import (unless import is twice in the line), .* will let it match import later in the line
11:57
< catalyst>
https://cdn.discordapp.com/attachments/602447400732327959/801056851206602762/133940680_3563358290379690_8976406116589538629_o.png
12:07
<@TheWatcher>
Heh, that's neat
12:08
<@sshine>
[R], it is.
12:08
<@sshine>
[R], that one is also more easily extensible wrt. handling whitespace.
12:08
<@sshine>
[R], thanks!
13:41
<@sshine>
haha, I'm trying to learn IntelliJ shortcuts, and hitting one for "delete current line", I literally get "Shortcut conflicts: Two shortcuts are occupying this." -- this is a peculiar way of overloading the keyboard to the extent that it isn't useful by default.
13:42
<@sshine>
also, shortcuts are *completely* different between Mac and Windows/Linux. "Go to line" is Ctrl+G or Command+L.
13:43
<@sshine>
I think Vim/Emacs have a tendency towards adding hundreds more shortcuts than most single users will find and use, but at least, they're there for googling, and everyone can focus on and extend their preferred subset.
13:43
<@sshine>
but at least... those shortcuts mostly work by default. :-D
14:20 celticminstrel [celticminst@Nightstar-n1gkap.dsl.bell.ca] has joined #code
14:20 mode/#code [+o celticminstrel] by ChanServ
17:01 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
17:16 Netsplit Traal.Nightstar.Net <-> Krikkit.Nightstar.Net quits: @PinkFreud
17:24 Netsplit over, joins: @PinkFreud
18:42 john_cephalopoda [john@Nightstar-gckknj.dip0.t-ipconnect.de] has joined #code
20:42 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Operation timed out]
20:43 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
20:43 mode/#code [+o Syloq] by ChanServ
21:46 abudhabi [abudhabi@Nightstar-a9ev88.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
22:42
< john_cephalopoda>
Designing this assembler is such a hassle. Single-pass vs. double-pass, configuration of ELF headers, one big assembly vs. assembly object files and linking...
22:45
<&McMartin>
If you're going to be doing ELF, save yourself all the pain and just be multipass. There's no reason to eat the shit that is backpatching if you don't have to... and that goes double when instructions might be of variable length depending
22:45
<&McMartin>
I forget if x86 does that
22:48
< john_cephalopoda>
I am currently using Forth to directly parse assembly-style code. So for "MOV EAX, EBX", I write "EAX EBX asm:mov". The "EAX" and "EBX" words put an ID on the stack, the "asm:mov" word takes the two top stack elements and juggles them around in order to create the proper instruction.
22:49 * McMartin nods
22:51
< john_cephalopoda>
I have implemented two-pass with RISC-style opcodes (movi, movr, etc) and single-pass with Intel-style opcodes (mov does every mov operation, operands have a type identifier).
22:52
< john_cephalopoda>
It all works, I can assemble ELF executables for Linux-i386 and Barebones x86 with either assembler. But I am happy with neither.
22:55
< john_cephalopoda>
Another option would be to not make the assembly Forth code. That would make parsing more difficult and would turn something that's practically a macro assembler into a plain assembler with limited extra functionality. It's so hard to decide, and all options are valid results since it's a hobby project I'm doing myself for the fun of it...
22:56
<&McMartin>
Mmm
22:56
<&McMartin>
That's an interesting thought
22:56
<&McMartin>
I know the answer for Lisp-like assemblers
22:56
<&McMartin>
Which often did this on purpose because then you get All Of Lisp as your preprocessor, which is pretty boss
22:56
<&McMartin>
And Forth would likely have similar neat bits
22:57
<&McMartin>
I guess in the modern world Gradle kinda does this, with the build files being groovy scripts under the hood and that makes them more procedural if you need it
23:00
< john_cephalopoda>
I think I'm veering towards the "The asssembly code is Forth code" + Two-pass route. Single-pass is nice but struct-like things are a pain in Forth and I need those for keeping track of addresses.
23:02 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
23:03
< john_cephalopoda>
Here's the code of the single-pass one: https://cuttle.space/tmp/rasc-x86.html
23:08
< john_cephalopoda>
It's getting late, I'm leaving for tonight. Thanks, McMartin, for listening to and commenting on my thoughts on assembler architecture. It helped a lot.
23:08
< john_cephalopoda>
Good night!
23:09 john_cephalopoda [john@Nightstar-gckknj.dip0.t-ipconnect.de] has quit [[NS] Quit: Leaving]
23:39 mac [macdjord@Nightstar-re5.7if.45.45.IP] has joined #code
23:39 mode/#code [+o mac] by ChanServ
23:42 macdjord [macdjord@Nightstar-re5.7if.45.45.IP] has quit [Ping timeout: 121 seconds]
23:50
< Yossarian>
Not a coding question, but what is the general thought on encrypting your home partition? Assume drive is an SSD.
23:51
<~Vornicus>
My general understanding is that it is a relatively limited protection
--- Log closed Wed Jan 20 00:00:15 2021
code logs -> 2021 -> Tue, 19 Jan 2021< code.20210118.log - code.20210120.log >

[ Latest log file ]