GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:58 JST John Regehr John Regehr

    I wasn't sure how much it would matter to vectorize scan loops such as [<] and [>>] in Brainfuck, but on my M1 Mac I'm seeing dbfi.b going about 10x faster due to just this one optimization

    http://www.hevanet.com/cristofd/08.html

    In conversation about a year ago from mastodon.social permalink
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:52 JST John Regehr John Regehr
      in reply to
      • Owen Anderson

      @resistor one of the enterprising students in my class is attacking the problem that ~35% of LLVM unit tests trigger UB. 🤪 for real.

      In conversation about a year ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:54 JST John Regehr John Regehr
      in reply to
      • Owen Anderson

      @resistor hoo boy. I want to say I'd use this in a performance comparison but LLVM 2.8 or whatev is pretty distant now

      In conversation about a year ago permalink
    • Embed this notice
      Owen Anderson (resistor@mastodon.online)'s status on Wednesday, 02-Oct-2024 15:53:54 JST Owen Anderson Owen Anderson
      in reply to

      @regehr sounds like an extra credit opportunity for some enterprising undergrad 🤪

      In conversation about a year ago permalink
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:55 JST John Regehr John Regehr
      in reply to
      • Tommy Þ

      @tommythorn ah, impossible to say without having worked on the other thing as well. what I can say about BF is that it's a bit a sweet spot for a compilers class because it has plenty of low-hanging optimizations, but they mostly require BF-specific knowledge, so for example LLVM alone would not be able to pick up most of these benefits.

      In conversation about a year ago permalink
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:55 JST John Regehr John Regehr
      in reply to
      • Tommy Þ

      @tommythorn
      but so far in class we've only targeted native assembly. once we're done with this, we'll retarget everything to LLVM and pick up for free all of those amazing low-level optimizations that are too numerous for us to do by hand

      In conversation about a year ago permalink
    • Embed this notice
      Owen Anderson (resistor@mastodon.online)'s status on Wednesday, 02-Oct-2024 15:53:55 JST Owen Anderson Owen Anderson
      in reply to

      @regehr I wrote a tracing JIT for Brainfuck using LLVM a really long time ago: https://github.com/resistor/BrainFTracing

      In conversation about a year ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        GitHub - resistor/BrainFTracing: A trace-based JIT for brainfuck
        A trace-based JIT for brainfuck. Contribute to resistor/BrainFTracing development by creating an account on GitHub.
    • Embed this notice
      Tommy Þ (tommythorn@chaos.social)'s status on Wednesday, 02-Oct-2024 15:53:57 JST Tommy Þ Tommy Þ
      in reply to

      @regehr Serious question: how does the effort used to get to the current performance level for BF compare to what it would have taken for something less insane, say the LCC VM (which formed the bases for the Quake III VM).

      In conversation about a year ago permalink
    • Embed this notice
      John Regehr (regehr@mastodon.social)'s status on Wednesday, 02-Oct-2024 15:53:58 JST John Regehr John Regehr
      in reply to

      it was not my intent for this to become an "optimizing Brainfuck" account. this will stop soon.

      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.