00:00:00 --- log: started forth/14.06.15 00:00:57 Text representation and undo are largely orthogonal. 00:01:08 Personally, though, I'd recommend a "rope" structure. 00:01:35 ttmrichter: ``rope'' ? 00:01:50 https://en.wikipedia.org/wiki/Rope_(computer_science) 00:31:28 --- quit: xyh (Read error: Connection reset by peer) 00:31:54 --- join: xyh (~user@121.33.190.151) joined #forth 00:32:11 ttmrichter: thx so much! maybe I should use double-linked-list of lines, and represent a line as a rope 00:50:29 and I think text-editor is just one of the most interesting programs to write :) 00:50:54 Good. You can write mine for me. :) 00:51:25 ttmrichter: you have one ? 00:51:36 No. I want one. You can write it. :) 00:51:58 ttmrichter: yeah ! haha 01:03:00 --- part: xyh left #forth 01:13:14 --- join: true-grue (~grue@95-26-74-101.broadband.corbina.ru) joined #forth 03:29:18 --- join: impomatic (~digital_w@246.11.125.91.dyn.plus.net) joined #forth 03:38:44 --- quit: impomatic (Read error: Connection reset by peer) 04:09:17 --- quit: fantazo (Ping timeout: 245 seconds) 05:16:38 --- join: impomatic (~digital_w@246.11.125.91.dyn.plus.net) joined #forth 05:27:14 --- join: fantazo (~fantazo@2001:858:5:3a41:99d8:b33b:fce0:c986) joined #forth 05:27:19 --- join: xyh (~user@116.21.161.17) joined #forth 05:52:25 --- part: xyh left #forth 06:28:25 --- quit: ErhardtMundt (Ping timeout: 276 seconds) 07:02:24 --- join: Zarutian (~zarutian@194-144-84-110.du.xdsl.is) joined #forth 07:19:10 --- join: ErhardtMundt (~quassel@93-43-168-8.ip92.fastwebnet.it) joined #forth 07:47:46 --- join: kumul (~mool@adsl-72-50-85-190.prtc.net) joined #forth 08:19:29 --- quit: Zarutian (Quit: Zarutian) 08:44:23 --- join: klltkr (~klltkr@unaffiliated/klltkr) joined #forth 08:56:53 --- quit: goingretro (Ping timeout: 255 seconds) 09:05:04 --- join: goingretro (~kbmaniac@host86-182-36-14.range86-182.btcentralplus.com) joined #forth 09:09:31 --- quit: goingretro (Ping timeout: 264 seconds) 09:20:38 --- join: _spt_ (~Jaat@host-92-12-215-105.as43234.net) joined #forth 09:20:38 --- quit: _spt_ (Changing host) 09:20:38 --- join: _spt_ (~Jaat@unaffiliated/-spt-/x-5624824) joined #forth 09:35:13 --- join: hellen_haskeller (~kvirc@186.73.24.236) joined #forth 09:38:34 --- join: goingretro (~kbmaniac@host86-182-36-14.range86-182.btcentralplus.com) joined #forth 09:40:13 --- quit: hellen_haskeller (Read error: Connection reset by peer) 09:42:36 --- join: hellen_haskeller (~kvirc@186.73.24.236) joined #forth 09:47:35 --- join: tangentstorm (~michal@108-218-151-22.lightspeed.rcsntx.sbcglobal.net) joined #forth 10:02:39 --- quit: hellen_haskeller (Read error: Connection reset by peer) 10:10:20 --- join: ScaryMonster (~monster@adsl-72-145-243-177.asm.bellsouth.net) joined #forth 10:39:13 --- quit: _spt_ (Ping timeout: 240 seconds) 10:40:15 --- join: _spt_ (~Jaat@host-92-12-215-105.as43234.net) joined #forth 10:40:15 --- quit: _spt_ (Changing host) 10:40:15 --- join: _spt_ (~Jaat@unaffiliated/-spt-/x-5624824) joined #forth 10:49:43 --- quit: Zag (Ping timeout: 240 seconds) 11:03:01 --- quit: _spt_ (Quit: the Jupiter ACE has lost connection) 11:21:31 --- quit: impomatic (Ping timeout: 264 seconds) 11:34:08 --- join: Zarutian (~zarutian@194-144-84-110.du.xdsl.is) joined #forth 11:36:44 --- join: john_metcalf (~john_metc@84.93.80.151) joined #forth 11:41:27 --- quit: bbloom (Quit: Textual IRC Client: www.textualapp.com) 11:54:59 --- join: daowee (~daowee@m80-170-84-114.cust.tele2.se) joined #forth 12:08:38 --- quit: fantazo (Ping timeout: 260 seconds) 12:13:57 --- quit: Zarutian (Quit: Zarutian) 12:28:33 --- join: xyh (~user@121.33.190.151) joined #forth 12:32:12 tangentstorm: Hi :) what screen redisplay algorithm you use in your text-editor ??? 12:53:55 heya xyh. right now, widgets just redraw themselves. 13:02:10 --- join: fantazo (~fantazo@089144194088.atnat0003.highway.a1.net) joined #forth 13:03:05 --- join: Mat3 (~Mat@91-64-127-6-dynip.superkabel.de) joined #forth 13:03:07 hello 13:07:26 Mat3: hello :) you are Italian ? 13:12:44 hello xyh, no 13:13:21 Mat3: but you say ``ciao'' every time you quit 13:15:03 well, it's usus in the country I live 13:20:57 --- join: Zag (~Zag@modemcable009.239-201-24.mc.videotron.ca) joined #forth 13:36:10 --- join: impomatic (~digital_w@84.93.80.151) joined #forth 13:40:20 tangentstorm: vim's source code ``screen.c'' is very interesting to read :) 13:44:13 it is readable ? 13:49:08 Mat3: the documentation in front of it is readable, the code maybe is also very well written to a C programmer (not me, I just read the doc and small part of the code) 13:50:01 hmm, I will take a look then 13:50:52 while, I rather read assembly then C ... 13:56:51 I'm quite familiar with C but prefer assembly if I have the choice 14:04:24 --- join: Zarutian (~zarutian@194-144-84-110.du.xdsl.is) joined #forth 14:20:28 Any assembler code for any machine instead of plain platform-independent C? :) 14:28:44 --- quit: Zarutian (Ping timeout: 252 seconds) 14:32:30 yes 14:34:57 porting is often not the problem because most used processor architectures are somewhat similar 14:35:03 --- join: Zarutian (~zarutian@194-144-84-110.du.xdsl.is) joined #forth 14:37:03 for example porting AMD64 assembly code to ARM7 is simple if one know some ARM specific patterns descpice ABI decific details which need to be adjusted in C anyway 14:37:16 ^despice 14:39:14 word size dependend arithmetic for example 14:39:19 ^dependent 14:41:22 sorry for the typos 14:49:52 true-grue: to learn to implement a text-editor, I can learn how to build up the primitive functions from syscalls by a text-editor written in assembly, and then convert the assembly code into forth style. 14:52:50 --- quit: Mat3 (Quit: Verlassend) 14:55:30 xyh: What's the point in building a text editor with assembler/syscalls? Learning purposes? 15:01:07 true-grue: then I can merge the text editor into my forth-like language 15:04:30 Maybe you can use a simpler strategy: Use some OS shared library calls and implement the rest in your Forth-like language. 15:23:59 true-grue: it seems harder for me! can you teach me how to use OS shared library calls in a new implemented forth? some readings is also ok :) 15:30:57 xyh: Well, in case of Linux, you need only two syscalls: dlopen, dlsym. With them you can use standard Linux API for what you need. 15:34:32 true-grue: thx, I will learn the details :) , but how about the Registers I use in my implementation ? push all and pop all ? syscall take care of this ? 15:39:06 You need to learn also about the calling convention which is used by libraries in your OS. 15:42:17 --- join: saml_ (~saml@pool-71-190-9-161.nycmny.east.verizon.net) joined #forth 15:57:41 true-grue: dlopen and dlsym really are linux syscalls ?? I can not find them ! they have different names as syscall ?? 16:02:14 --- quit: bjorkintosh (Ping timeout: 245 seconds) 16:11:02 xyh: you want to use system calls directly, yes? You have means of entering machine instructions in your Forth, yes? 16:12:44 Zarutian: not machine instructions ! 16:13:11 Zarutian: yes, I want to use system calls directly 16:13:13 xyh: assembly that gets turned into machine instructons. 16:14:54 xyh: on what platform is this? GNU/Linux? 16:15:03 Zarutian: yes linux 16:16:03 presumably on x86? if so have a look at http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html 16:16:52 Zarutian: so dlopen and dlsym are not syscalls 16:18:19 at least not in Linux kernel version 2.2 16:19:52 * Zarutian looks for similiar for 3.15 16:22:06 --- join: bjorkintosh (~bjork@ip68-13-229-200.ok.ok.cox.net) joined #forth 16:22:35 xyh: If I remember correctly you should link with libdl (and dlopen/dlsym are not syscalls actually). 16:22:59 xyh: http://man7.org/linux/man-pages/man2/syscalls.2.html might also be somewhat helpfull 16:23:43 thx guys :) 16:25:04 xyh: I found something :) http://christophe.lavarenne.free.fr/ff/fflinio.asm 16:32:42 true-grue: great !! fasm :) I hope I could know FreeForth earlier 16:34:00 Notice that dlopen/dlsym are declared as external symbols. 16:35:11 --- quit: ScaryMonster (Ping timeout: 272 seconds) 16:38:52 --- join: hellen_haskeller (~kvirc@186.73.24.236) joined #forth 16:55:13 geez!!! quote the auther of FreeForth : ``My experience working with him and sponsoring his work on OKAD during 1995 and 1996 to produce the v21 was also great fun... until he shot me and my associate sponsors in the back, and spat at me nasty xenophobian arguments'' 16:57:01 ``him'' denotes Chuck Moore ... 17:04:42 Xenophobic? To some french guy? :) 17:28:23 --- quit: true-grue (Read error: Connection reset by peer) 17:34:39 --- quit: hellen_haskeller (Read error: Connection reset by peer) 17:35:04 --- join: hellen_haskeller (~kvirc@186.73.24.236) joined #forth 18:00:19 --- quit: hellen_haskeller (Read error: Connection reset by peer) 18:06:01 --- join: hellen_haskeller (~kvirc@186.73.24.236) joined #forth 18:07:52 --- quit: hellen_haskeller (Read error: Connection reset by peer) 19:16:09 --- join: hellen_haskeller (~kvirc@186.73.24.236) joined #forth 19:18:30 --- quit: hellen_haskeller (Read error: Connection reset by peer) 19:39:48 --- quit: Zarutian (Quit: Zarutian) 19:50:57 --- quit: xyh (Read error: Connection reset by peer) 19:51:06 --- join: xyh (~user@121.33.190.151) joined #forth 20:14:10 --- quit: saml_ (Remote host closed the connection) 20:58:30 --- join: bbloom (~bbloom@cpe-68-173-7-82.nyc.res.rr.com) joined #forth 21:54:29 --- join: ASau` (~user@46.115.12.221) joined #forth 21:57:34 --- quit: ASau (Ping timeout: 272 seconds) 21:58:39 --- nick: ASau` -> ASau 22:57:27 --- quit: kumul (Quit: Leaving) 23:08:58 --- quit: xyh (Read error: Connection reset by peer) 23:09:19 --- join: xyh (~user@121.33.190.151) joined #forth 23:38:17 --- quit: fantazo (Ping timeout: 240 seconds) 23:59:59 --- log: ended forth/14.06.15