Subleq!

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024
  • НаукаНаука

Комментарии • 105

  • @cerulity32k
    @cerulity32k 2 года назад +31

    6:42 TIS-100 is HARD. You control multiple "nodes" that pass integers from -999 to 999 back and forth, with stack memory. It requires a lot of skill. This looks insane to even try.

  • @Astronomy487
    @Astronomy487 4 года назад +80

    i think this is the most absurd esolang ive ever seen on this channel

  • @elnico5623
    @elnico5623 3 года назад +20

    Wait is it... turing complete? Oh lord

  • @imlxh7126
    @imlxh7126 3 года назад +10

    Obfuscate confirmed to be a subleq computer

  • @emilioschmidt2106
    @emilioschmidt2106 3 года назад +24

    I'm so f*cking obsessed with this language. I just built a compiler in python for the _sic game language_ . I started building hardware that can run the compiled language (Ben eater style) cause I don't need much logic controlling different instructions (duh) and I only need a ALU that can subtract

    • @meep.472
      @meep.472 3 года назад +1

      any updates?

    • @emilioschmidt2106
      @emilioschmidt2106 3 года назад +10

      @@meep.472 Kind of: I changed plans to make it in a calculator like device that you can bring to school. I use arduino nano for that. Currently I'm programming the code to get the code into memory

    • @mushchlowastaken
      @mushchlowastaken 2 года назад +1

      @@emilioschmidt2106 sick! update part 2?

    • @josecarlos2798
      @josecarlos2798 Год назад +1

      You should uopload videos about it

  • @inigo8740
    @inigo8740 4 года назад +16

    Subleq was my first esolang, thanks to it I found your channel

  • @chair547
    @chair547 2 года назад +3

    Saying x86 assembly is low level as if REPNE SCASB doesn't exist

  • @monkey_see_monkey_do
    @monkey_see_monkey_do 4 года назад +23

    My favourite character is Obfuscate)))
    Man, hats off to your source of inspiration!

  • @matthiasschatzer8641
    @matthiasschatzer8641 Год назад +2

    I even tried to make a subleq computer in minecraft, it should work but cant load from memory correctly, so it doesnt work

  • @AlvinBalvin321
    @AlvinBalvin321 4 года назад +48

    The excitement when I see the notification

    • @Truttle1
      @Truttle1  4 года назад +16

      I didn't get a notification. :(

    • @AlvinBalvin321
      @AlvinBalvin321 4 года назад +5

      I don’t think you get a notification when you upload your own video

    • @uob-cs3366
      @uob-cs3366 3 года назад

      ذخخم جهدفعقث

    • @gamma204
      @gamma204 4 месяца назад

      ​@@AlvinBalvin321that was joke you ner

  • @Truttle1
    @Truttle1  4 года назад +5

    Join the discord server today: discord.gg/ybTRP7a

  • @themcchuck8400
    @themcchuck8400 2 года назад +2

    Thank you so much for pointing me at the esolang community. I'm having so much fun with this. Working up my own variants has gotten me back into programming after nearly 30 years.
    I remember finding and using a similar esolang on the C64 back in the mid 1980's, when computing magazines had all sorts of programming projects. Of course, they weren't called esolangs back then.

    • @Truttle1
      @Truttle1  2 года назад

      Nice! Which programming language was it?

    • @themcchuck8400
      @themcchuck8400 2 года назад

      @@Truttle1 I can't remember the details back that far. :( It had two instructions: Increment, and Decrement (jump if zero). Fun to mess with for a while back when I was young. Good memories.

  • @AlvinBalvin321
    @AlvinBalvin321 3 года назад +3

    i just randomly remembered this, and was gonna go into sic-1, but my data got reset or something i dont remmeber switching computers, tho i may have

  • @AlvinBalvin321
    @AlvinBalvin321 4 года назад +10

    on sic-1 it says that it stores the result of a - b in register A:
    "subleq" subtracts the value at address B from the
    value at address A and stores the result at address A
    (i.e. mem[A] = mem[A] - mem[B]).

    • @Truttle1
      @Truttle1  4 года назад +1

      It does that, since it's a different variant of subleq. It takes a second to get used to...

    • @AlvinBalvin321
      @AlvinBalvin321 4 года назад +3

      Ok, and also I think that’s a bit more intuitive because a comes before b so a -= b is more intuitive

  • @_fluffyy1028
    @_fluffyy1028 4 года назад +18

    What video editing software do you use? The animation is super smooth!

    • @Truttle1
      @Truttle1  4 года назад +6

      I use Moho to animate, and Adobe Premiere Pro for final edits.

  • @Damjes
    @Damjes 2 года назад +2

    What about SSB (subtract and skip if borrow). It's better because is OISC with one operand!

  • @redpepper74
    @redpepper74 3 года назад +16

    6:53 heehoo i managed to do it in only 93 cycles :P
    it's mostly because while I have only 2 commands in my subtraction loop, you have 13 :0
    not sure what you're doing with all of those variables lol, sometimes it's better to keep things negative
    (btw here's the loop if you wanted to see)
    @SubtractLoop:
    subleq @divisor, @factor, @CalcR
    subleq @negQuo, @one, @SubtractLoop

  • @douro20
    @douro20 2 года назад +1

    The ABLE processor in the Synclavier synthesizer uses only the 'move' instruction. It is also worth noting that the same instruction in x86 has been proven to be Turing-complete.

  • @official-obama
    @official-obama Год назад +1

    5:58 ...until you run out of memory. Then it's a finite state machine.

  • @KeinNiemand
    @KeinNiemand 4 года назад +6

    This is kind of like that movuscater thing where someone wrote an entire c compiler that only uses the mov instruction

    • @Truttle1
      @Truttle1  4 года назад +4

      There's actually a lot of turing-complete OISCs. I actually once saw a game engine that uses a variant of BitBitJump to run games...

    • @AshtonSnapp
      @AshtonSnapp 3 года назад

      @@Truttle1 BitBitJump?

    • @Truttle1
      @Truttle1  3 года назад +1

      @@AshtonSnapp esolangs.org/wiki/BitBitJump

    • @AshtonSnapp
      @AshtonSnapp 3 года назад

      @@Truttle1 Interesting...

  • @themcchuck8400
    @themcchuck8400 2 года назад +1

    The Dawn OS website is gone. :(

  • @stagelights_
    @stagelights_ 2 года назад +1

    I usually to some extent understand the languages after you explain them in these videos but for this one I still don't get it

  • @kepe__
    @kepe__ 3 года назад +2

    You're one of the people whose videos I instantly like now, without even watching :p

  • @faraday4160
    @faraday4160 3 года назад +6

    the point this language tries to make is legit. computers became too complicated and it can't be avoided if you want to be at least somewhat sane.

  • @crfout1
    @crfout1 2 года назад +1

    In the Truth program (5:28), the assembly and code don't match. In the assembly, clearing tmp happens after printing. In the code, clearing tmp happens before printing. Man, that has bugged me for months, and I finally bothered to pause the video to figure out why.

  • @Orincaby
    @Orincaby 3 года назад +3

    is this the only truttle1 video with 100% like ratio?

  • @okboing
    @okboing 3 года назад +5

    I also conceived of a language with only one command, called NANDulator
    It uses an unspecified length binary string, and each command is simply 3 numbers, like this one.
    (a, b, c) will set c to NAND of a and b

    • @cmyk8964
      @cmyk8964 2 года назад +4

      How would you create control flow?

    • @RealLifeKyurem
      @RealLifeKyurem Год назад

      ​@@cmyk8964 Detailed here: ruclips.net/video/4NsZES_rQ7U/видео.html

    • @official-obama
      @official-obama Год назад

      ​@@cmyk8964 maybe the negative bits could be the program counter, and if you also need IO, you can put it between the positive and negative things
      you might also need bitshifts, because if you need to take the nand of bits in a different place value, then you need to shift them together. you might be able to bodge it in an AutoHotKey-ish way by making it so that the first instruction is even then the operation is nand, and if it's odd then the operation is bitshift.

    • @official-obama
      @official-obama Год назад

      @@official-obama that's an old comment (i think), you shouldn't have replied to it

  • @emilioschmidt2106
    @emilioschmidt2106 3 года назад +3

    I am starting to make a compiler for that language with python. Wish me luck
    Edit:
    I'm done. Does anyone want to code review?

  • @JanxZ
    @JanxZ 4 года назад +7

    This is big brain time.

  • @oblivion_2852
    @oblivion_2852 3 года назад +1

    The real question is what instruction set results in the fastest computer. RiscV is pretty great cause the newest definitions have 512 bit register widths for simd

  • @DomiDave
    @DomiDave Год назад

    3:17 why are the variables declared _after_ the code?

  • @gabi.garcez
    @gabi.garcez 4 года назад +6

    I really like the content of your videos but the audio is kinda bad and some of the FX are too loud. I'm constantly readjusting the volume throughout a video. Not to be mean, it's just because I like what you do and would like to see it get more views.

  • @kilgarragh
    @kilgarragh 2 года назад +1

    you could... compile the c based linux kernel to subleq... if that cpu ever existed

    • @Lixxide
      @Lixxide 7 месяцев назад

      i'l do it one day, maybe

  • @filisoafe
    @filisoafe 2 года назад

    im stuck on sic-1 game 's task dvision. can you paste the solution here?

  • @SysFan808
    @SysFan808 9 месяцев назад

    question: how do you immediate numbers into stuff, to make constants?
    making a computer in turing complete (game on steam where you make computers outta logic gates) using this architecture, and the ram starts out all empty. I don't see how I could Immediate a value without inputting...

    • @zoltanpataki1307
      @zoltanpataki1307 5 месяцев назад

      This theoretical arch has both the program code and the variables in RAM/RW memory. In Turing Complete, you can sadly only program a ROM directly, so normaly the code is separate from the variables.
      What you can do is create a circuit for copying the full ROM into a RAM module (increment program counter by 1, connect the first output of ROM directly to the input of the RAM, address for both is the output of the counter.). When this is done (program counter reaches 255 or whatever is your max storage in ROM), the ROM-RAM connection should be disconnected (switch?) and the rest of the computing hardware should read the instructions from the RAM, not the ROM like normally in the game.
      This idea of copying the whole ROM into the RAM is necessary for any self-modifying code, and it models modern computers much nicely. Sadly, you will lose debugging functions because after the copying is done there is not much to do with the ROM.

  • @commentator2.054
    @commentator2.054 4 года назад +1

    Hey Truttle, can you do a video about the language "Trumpscript"? I want to understand the syntax and it seems like a funny language

    • @Truttle1
      @Truttle1  4 года назад +2

      That video will either be coming out on January 20, 2021 or Janary 20, 2025.

    • @commentator2.054
      @commentator2.054 4 года назад

      @@Truttle1 i guess depending if trump is still president?

    • @Truttle1
      @Truttle1  4 года назад +1

      @@commentator2.054 coming back to this comment to say 2021

    • @1TW1-m5i
      @1TW1-m5i 3 года назад +1

      All the more reason to be thankful he's gone

    • @themcchuck8400
      @themcchuck8400 2 года назад

      @@Truttle1 Trumpscript, although popular with the maker community, was cancelled by its main competitor, Progscript. They bought the distribution system, scrambled the code base, and deleted the published packages.

  • @Lixxide
    @Lixxide 7 месяцев назад

    i really want to create this CPU

  • @otesunki
    @otesunki 3 года назад +2

    "Instead of a normal assembly language..."
    what? like the RISC with subtract and branch if less than or equal to or something stupid like that?
    "... what If we had an assembly language with ONE instruction?"
    uhhhhhh SBLTE?
    [ looks at title ]
    oh
    oh no

  • @ShotgunLlama
    @ShotgunLlama 4 года назад +1

    How does Dawn OS do IO?

  • @lucaayfmlyysiaejdsrtnnervd4646
    @lucaayfmlyysiaejdsrtnnervd4646 4 года назад +1

    This is a birthday gift to me. I have my birthday tomorrow...
    Timing is crazy.

  • @pavelnovak4888
    @pavelnovak4888 4 года назад

    I like the Mario cart málo music

  • @motzyt
    @motzyt 3 года назад

    CORNELIUS?!?!

  • @osmineretro9591
    @osmineretro9591 4 года назад +1

    new video yay (I'm really excited!)

  • @emilioschmidt2106
    @emilioschmidt2106 3 года назад +2

    I'm on Level 14

  • @GoldenD60
    @GoldenD60 3 года назад

    3:20 WE ALL GOT COCONUT MALLED

  • @hypocritical7379
    @hypocritical7379 4 года назад

    hey i can set up a linux website in Cent OS for you for free also it will be pretty fast

    • @Truttle1
      @Truttle1  4 года назад +2

      I'll set up a website on my own, but thanks for the offer.

  • @ToadComrades
    @ToadComrades 4 года назад +4

    1:30 ITS HIM
    ITS HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIM

  • @nezbednik
    @nezbednik 4 года назад +1

    i love it

  • @tomlamba6207
    @tomlamba6207 4 года назад +1

    Wow I was like wouldn't it be cool if he make a video on logo. And he made a video on logo! Then I was like wow wouldn't it be cool if he did a video on a minimal assembly and he made a video on subleq! Please help. I'm scared...

    • @Truttle1
      @Truttle1  4 года назад +1

      Did you join RUclips just to make this comment?

    • @tomlamba6207
      @tomlamba6207 4 года назад

      @@Truttle1Oh hey! No I actually just made a new account.

  • @potatoxel7800
    @potatoxel7800 4 года назад

    SUB and LEQ i guess.

  • @kaffetasse-sdv
    @kaffetasse-sdv 4 года назад

    Yet another great video! Even though this... thing is actually worse than brainf**k :(
    Will you make a video about Fortran in the future?

  • @Allstreamer_
    @Allstreamer_ 4 года назад +1

    Why was this made

    • @Truttle1
      @Truttle1  4 года назад +5

      Fun?

    • @Allstreamer_
      @Allstreamer_ 4 года назад +3

      @@Truttle1 well yes but no

    • @Truttle1
      @Truttle1  4 года назад +4

      @@Allstreamer_ well no but yes

    • @spx0
      @spx0 2 года назад +2

      @@Truttle1 also it has practical applications, the first Carbon nanotube computer “Cedric” implemented only one instruction (OISC) “substract and branch of negative” !!!!!

  • @TheRojo387
    @TheRojo387 8 месяцев назад

    RISC is still superior.

  • @theemeraldblock3191
    @theemeraldblock3191 4 года назад

    Si.

  • @cameron6464
    @cameron6464 4 года назад

    Love the vid!!!!

  • @Blue-Maned_Hawk
    @Blue-Maned_Hawk 4 года назад

    Cool

  • @Nicec00lkidd
    @Nicec00lkidd 4 года назад

    subqlek

  • @arkanon8661
    @arkanon8661 3 года назад

    this surprisingly doesnt have many likes

  • @MsMosoka
    @MsMosoka 2 года назад

    asm