[–] ▶ When will Zi come out?? cuteposter 05/02/18 (Wed) 15:29:54 No. 907961 >>907972 >>908036 >>908278 >>908399 [Watch Thread] [Show All Posts]
From https://www.gnu.org/software/zile/
>GNU Zile is a text editor development kit, so that you can (relatively) quickly develop your own ideal text editor without reinventing the wheel for many of the common algorithms and data-structures needed to do so.
>It comes with an example implementation of a lightweight Emacs clone, called Zemacs. Every Emacs user should feel at home with Zemacs. Zemacs is aimed at small footprint systems and quick editing sessions (it starts up and shuts down instantly).
>More editors implemented over the Zile frameworks are forthcoming as the data-structures and interfaces improve: Zz an emacs inspired editor using Lua as an extension language; Zee a minimalist non-modal editor; Zi a lightweight vi clone; and more...
>Zi a lightweight vi clone
uwu when is this gonna happen? I want my comfy lightweight editor!
<3
▶ Anonymous 05/02/18 (Wed) 15:59:25 No. 907972 >>907988 >>908278
>>907961 (OP)
>uwu when is this gonna happen? I want my comfy lightweight editor!
Why are animefaggots incapable of discussing anything without also uploading an anime picture? You are a Jon Lachney level soyboy.
▶ Anonymous 05/02/18 (Wed) 16:06:39 No. 907977 >>907988 >>908018 >>908136
The GNU project has its own extension language Guile, why do they never use it? What advantage does Lua have?
▶ Anonymous 05/02/18 (Wed) 16:18:44 No. 907984 >>907988
>Lua and not Lisp/Scheme
fucking dropped
▶ cuteposter 05/02/18 (Wed) 16:24:41 No. 907988 >>908148
>>907984
>>907977
There's an alternative acronym: Zile Is Lossy Emacs.
>>907972
>Why are animefaggots incapable of discussing anything without also uploading an anime picture?
h-he's cute though.
>You are a Jon Lachney level soyboy.
i dont drink/eat soy. Aside from soy sauce on Japanese food of course ^.^
▶ Anonymous 05/02/18 (Wed) 17:03:58 No. 908018 >>908142
>>907977
>language Guile
Found the clueless cuckchanner.
▶ Anonymous 05/02/18 (Wed) 17:23:48 No. 908036 >>908130
>>907961 (OP)
>I want my comfy lightweight editor!
Use nvi then.
▶ Anonymous 05/02/18 (Wed) 21:41:17 No. 908130 >>908369 >>908531
>>908036
>use nvi then.
Modal editing/control characters were a mistake. Use mg or ed (both are in OpenBSD's base install).
▶ Anonymous 05/02/18 (Wed) 21:47:15 No. 908133
Everything went downhill when people started writing computer programs. Break the cycle, don't use a text editor.
▶ Anonymous 05/02/18 (Wed) 21:59:06 No. 908136
>>907977
>why not Guile
Because 1. programmer doesn't know scheme 2. programmer doesn't care about scheme 3. programmer picked a better scheme than Guile.
The only way someone uses Guile is if they are literally a GNU tard. There's no other way you'd pick it.
>why Lua
It's easy and nice to use for everyone.
▶ Anonymous 05/02/18 (Wed) 22:24:47 No. 908142 >>908143
>>908018
Then what is Guile if not a language? In before
> akshually, the language is called Scheme
Scheme is not a language, its specification is so spartan that every implementation adds so much on top of it that it becomes effectively its own language. Usually an implementation picks up one revision of the RnRS as a base, and then keeps adding its own stuff on top of that, while only implementing some features of a newer spec. Guile still does not and probably never will fully support R6RS or R7RS (small).
▶ Anonymous 05/02/18 (Wed) 22:27:30 No. 908143 >>908146
>>908142
>Scheme is not a language
* Scheme is not a real language was what I meant to say. Scheme is more akin to an idea of a language, and as with every idea, people end up implementing it differently.
▶ Anonymous 05/02/18 (Wed) 22:42:28 No. 908146
>>908143
Just because there isn't a reference implementation for Scheme doesn't make it less than a full language. Scheme is a full language that has had seven revisions to the language specification over its existance since 1970. It's even a part of the IEEE standard.
▶ Anonymous 05/02/18 (Wed) 22:46:03 No. 908148
>>907988
>h-he's cute though.
If pic is not related, not even in a metaphorical sense, don't post pic.
>uwu
<3
>i love that you haven't banned me yet
>i'm gay, yahoo!
>do you think i'm cute?
If OP wants to post about how gay he is, maybe this isn't the right board. He's like a tripfag without a tripcode. Nothing in this is helpful regarding objective discussion, he just wants some attention or is some special kind of hardcore faggot.
Thread in itself is interesting, the faggotry is just too much. Remove the gay in gay poster.
▶ Anonymous 05/03/18 (Thu) 05:32:01 No. 908278 >>908376
>>907961 (OP)
>being gay
>>>/auschwitz/
>a lightweight vi clone
just use busybox vi
>>907972
do you realize where you are faggot
▶ Anonymous 05/03/18 (Thu) 07:33:47 No. 908369 >>908531
>>908130
Vi is based on ed, and that's where the modality comes from. Anyway it's much better and easier on your hands than chords like emacs.
▶ Anonymous 05/03/18 (Thu) 07:46:17 No. 908376 >>908419
>>908278
If you like drinking soy while you watch your anime and take it from behind from your boyfriend's boyfriend, that's your own problem but don't be a hypocrite about it.
▶ Anonymous 05/03/18 (Thu) 08:28:39 No. 908399 >>908531
>>907961 (OP)
What exactly is Zile anyway? From the description on the website it sounds like a text editor toolkit or library written in Lua, but now that I downloaded the source code it doesn't mention Lua or being a toolkit or using Lua anywhere, it's just a smaller Emacs.
▶ Anonymous 05/03/18 (Thu) 09:12:13 No. 908419
>>908376
You seem to be rather confused. Anime is not particularly gay by itself. Rather, pretending to be an anime girl on /tech/ is.
▶ Anonymous 05/03/18 (Thu) 13:01:54 No. 908493 >>908499 >>908878
What are these common algorithms and data-structures the author speaks of?
▶ Anonymous 05/03/18 (Thu) 13:11:44 No. 908499 >>908501 >>908522
>>908493
things you need to manage text buffers in memory. e.g. how to represent insertion of text in the middle of a huge chink.
▶ Anonymous 05/03/18 (Thu) 13:17:54 No. 908501 >>908510
>>908499
Go into more detail.
▶ Anonymous 05/03/18 (Thu) 13:37:10 No. 908510 >>908514
>>908501
>spoonfeed me like babby
No. Go look at it yourself. I haven't personally used it so I can't tell you any more.
▶ Anonymous 05/03/18 (Thu) 13:40:32 No. 908514 >>908516
>>908510
It's not spoonfeeding, it's answering a question. It's alright if you don't know; just say so.
▶ offtopic sage 05/03/18 (Thu) 13:45:41 No. 908516 >>908519
>>908514
It is spoonfeeding. Spoonfeeding is asking easy questions for attention or because you are too lazy. See: shitoverpozz. OP posted a link (underlined text starting with http:// or https://) which you can click on using your mouse. (No, you can't click using your keyboard. No, that's not a touchscreen.) Is babby happy now. Ok go to bed. No you can't piss on the keyboard.
▶ Anonymous 05/03/18 (Thu) 13:57:08 No. 908519 >>908524
>>908516
>doesn't know the answer
>"im not gonna spoonfeed you kid that question is too easy for me"
Amazing. Why you even bothered to reply is beyond me.
▶ cuteposter 05/03/18 (Thu) 14:08:16 No. 908522 >>908524
>>908499
>insertion of text in the middle of a huge chink.
>huge chink
*giggles*
▶ Anonymous 05/03/18 (Thu) 14:15:22 No. 908524 >>908531
>>908519
I could look it up no problem. But you can too. So go look it up. You're the one who wants to know.
>>908522
>LARPing as anime girl again
Fuck off. Don't pretend that you're not a faggot.
▶ Anonymous 05/03/18 (Thu) 14:19:15 No. 908527 >>908528 >>908531
write it in C using ncurses. then edit ncurses and remove the bloat from ncurses
▶ Anonymous 05/03/18 (Thu) 14:20:04 No. 908528 >>908529 >>908530
>>908527
ncurses is garbage. manage the terminal yourself.
▶ Anonymous 05/03/18 (Thu) 14:21:41 No. 908529 >>908530 >>908533
>>908528
i was just trying to give an example of an easier way to make your own text editor. its a better way then zile
▶ Anonymous 05/03/18 (Thu) 14:22:11 No. 908530 >>908533
>>908528
this. The only types of terminal which are used nowadays are 1. vt100 compatible (linux, xterm etc.) and dumb (anything which isn't vt100 compatible).
For vt100 compatible standard escape sequences will always work. For dumb terminal, ed-style line editing is all you'll get.
>>908529
true as well. zile takes the interesting parts out of writing an editor.
▶ cuteposter 05/03/18 (Thu) 14:26:13 No. 908531 >>908534 >>908538 >>908878
>>908399
Yeah that confuses me too. Maybe there's something I'm not seeing? I hope that gnu.org page isn't inaccurate, as I'd really be interested in that vi clone editor.
>>908130
I actually have been checking out ed. It's not bad I guess. Here's a resource that explains how to use it.
https://sanctum.geek.nz/arabesque/actually-using-ed/
>>908369
vi is technically based on ex, which is similar to ed but kinda "upgraded".
>>908527
wait is ncurses bloat now?? how?
>>908524
im not larping as an anime girl. im a boy, silly!
▶ Anonymous 05/03/18 (Thu) 14:26:49 No. 908533
>>908529
>>908530
Terminal management is only tangentially related to text editing. It's an user interface issue. It should have nothing to do with the "data structures and algorithms" the author of Zile keeps talking about, which probably refer to some segmented array type.
▶ Anonymous 05/03/18 (Thu) 14:29:49 No. 908534 >>908535
>>908531
Have you actually used ncurses? It's a pain in the ass. It's an exceedingly old library and it shows.
▶ Anonymous 05/03/18 (Thu) 14:31:24 No. 908535 >>908536 >>908538
>>908534
its old but it works. does everything you need it to do.
▶ Anonymous 05/03/18 (Thu) 14:33:49 No. 908536 >>908538 >>908539
>>908535
Using terminal control codes does the same thing and is simpler.
▶ Anonymous 05/03/18 (Thu) 14:36:35 No. 908538
>>908531
>durrrrrr
>>908536
<but muh backwards compatibility
>>908535
Passing y as a parameter before x in all its functions is just retarded. Yes I kind of understand why they did it but they could have just swapped the fucking parameters around.
▶ Anonymous 05/03/18 (Thu) 14:36:44 No. 908539 >>908542 >>908549
>>908536
simpler? do you even know why people use ncurses?
▶ Anonymous 05/03/18 (Thu) 14:39:35 No. 908542 >>908543
>>908539
curses (especially ncurses) is a huge bunch of bloat. I can write a functional replacement for ncurses in one or two days. But rewriting curses to its original specification is much more difficult because it includes lots of useless and unnecessary features and "optimizations".
▶ Anonymous 05/03/18 (Thu) 14:42:16 No. 908543 >>908546
>>908542
>hurr durr I am an elite program and I can write a replacement thats better but I wont
sure :^)
▶ Anonymous 05/03/18 (Thu) 14:45:04 No. 908546
>>908543
>I should do everything that I can possibly do even if I don't need it
sure :^)
▶ Anonymous 05/03/18 (Thu) 14:46:30 No. 908549 >>908555
>>908539
Mate, do you even know how terminals work? It's pretty simple.
▶ Anonymous 05/03/18 (Thu) 15:00:20 No. 908555 >>908557
>>908549
>>908549
ncurses doesnt only just give you the ability to move the cursor around on the screen and write stuff. It is optimize to reduce the latency experienced from normal methods.
>just use terminal codes XD
sure you could write all your code using terminal codes but ncurses goes beyond that. it not only works on every terminal it does all the heavy lifting for buffering the screen so it limits "screen tearing" that normal method that normal methods come across.
▶ Anonymous 05/03/18 (Thu) 15:06:23 No. 908557
>>908555
ncurses simply uses alternate buffer modes built into terminal emulators, and there's still plenty of tearing in my experience; ncurses makes absolutely no difference in that regard.
▶ Anonymous 05/04/18 (Fri) 00:26:56 No. 908878 >>908901
>>908531
> Yeah that confuses me too. Maybe there's something I'm not seeing? I hope that gnu.org page isn't inaccurate, as I'd really be interested in that vi clone editor.
I took a look at the repo on Savannah. There is indeed a Lua branch, but it hasn't been committed to in years. I'd say it's dead and Zile is still just a baby Emacs.
>>908493
Since no one bothered actually responding: the only data structure I know of is a rope:
https://en.wikipedia.org/wiki/Rope_(data_structure)
If the other anons could be less gay for a moment they could name-drop some more structures and algorithms. I'm not asking for a complete lesson, just point me in the right direction.
▶ Anonymous 05/04/18 (Fri) 01:21:57 No. 908901 >>908902
>>908878
Thanks for actually providing signal instead of noise. I sorta remembered that text editors broke down the text into smaller chunks, I just didn't quite remember the name of the thing. I was thinking of this linked arrays structure when I asked the question:
https://en.wikipedia.org/wiki/Unrolled_linked_list
But the rope seems to be tree-like. Apparently, nodes also aggregate the lengths of their children; it sounds like an useful feature but it's not clear to my why exactly. Manipulation algorithms aren't clear to me, either.
▶ Anonymous 05/04/18 (Fri) 01:23:41 No. 908902