[ / / / / / / / / / / / / / ] [ dir / aus / cyber / hisrol / imouto / loomis / marx / miku / namefags ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 6811286f86b0c55⋯.png (4.27 KB, 164x92, 41:23, logo.png) (h) (u)

[–]

 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

 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.


 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?


 No.907984>>907988

>Lua and not Lisp/Scheme

fucking dropped


 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 ^.^


 No.908018>>908142

>>907977

>language Guile

Found the clueless cuckchanner.


 No.908036>>908130

>>907961 (OP)

>I want my comfy lightweight editor!

Use nvi then.


 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).


 No.908133

Everything went downhill when people started writing computer programs. Break the cycle, don't use a text editor.


 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.


 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).


 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.


 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.


 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.


 No.908278>>908376

>>907961 (OP)

>being gay

>>>/auschwitz/

>a lightweight vi clone

just use busybox vi

>>907972

do you realize where you are faggot


 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.


 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.


 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.


 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.


 No.908493>>908499 >>908878

What are these common algorithms and data-structures the author speaks of?


 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.


 No.908501>>908510

>>908499

Go into more detail.


 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.


 No.908514>>908516

>>908510

It's not spoonfeeding, it's answering a question. It's alright if you don't know; just say so.


 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.


 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.


 No.908522>>908524

>>908499

>insertion of text in the middle of a huge chink.

>huge chink

*giggles*


 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.


 No.908527>>908528 >>908531

write it in C using ncurses. then edit ncurses and remove the bloat from ncurses


 No.908528>>908529 >>908530

>>908527

ncurses is garbage. manage the terminal yourself.


 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


 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.


 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!


 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.


 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.


 No.908535>>908536 >>908538

>>908534

its old but it works. does everything you need it to do.


 No.908536>>908538 >>908539

>>908535

Using terminal control codes does the same thing and is simpler.


 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.


 No.908539>>908542 >>908549

>>908536

simpler? do you even know why people use ncurses?


 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".


 No.908543>>908546

>>908542

>hurr durr I am an elite program and I can write a replacement thats better but I wont

sure :^)


 No.908546

>>908543

>I should do everything that I can possibly do even if I don't need it

sure :^)


 No.908549>>908555

>>908539

Mate, do you even know how terminals work? It's pretty simple.


 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.


 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.


 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.


 No.908901>>908902

File (hide): a40908d2da03a47⋯.png (20.19 KB, 430x381, 430:381, ClipboardImage.png) (h) (u)

File (hide): 5ef7b2285130c04⋯.png (93.34 KB, 562x467, 562:467, ClipboardImage.png) (h) (u)

>>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.


 No.908902

>>908901

Another structure that seems to be relevant:

https://en.wikipedia.org/wiki/Gap_buffer




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
47 replies | 1 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / aus / cyber / hisrol / imouto / loomis / marx / miku / namefags ][ watchlist ]