I made my own Text Editor (in Rust)

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

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

  • @sherlockluk2225
    @sherlockluk2225 Год назад +676

    literally the prime example of a UI made by a backend developer

    • @EricChiEric
      @EricChiEric 7 месяцев назад +24

      well it still manages to look better than like half of all windows programs

    • @artwork-studios
      @artwork-studios 7 месяцев назад +10

      Trust me I'm more front-end so my back end looks like someone sharted in vs code

  • @notgate2624
    @notgate2624 Год назад +528

    "Why do we have to turn a string into a string" succinctly describes my least favorite thing about rust.

    • @commander3494
      @commander3494 Год назад +48

      But but but but safety and speed and blazingly fast (rocket emoji)!!!111!

    • @RenderingUser
      @RenderingUser Год назад +73

      well, atleast you wont end up segfaulting due to string difference

    • @InnerEagle
      @InnerEagle Год назад +3

      I felt that inside

    • @henriquekirchheck
      @henriquekirchheck Год назад +70

      Oh, you see, when you create a string in rust with double quotes, you are actually creating a string literal, which is a reference to a string slice on the data section of the binary. The String type is a owned type that can be modified and is stored on the heap. That's why you need to turn a string (literal) to a String (owned).

    • @okie9025
      @okie9025 Год назад +31

      @@henriquekirchheck Neat. Personally, whenever I need a simple string, I create my own garbage collected VM language running in my custom kernel mode environment made by manually flipping 0s and 1s using a magnetic needle and using SIMD instructions for performance and semaphores for thread safety. You know, just to be sure.

  • @PragandSens
    @PragandSens Год назад +146

    My man frameworker using JS and CSS on a "rust" project instead of coding it from scratch like god-sended Terry Davis intended

  • @goobertnelius
    @goobertnelius Год назад +58

    As a web dev and back end dev that codes in JS, this video is pain, and I love it.

  • @yarrakobama3417
    @yarrakobama3417 Год назад +62

    Well done soldier, we need more people like you.

    • @tomasnunes8192
      @tomasnunes8192 Год назад +11

      No we dont need more electron apps

    • @krazymeanie
      @krazymeanie Месяц назад

      Tauri is not electron ​@@tomasnunes8192

  • @AfterODDs
    @AfterODDs Год назад +19

    tauri is damn underrated. really love seeing a youtuber making something with it :3

  • @ggorg0
    @ggorg0 Год назад +27

    5:59 fixed the code by changing it to fixed 😂 (yes ik css it means that the element sticks to wherever it was on the screen when scrolling)

  • @thewilltejeda
    @thewilltejeda 10 месяцев назад +3

    As a newbie to Rust I appreciate projects like this !

  • @ego-lay_atman-bay
    @ego-lay_atman-bay 9 месяцев назад +3

    Making a text editor in a text editor

  • @yds6268
    @yds6268 Год назад +39

    I'm just starting with Tauri with no web experience (well, my Javascript knowledge is from 15 years ago).
    I'm definitely going to check out your code to see how the heck to pass data back and forth between frontend and Rust.

    • @FaceDevStuff
      @FaceDevStuff  Год назад +5

      Best of luck! You can also read tauri's documentation on that, it's pretty easy!

  • @AquaQuokka
    @AquaQuokka Год назад +27

    I can finally make bad code... blazingly fast!

  • @uCodes880
    @uCodes880 18 дней назад +1

    Expectation: I made my own Text Editor (in Rust)
    Reality: I made my own text editor with 99% web technology and 1% rust

  • @ghostlyapples
    @ghostlyapples 3 месяца назад +1

    Oh the sound of those blue switches on a board with no foam... truly a backend developer

  • @maurolimaok
    @maurolimaok 8 месяцев назад +1

    I'm learning my first steps on Ondin Project, and THIS is what I want to achieve.
    Thanks for the inspiration.

  • @danny-jo1rb
    @danny-jo1rb Год назад +22

    yay now my notepad can use 300mb of ram too, i hate having all that crusty unused ram on my system

    • @FaceDevStuff
      @FaceDevStuff  Год назад +11

      It's akshually 🤓 60MB at most, the software itself is using 3.5MB & the rest is used by Microsoft Edge WebView2. Having 50 files opened, it increased by 2MB

    • @minion3806
      @minion3806 9 месяцев назад +1

      it's electron that uses that much ram per app. tauri is slimmer

  • @linuswalker4552
    @linuswalker4552 Год назад +15

    Hey, Why not Egui or Iced? They are pure rust and native, not just web view, they might can help to improve performance even more :3.

    • @FaceDevStuff
      @FaceDevStuff  Год назад +4

      I knew egui existed but I didn't know it supports styling too, so I defaulted to using Tauri since I knew it was popular, I might try it next time I deal with Rust and need a GUI cuz it looks fun

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

    This is cool, I want to try this out as well. I wrote a text editor a couple of years ago in C#, however I wasn't really satisfied. Pretty much 90% of it was just using/calling existing functions for saving a file, loading, rtf text fields with its methods to get the cursor position etc. I think I'm gonna go deeper next time and try writing more of it myself 😊

  • @rondYT
    @rondYT Год назад +14

    How do you deal with file corruption? If a file is corrupted, it's lost forever?

    • @FaceDevStuff
      @FaceDevStuff  Год назад +5

      since every file you're modifying & creating is saved in real time, there's really no point in handling file corruption (i think)

    • @CorneliusCornbread
      @CorneliusCornbread Год назад +12

      If a file is corrupted, the most you can do is detect an app crash and save the changes to a temp file instead of the original file.
      If the file is already corrupted, it's Joever

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

      although some programs do have integrity / sanity checks on files, editors typically don't have to worry about this and can leave it up to the operating system. some configurations allow you to have redundancy data like error correction codes that can help restore corrupted files.

  • @sandeshdahal9526
    @sandeshdahal9526 7 месяцев назад +1

    I made a text editor: I sleep
    in rust: REAL SHIT

  • @treidex
    @treidex 6 месяцев назад +2

    Hey, which image editor did you use? 7:30

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

    can't wait for the next episode called "i shat myself (in rust)"

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

    Best thing about windows notepad is how simple it is. You just well write text. No rich text no customisation no this and that just text.

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

    you can just apply visibility:hidden to the textarea instead of placing it in outer space

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

    bro casually remade obsidion as a side project

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

    "i created life, in rust"

  • @kongle8737
    @kongle8737 Год назад +3

    wow a youtuber who actually made a good program!

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

    I mean, this is just Electron on steroids.

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

      electron is ass this is tauri 👍

  • @CraccaHacka
    @CraccaHacka Год назад +3

    I was expecting something more...low level since it's Rust
    JavaScript is too easy

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

    "Mouse is bad" couldn't agree more!

  • @energistixgames
    @energistixgames Год назад +13

    well jquerry is hated bloated and bad practice, also it's old and deprecated

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

    Now all you need to do is add LSP support

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

    this video makes me happy

  • @ChosenUndead1
    @ChosenUndead1 Месяц назад

    I didn't know Rust is actually real

  • @elliotalderson9517
    @elliotalderson9517 10 месяцев назад

    you should have used a rust frontend framework or iced, egui or something similar

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

      tauri is a frontend for rust

  • @code861
    @code861 Год назад +4

    tl;dw

  • @elab2024
    @elab2024 2 месяца назад +5

    This is not Rust

  • @afraid2letgo
    @afraid2letgo Год назад +5

    If this had syntax highlighting for languages as well, I'd switch to this text editor unironically haha

    • @abyssguardian
      @abyssguardian 6 месяцев назад

      Notepad++ is the best option for this kind of capability
      It's notepad WITH syntax highlight AND autocomplete!

  • @StellarWeb008
    @StellarWeb008 5 дней назад

    Good thing position fixed worked for him.
    For me it has never worked in my whole life.

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

    i cant accept the notepad slander

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

    i like the regular notepad because it's the cleanest editor ever
    you have an entire screen for writing space and having 40% of the screen just for writing doesnt seem too good for me.
    tabs in notepad would be really good...
    so thats why i use notepad++
    looks a bit outdated but it has all necesarry features and unceserassy featurs hidden

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

      Notepad has tabs now though.

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

      @@NiffirgkcaJ i don't really see it

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

      @@captheobbyist6434 it's available in Windows 11, I think.

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

    jQuery's biggest downside is speed, I think it's still worth it depending on your project though

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

    you can also use editor JS

  • @lucidattf
    @lucidattf Год назад +6

    lmfao jquery moment. vomitting

  • @kurvaosobne3897
    @kurvaosobne3897 7 месяцев назад +1

    I know no one will see this but as a audio nerd, Im going insane listening to the mic audio in stereo. Please set your mic to mono 🤓 Anyways, bussin video

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

    Logo looks really like faraday's logo

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

    How did you add this line-counter 0:50?

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

    No vim support? This editor is SLOOOOOOOOOOOOOOOOOOOOOOWWWWWWWWWW

  • @sould8159
    @sould8159 Месяц назад

    waitt, so what exactly in hewre is written in rust?

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

    We love Rust.

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

    i thought it was in the game Rust, i was so confused

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

    you rocks mate!!!!

  • @sovenok-hacker
    @sovenok-hacker Год назад

    2:59 In rust we trust ;-)

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

    In rust we trust

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

    You made the text editor in javascript not in rust as you have used tauri as a webview only.

  • @Nesdac-k1l
    @Nesdac-k1l Год назад +2

    vim?

  • @errplane_
    @errplane_ 10 месяцев назад +3

    "not even made using the best framework ever, electron" 🤡🤡🤡

  • @Toby-ve6gp
    @Toby-ve6gp 7 месяцев назад

    Can you please make the music quieter in the future, I am having a hard time understanding you.

  • @Rignchen
    @Rignchen 6 месяцев назад

    can you add vim motion?

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

    great video, despite the thumbnail & title 😂

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

    does it have bussin support?

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

    naisu :)

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

    So you just coded a website and wrapped in a WebView?

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

      tauri is a js frontend for rust....

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

    Please replace the command panel shortcut with CTRL + O or anything else, because everytime I Press CTRL + P, it gives me the microsoft edge print tab

    • @Joanyan
      @Joanyan 5 месяцев назад +1

      the problem is you didn't uninstall edge

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

    Can you plz make a vid on C++ im tryna learn it

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

      maybe, i was planning on doing it but got distracted with rust lol

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

    What does rust even do? What is it used for?

    • @ilxplay
      @ilxplay 10 месяцев назад

      he used JS and CSS no rusy

  • @krystofkuh
    @krystofkuh 7 месяцев назад +2

    Nice video, but please swich your mic to mono. The slight shifting of your voice from left to right is really anoying.

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

    jQuery is pretty nice, but I see little reason to use it in general.

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

    anyone know what program he used for the logo design?

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

      i use pixlr for all image editing stuff

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

    1:16 is it just me or do i just see a whole bunch of "putin"

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

      It's "input" 💀, I pasted that since I had it in clipboard

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

      @@FaceDevStuff I am aware. I just happened to find it funny

    • @Debugboii
      @Debugboii Месяц назад

      Yes you do. I also did see putins. The reason this happens is obvious and you probably know. But i felt like explaining so
      "inputinput"
      .....^^^^^.....
      As you can see, it does.... that and yeah (text may be messed up)

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

    ummmm, they updated notepad

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

    insane

  • @EliSterken
    @EliSterken 7 дней назад

    Yeah jQuery is still cool don't worry!

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

    You're so underrated

  • @mustafahamza4812
    @mustafahamza4812 6 месяцев назад

    JUST USE WORD PAD I ALWAYS USE IT FOR TXT FILES

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

    My favourite text editor is VSCode with vim bindings.

  • @Powered5_bg
    @Powered5_bg Месяц назад

    please tell me from where do you learn all of this pls pls pls

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

    rust for the win 🦀🦀

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

    bro just use the attr contenteditable llmao what u doing

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

    Notepad is the best for me and I'm not even joking
    ...but that doesn't mean that I don't love your editor!!!!!

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

    sheeeeeesh

  • @msfs-o7x
    @msfs-o7x Год назад

    very nice

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

    C L E A N

  • @CEO_of_code
    @CEO_of_code Месяц назад

    notepad+

  • @Typocat
    @Typocat 2 месяца назад

    ok

  • @mustafahamza4812
    @mustafahamza4812 6 месяцев назад

    Use vscode

  • @souroshi
    @souroshi 6 месяцев назад

    so where is Rust?

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

    For everyone struggling with Rusts String shenanigans,
    Let's get Rusty made a good vid explaining all of it.
    ruclips.net/video/CpvzeyzgQdw/видео.html
    Frankly it's an eye opener.

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

    cool

  • @commander3494
    @commander3494 Год назад +4

    "5 years ago is outdated"
    >Meanwhile: using jquery
    Jokes aside, it looks pretty nice, seems to do its job, and most importantly is not (quite) electron; so it's good

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

    jquery
    const $ = (q) => { return document.querySelector(q) }
    const $$ = (q) => { return document.querySelectorAll(q) }

  • @Forever_Junior
    @Forever_Junior 23 дня назад

    I hate to be that person & don't get me wrong, the project is amazingly decent
    BUT... iT's TecHnIcaLlY WrIttEn In HtMl aNd JaVaScrIpt, OnLy BaCkeND is In RuSt

  • @soupnoodles
    @soupnoodles 11 месяцев назад +1

    - Not even a programming text editor
    - Made with JS and only binded with Rust which is less than 10% Rust src even though rust is more verbose
    - Clickbait

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

    Kewl

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

    ok. Text editors r mid. Make an IDE. (not a discord one)

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

    Like why use html, this is a abomination. You are using rust to make things fast but then ypu slow it down by rendering html css and js.. just make it native, use open gl or whatever

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

    first

  • @Phantom-lr6cs
    @Phantom-lr6cs 8 месяцев назад +1

    i hope you won't go and create os in html/css/js and call it rust-written XD
    what is this nightmare men ? what notepad ? you are just coding in html and css and js XD

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

    omg why jquery 💩

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

    Speak slower bro

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

    Wants to make a "blazingly fast" editor, uses jQuery...