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
    alcinnz (alcinnz@floss.social)'s status on Wednesday, 22-Jan-2025 03:28:15 JST alcinnz alcinnz

    As for how I'd implement the rest of Lua's `math` standard library upon our Lua interpreter bootstrapped upon a risc32cfimv...

    `math.abs` could simply be `if x < 0 do return -x else return x end`.

    `math.ceil`, `math.floor`, `math.fmod`, & `math.sqrt` have corresponding opcodes from the RISC-V "F" extension, mainly thanks to its rounding-mode flags. And as such would be implemented in Assembly.

    `math.deg` & `math.rad` multiplies or divides its argument by pi/180 unit-conversion factor.

    1/3?

    In conversation about 5 months ago from floss.social permalink
    • Embed this notice
      alcinnz (alcinnz@floss.social)'s status on Wednesday, 22-Jan-2025 03:39:52 JST alcinnz alcinnz
      in reply to
      • faried nawaz

      @fn Nope. But I've described a design for such a machine in some detail: https://adrian.geek.nz/from-scratch/personal-computer

      The CPU described there is nothing special, a fairly typical design today.

      In conversation about 5 months ago permalink

      Attachments


    • Embed this notice
      faried nawaz (fn@p.node.pk)'s status on Wednesday, 22-Jan-2025 03:39:59 JST faried nawaz faried nawaz
      in reply to
      @alcinnz you have a 32 bit cpu with rvv 1.0?
      In conversation about 5 months 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.