I made my own Text Editor (in Rust)

  Рет қаралды 78,296

FaceDev

FaceDev

7 ай бұрын

notepad is impressive
Fextify: github.com/face-hh/fextify
Patreon: / facedevstuff
Discord server: / discord
Twitter: / facedevstuff
MUSIC:
Background song (1) - • crepuscular rays
Background song (2) - • Crossover - Persona 5 ...
Background song (3) - • Flamingosis - Flute Salad
Background song (4) - • Sandman - Ignite
Outro song - • 9 • Nine Nights • Day ...
Character art by @JersonEXE
- Twitter: / jersonbrawlstar
Thanks for watching!

Пікірлер: 133
@sirbuttonhd
@sirbuttonhd 7 ай бұрын
“Made my own editor in Rust” > writes text editor in JS and CSS Alright bud
@SoDamnMetal
@SoDamnMetal 7 ай бұрын
Yep, I feel betrayed and lied to.
@mollthecoder
@mollthecoder 6 ай бұрын
It was a Rust/HTML/CSS/JS mix using Tauri
@vicenteeduardo5598
@vicenteeduardo5598 6 ай бұрын
less than 10% rust code 😢
@poms3559
@poms3559 6 ай бұрын
​@@mollthecoderIt's technically a JS text editor not rust. Rust was only used as wrapper to do basic operations which could be done in js anyways. Title should be * I made a Js text editor but added few lines of rust for a clickbait *
@byafterall
@byafterall 6 ай бұрын
@@vicenteeduardo5598 27.6%
@sherlockluk2225
@sherlockluk2225 7 ай бұрын
literally the prime example of a UI made by a backend developer
@EricChiEric
@EricChiEric 21 күн бұрын
well it still manages to look better than like half of all windows programs
@notgate2624
@notgate2624 7 ай бұрын
"Why do we have to turn a string into a string" succinctly describes my least favorite thing about rust.
@commander3494
@commander3494 7 ай бұрын
But but but but safety and speed and blazingly fast (rocket emoji)!!!111!
@RenderingUser
@RenderingUser 7 ай бұрын
well, atleast you wont end up segfaulting due to string difference
@InnerEagle
@InnerEagle 6 ай бұрын
I felt that inside
@henriquekirchheck
@henriquekirchheck 6 ай бұрын
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 6 ай бұрын
@@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 6 ай бұрын
My man frameworker using JS and CSS on a "rust" project instead of coding it from scratch like god-sended Terry Davis intended
@mbwilding
@mbwilding 6 ай бұрын
This
@crafterboy27
@crafterboy27 6 ай бұрын
As a web dev and back end dev that codes in JS, this video is pain, and I love it.
@tedbasher3000
@tedbasher3000 7 ай бұрын
i hate electron
@yarrakobama3417
@yarrakobama3417 7 ай бұрын
Well done soldier, we need more people like you.
@tomasnunes8192
@tomasnunes8192 6 ай бұрын
No we dont need more electron apps
@AfterODDs
@AfterODDs 6 ай бұрын
tauri is damn underrated. really love seeing a youtuber making something with it :3
@AquaQuokka
@AquaQuokka 7 ай бұрын
I can finally make bad code... blazingly fast!
@yds6268
@yds6268 7 ай бұрын
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 7 ай бұрын
Best of luck! You can also read tauri's documentation on that, it's pretty easy!
@ggorg0
@ggorg0 7 ай бұрын
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)
@cosecseccot
@cosecseccot 5 ай бұрын
greatest pun of all time
@thewilltejeda
@thewilltejeda 3 ай бұрын
As a newbie to Rust I appreciate projects like this !
@therandomsomeone.
@therandomsomeone. 19 күн бұрын
can't wait for the next episode called "i shat myself (in rust)"
@rondYT
@rondYT 7 ай бұрын
How do you deal with file corruption? If a file is corrupted, it's lost forever?
@FaceDevStuff
@FaceDevStuff 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
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.
@maurolimaok
@maurolimaok 27 күн бұрын
I'm learning my first steps on Ondin Project, and THIS is what I want to achieve. Thanks for the inspiration.
@energistixgames6067
@energistixgames6067 7 ай бұрын
well jquerry is hated bloated and bad practice, also it's old and deprecated
@CraccaHacka
@CraccaHacka 6 ай бұрын
I was expecting something more...low level since it's Rust JavaScript is too easy
@skylo706
@skylo706 6 ай бұрын
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 😊
@danny-jo1rb
@danny-jo1rb 6 ай бұрын
yay now my notepad can use 300mb of ram too, i hate having all that crusty unused ram on my system
@FaceDevStuff
@FaceDevStuff 6 ай бұрын
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 2 ай бұрын
it's electron that uses that much ram per app. tauri is slimmer
@oguzturkay
@oguzturkay 9 күн бұрын
I mean, this is just Electron on steroids.
@Snailsxd
@Snailsxd 6 ай бұрын
My man used jquery in 2023 💀
@gelis07
@gelis07 6 ай бұрын
why not?
@odin9523
@odin9523 Ай бұрын
How did you add this line-counter 0:50?
@linuswalker4552
@linuswalker4552 6 ай бұрын
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 6 ай бұрын
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
@kleins0
@kleins0 7 ай бұрын
insane
@sandeshdahal9526
@sandeshdahal9526 14 күн бұрын
I made a text editor: I sleep in rust: REAL SHIT
@dei8bit
@dei8bit Ай бұрын
this video makes me happy
@code861
@code861 6 ай бұрын
tl;dw
@kjanimates
@kjanimates 6 ай бұрын
does it have bussin support?
@ego-lay_atman-bay
@ego-lay_atman-bay 2 ай бұрын
Making a text editor in a text editor
@elanticrypt0
@elanticrypt0 5 ай бұрын
you rocks mate!!!!
@theaeropilot7
@theaeropilot7 7 ай бұрын
very nice
@SIMULATAN
@SIMULATAN 6 ай бұрын
bro casually remade obsidion as a side project
@jtg4416
@jtg4416 2 ай бұрын
anyone know what program he used for the logo design?
@FaceDevStuff
@FaceDevStuff 2 ай бұрын
i use pixlr for all image editing stuff
@OrangeSmilez
@OrangeSmilez 6 ай бұрын
"i created life, in rust"
@Stratiis
@Stratiis 6 ай бұрын
You're so underrated
@stickguy9109
@stickguy9109 6 ай бұрын
"Mouse is bad" couldn't agree more!
@redball4funnymoments
@redball4funnymoments 27 күн бұрын
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
@maksiksq
@maksiksq 5 ай бұрын
jQuery's biggest downside is speed, I think it's still worth it depending on your project though
@GearsDatapacks
@GearsDatapacks 4 ай бұрын
Now all you need to do is add LSP support
@Toby-ve6gp
@Toby-ve6gp 6 сағат бұрын
Can you please make the music quieter in the future, I am having a hard time understanding you.
@user-sj7lk5lg3x
@user-sj7lk5lg3x 7 ай бұрын
vim?
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 7 ай бұрын
naisu :)
@aianshu
@aianshu 2 ай бұрын
you can also use editor JS
@elliotalderson9517
@elliotalderson9517 3 ай бұрын
you should have used a rust frontend framework or iced, egui or something similar
@csharp_enjoyer
@csharp_enjoyer 7 ай бұрын
cool
@commander3494
@commander3494 7 ай бұрын
"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
@ssdjelal
@ssdjelal 6 ай бұрын
You made the text editor in javascript not in rust as you have used tauri as a webview only.
@roughlyunderscore
@roughlyunderscore 6 ай бұрын
If this had syntax highlighting for languages as well, I'd switch to this text editor unironically haha
@jules_________
@jules_________ 6 ай бұрын
Logo looks really like faraday's logo
@vk8a8
@vk8a8 6 ай бұрын
What does rust even do? What is it used for?
@ilxplay
@ilxplay 3 ай бұрын
he used JS and CSS no rusy
@captheobbyist6434
@captheobbyist6434 6 ай бұрын
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 6 ай бұрын
Notepad has tabs now though.
@captheobbyist6434
@captheobbyist6434 6 ай бұрын
@@NiffirgkcaJ i don't really see it
@user-bi1vv3vq3i
@user-bi1vv3vq3i 6 ай бұрын
Use dred, it is as fast as old Notepad and has tabs (you can also make your own themes!)
@NiffirgkcaJ
@NiffirgkcaJ 6 ай бұрын
@@captheobbyist6434 it's available in Windows 11, I think.
@nicolasreveco3748
@nicolasreveco3748 6 ай бұрын
i thought it was in the game Rust, i was so confused
@kongle8737
@kongle8737 5 ай бұрын
wow a youtuber who actually made a good program!
@msodev
@msodev 6 ай бұрын
No vim support? This editor is SLOOOOOOOOOOOOOOOOOOOOOOWWWWWWWWWW
@galitan5881
@galitan5881 13 күн бұрын
sheeeeeesh
@lucidattf
@lucidattf 7 ай бұрын
lmfao jquery moment. vomitting
@sovenok-hacker
@sovenok-hacker 4 ай бұрын
2:59 In rust we trust ;-)
@realzuhaz
@realzuhaz 7 ай бұрын
Kewl
@spytronx
@spytronx 6 ай бұрын
Can you plz make a vid on C++ im tryna learn it
@FaceDevStuff
@FaceDevStuff 6 ай бұрын
maybe, i was planning on doing it but got distracted with rust lol
@ben_Munin
@ben_Munin 4 ай бұрын
i cant accept the notepad slander
@CottidaeSEA
@CottidaeSEA 6 ай бұрын
jQuery is pretty nice, but I see little reason to use it in general.
@segsfault
@segsfault Күн бұрын
So you just coded a website and wrapped in a WebView?
@0xbr0d
@0xbr0d 2 ай бұрын
ummmm, they updated notepad
@maksiksq
@maksiksq 5 ай бұрын
C L E A N
@errplane_
@errplane_ 3 ай бұрын
"not even made using the best framework ever, electron" 🤡🤡🤡
@cazdotsys
@cazdotsys 7 ай бұрын
rust for the win 🦀🦀
@thecoolnewsguy
@thecoolnewsguy 5 ай бұрын
What? He literally used JS for the most part
@RenderingUser
@RenderingUser 6 ай бұрын
1:16 is it just me or do i just see a whole bunch of "putin"
@FaceDevStuff
@FaceDevStuff 6 ай бұрын
It's "input" 💀, I pasted that since I had it in clipboard
@RenderingUser
@RenderingUser 6 ай бұрын
@@FaceDevStuff I am aware. I just happened to find it funny
@TheGabrielMoon
@TheGabrielMoon 6 ай бұрын
bro just use the attr contenteditable llmao what u doing
@conaticus
@conaticus 6 ай бұрын
great video, despite the thumbnail & title 😂
@FaceDevStuff
@FaceDevStuff 6 ай бұрын
love your vids mr. british man
@EquaTechnologies
@EquaTechnologies 6 ай бұрын
Notepad is the best for me and I'm not even joking ...but that doesn't mean that I don't love your editor!!!!!
@DerSolinski
@DerSolinski 5 ай бұрын
For everyone struggling with Rusts String shenanigans, Let's get Rusty made a good vid explaining all of it. kzfaq.info/get/bejne/edamrciq3821lKs.html Frankly it's an eye opener.
@matt92hun
@matt92hun 6 ай бұрын
My favourite text editor is VSCode with vim bindings.
@eineatombombe
@eineatombombe 5 ай бұрын
jquery const $ = (q) => { return document.querySelector(q) } const $$ = (q) => { return document.querySelectorAll(q) }
@goodbee1
@goodbee1 7 ай бұрын
first
@TheRealMangoDev
@TheRealMangoDev 6 ай бұрын
ok. Text editors r mid. Make an IDE. (not a discord one)
@soupnoodles
@soupnoodles 4 ай бұрын
- 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
@Losiek2137
@Losiek2137 6 ай бұрын
omg why jquery 💩
@Phantom-lr6cs
@Phantom-lr6cs Ай бұрын
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
@jordixboy
@jordixboy 6 ай бұрын
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
@angelocore
@angelocore 6 ай бұрын
Speak slower bro
@FaceDevStuff
@FaceDevStuff 6 ай бұрын
hi angelo
@matthews1256
@matthews1256 5 ай бұрын
Wants to make a "blazingly fast" editor, uses jQuery...
@CraccaHacka
@CraccaHacka 6 ай бұрын
I was expecting something more...low level since it's Rust JavaScript is too easy
I Made a FAST File Explorer (in Rust)
4:33
conaticus
Рет қаралды 204 М.
Writing My Own Text Editor | Prime Reacts
16:10
ThePrimeTime
Рет қаралды 90 М.
Маленькая и средняя фанта
00:56
Multi DO Smile Russian
Рет қаралды 5 МЛН
MOM TURNED THE NOODLES PINK😱
00:31
JULI_PROETO
Рет қаралды 6 МЛН
1❤️
00:20
すしらーめん《りく》
Рет қаралды 32 МЛН
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 118 МЛН
#52 - build website level 1 - part 10
5:38
BeneidAcademy
Рет қаралды 4
I made my own Web
15:43
FaceDev
Рет қаралды 82 М.
I Trained an AI with 10,000 Memes
14:52
Coding with Lewis
Рет қаралды 173 М.
How to Build & Deploy a Rust App in Under 60 Seconds
0:59
shuttle
Рет қаралды 24 М.
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 296 М.
Helix 🧬 the Rust Powered Development Environment
12:53
Code to the Moon
Рет қаралды 163 М.
I made my own Code Editor
12:02
FaceDev
Рет қаралды 211 М.
you need to build a RUST desktop app!!
27:21
Travis Media
Рет қаралды 271 М.
I Redesigned the ENTIRE Spotify UI from Scratch
19:27
Juxtopposed
Рет қаралды 283 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 278 М.
Сделали ам ам
0:11
ROFL
Рет қаралды 4,9 МЛН
Gold vs Silver Brushing Routine
0:33
Dental Digest
Рет қаралды 13 МЛН
зеленое яйцо #shorts #животные #shortsvideo #страус
0:35
Тайные Истории
Рет қаралды 11 МЛН
Нашли меня? #софянка
0:12
Софья Земляная
Рет қаралды 1,8 МЛН
1 класс vs 11 класс (неаккуратность)
1:00
БЕРТ
Рет қаралды 4,5 МЛН
26 мая 2024 г.
0:18
Dragon Нургелды 🐉
Рет қаралды 1,9 МЛН