Brendan G Bohannon

12.3K posts

Brendan G Bohannon

Brendan G Bohannon

@cr88192

Hobbyist: C, C++, ASM; compiler/VM/ISA dev, DSP, 3D/GL, FPGA & Verilog, ... Electronics / microcontrollers /... Single(asex/demi), ASD/aspie, GenY, he/him

Tulsa, OK Katılım Eylül 2015
596 Takip Edilen357 Takipçiler
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Idle thought: Maybe people making shows (well, more common in indie shows at this point) should lay off some on the "Hey, our world is a video game!" plot; it is starting to get a little overused/stale, and IMO tends to immediately lessen whatever setting they invoke it in...
English
0
0
0
23
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Did debate whether to rework the 3R/3RI compare ops to be more consistent, but this didn't seem worth it in cost/benefit (non-zero cost for no functional benefit). As for "Bcc Imm6/Disp6", seems to save around 0.5% off the size of the binary; merit here is debatable...
English
0
0
0
14
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Well, since I was breaking stuff anyways, also made a few other tweaks that were on my "annoyance list": Moving around a few encodings, and eliminating 32-bit encodings for some other rarely used instructions (demoted to 64-bit encodings), etc. Also added Bcc Imm6+Disp6 ops.
English
1
0
0
19
Brendan G Bohannon
Brendan G Bohannon@cr88192·
I am on the fence about whether to make a more significant breaking change to my XG3 ISA: Changing the ADD/ADD{S/U}.L instructions from Imm10un to Imm10s. This would allow me to reclaim a reasonable chunk of encoding space with small impact to code density, but breaks stuff, ...
English
1
0
0
55
Brendan G Bohannon
Brendan G Bohannon@cr88192·
@ProgramMax @lauriewired Can't answer for mainstream CPUs, but for a soft-processor on FPGA, it can make sense to only implement core parts of the ISA in hardware; and effectively implement the rest as firmware. Using such an instruction effectively invokes an invisible trap handler, that fakes the op.
English
1
0
0
245
Chris Blume
Chris Blume@ProgramMax·
@lauriewired I don't know why, but I had in my mind that it was an elaborate fuse network. On-boot patching makes a lot more sense. Well now I'm curious about the internals of how a CPU handles patchable instructions. I had the wrong mental model. *off to the reading chair*
English
5
0
27
2.3K
Chris Blume
Chris Blume@ProgramMax·
I feel like this might be a question for @lauriewired Suppose I am running my own local server. I might not want microcode updates that slow down my CPU. The mitigation is a non-issue here. And suppose one CPU is just perfect for my specific case. Market for non-updated CPUs??
English
4
1
121
21.8K
Brendan G Bohannon
Brendan G Bohannon@cr88192·
@mcnabbd Ironically, if anything IME they are more likely to anthropomorphize themselves, adding sentiment, or hallucinating (personal) experiences they could not have had, etc. But, OTOH, they do allow using a more direct communication style compared with normal human interactions...
English
0
0
1
31
Doug McNabb
Doug McNabb@mcnabbd·
i notice that when I chat with the AI, I don't anthropomorphize them at all. i don't imagine I'm talking to a real person, or even a "thing". Like knowing how a magic trick works ruins the trick.
English
3
0
4
227
Brendan G Bohannon
Brendan G Bohannon@cr88192·
@marcsh @davepl1968 I was originally designing for a customized ISA and originally didn't want to require virtual memory, which created an incentive for smaller stack sizes (mostly ended up with a 128K default), along with an ABI design that allows multiple processes in a single address space, ...
English
1
0
0
18
/// //
/// //@marcsh·
@cr88192 @davepl1968 I havent heard of any C doing scoped malloc as alloca. Does sound awesome, but C is a fertile place to try out great ideas Aside: The stack is just an arena backed by hardware so in my lang (not Clike) I allow replacement of that arena (static&dyn) Still in design
English
1
0
1
44
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Upsampled to be above the minimum image size, but here is an example of the optimized color palette generated by the SDF encoder... Not sure if there are any obvious patterns here... (Note, luma and proximity sorted during palette generation).
Brendan G Bohannon tweet media
English
0
0
0
36
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Well, for example, current methods store glyphs as 16x16 pixels, and 16x16 glyphs per page. So, as-is, each page needs 65K as a BMP, and on-average LZ compress to around 30K. Can note that I am using specialized palette optimization algos and no dither (dither makes it worse).
English
1
0
0
29
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Not sure if anyone knows of a particularly good way to compress SDF images. At present one of my "better" strategies seemingly being to use LZ compressed 256-color BMP images. Some other lossy formats may "look good" but generate worse results on the text-rendering output side.
English
1
0
0
82
Brendan G Bohannon
Brendan G Bohannon@cr88192·
@icpolicy @davepl1968 Limit depends on target. 4MB or 8MB is typical in Linux on PC class hardware. Windows traditionally used 1MB for stacks. On a custom target of mine, I typically use 128K, but this is more because many programs (even without large local alloc) can break with a 32K or 64K stack.
English
1
0
1
426
icpolicy
icpolicy@icpolicy·
@davepl1968 Yes but the 8 megabyte limit is a bit of a drawback on systems with gigs of ram, don't you think?
English
2
0
0
2.8K
Brendan G Bohannon
Brendan G Bohannon@cr88192·
@MuzafferKal_ Yeah, a lot of these sorts of videos cheat in one way or another. This one with a changing character in the corner, and others with bouncing balls to show frame-rates not actually moving at the claimed frame-rates, ... It is annoying sometimes...
English
0
0
0
13
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Well, and people more talked about TV shows, a few popular ones in the era: Invader Zim; South Park; Serial Experiments Lain; Gundam; Dragon Ball Z; ... The fail that was "ST: Enterprise". And, games like Half-Life, ... Maybe someone could try to nostalgia-ize this era...
English
0
0
0
36
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Well, OK, so, say, my school era world wasn't so much about music or tapes; more about computers and tech. Game consoles, people playing Pokemon on Gameboy, ... In HS, people had cellphones (flip phones), with little plushies, like South Park's Kenny, or Gir from Invader Zim...
English
1
0
0
47
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Hmm... So I am old now (Gen Y); sees a video talking about "Mixtape", felt curious, watches part of an LP. I don't get it / doesn't resonate... I may be old, but not *that* old; and, why do they talk like the Ninja Turtles? (Well, FWIW, my world looked closer to Code Lyoko...).
English
1
0
0
56
Brendan G Bohannon
Brendan G Bohannon@cr88192·
OK, put a video of it on YouTube, albeit the basic mode (not the 3D glasses mode): youtu.be/beDvAwtf49M ... After a few minutes, almost start to stop noticing that it is monochrome apart from periodic reminders...
YouTube video
YouTube
English
0
0
0
23
Brendan G Bohannon
Brendan G Bohannon@cr88192·
May look like a bit much, but added this to the Win32 version, and combining this with 3D anaglyph seems to work reasonably well (3D scene readily visible with 3D glasses despite the harsh dithering effect; and no retinal-rivalry effects...).
Brendan G Bohannon tweet media
English
1
0
2
73
Brendan G Bohannon
Brendan G Bohannon@cr88192·
Well, another probably pointless experiment: Trying to modify the Doom port to my ISA to have a mode with an aesthetic similar to "Return of the Obra Dinn" (full monochrome). Still a bit lacking though (looks nowhere near as good), and painfully slow ATM...
Brendan G Bohannon tweet media
English
1
0
1
98