00:00:00 --- log: started forth/21.03.29 00:10:38 --- quit: boru (Quit: Lost terminal) 00:11:22 --- join: boru joined #forth 00:22:16 --- quit: jedb__ (Ping timeout: 268 seconds) 00:24:35 --- join: jedb joined #forth 00:48:20 --- join: xek_ joined #forth 00:48:25 --- quit: xek_ (Client Quit) 00:56:08 --- quit: rixard (Read error: Connection reset by peer) 00:56:37 --- join: rixard joined #forth 00:58:16 --- quit: rixard (Read error: Connection reset by peer) 00:59:09 --- join: rixard joined #forth 01:44:48 --- quit: hosewiejacke (Ping timeout: 240 seconds) 02:05:39 --- join: hosewiejacke joined #forth 02:09:20 --- quit: f-a (Ping timeout: 240 seconds) 02:10:49 --- join: xek joined #forth 02:22:56 Just found about CORDIC algorithms, excited. 02:46:14 --- join: f-a joined #forth 04:14:47 --- join: tech_exorcist joined #forth 04:22:30 --- join: proteusguy joined #forth 04:22:30 --- mode: ChanServ set +v proteusguy 05:18:29 Long live numerical applications... :-) 05:39:00 --- quit: f-a (Read error: Connection reset by peer) 05:39:06 --- join: f-a_ joined #forth 05:39:06 --- quit: f-a_ (Client Quit) 05:39:24 --- join: f-a joined #forth 06:01:40 --- quit: f-a (Read error: Connection reset by peer) 06:04:18 --- join: f-a joined #forth 06:26:19 --- join: proteus-guy joined #forth 06:31:02 --- quit: hosewiejacke (Ping timeout: 268 seconds) 06:37:07 --- join: hosewiejacke joined #forth 06:45:28 --- quit: dave0 (Quit: dave's not here) 06:55:53 --- quit: mark4 (Remote host closed the connection) 07:00:33 --- quit: f-a (Quit: leaving) 07:00:52 --- join: f-a joined #forth 07:07:29 --- join: mark4 joined #forth 07:30:16 --- quit: f-a (Ping timeout: 265 seconds) 07:39:28 --- quit: hosewiejacke (Ping timeout: 240 seconds) 07:39:48 --- join: shmorgle joined #forth 07:57:37 --- join: hosewiejacke joined #forth 08:05:46 --- quit: xek (Ping timeout: 246 seconds) 08:13:27 --- join: f-a joined #forth 08:32:08 --- quit: hosewiejacke (Ping timeout: 240 seconds) 08:32:15 ok, ended up designing something somewhat more inspired by perl 08:32:17 https://git.sr.ht/~remexre/stahl/tree/53c2bc7e9ced5b9716d8bea2df389edc8268238c/item/kernel/src/common/forth/02-oop.fth 08:32:43 where classes are just implementations of interfaces, and don't include structure/record features automatically 08:34:04 (not that perl has interfaces, but more the "objects are just normal data that's had a vtable attached to it" aspect) 08:34:39 --- join: hosewiejacke joined #forth 08:35:06 --- join: f-a_ joined #forth 08:35:39 --- quit: f-a (Read error: Connection reset by peer) 08:36:26 --- quit: f-a_ (Client Quit) 08:36:43 --- join: f-a joined #forth 08:39:46 --- quit: f-a (Read error: Connection reset by peer) 08:41:21 --- quit: tech_exorcist (Remote host closed the connection) 08:41:45 --- join: tech_exorcist joined #forth 08:48:54 --- join: f-a joined #forth 08:58:59 --- quit: joe9 (Ping timeout: 276 seconds) 09:06:42 --- quit: Vedran (Ping timeout: 246 seconds) 09:07:31 --- join: Vedran joined #forth 09:16:55 --- quit: hosewiejacke (Ping timeout: 268 seconds) 09:22:34 --- join: hosewiejacke joined #forth 09:23:06 --- quit: hosewiejacke (Client Quit) 09:37:16 --- join: lispmacs[work] joined #forth 09:45:29 --- join: joe9 joined #forth 10:29:16 --- mode: ChanServ set +v mark4 10:32:57 --- quit: gravicappa (Ping timeout: 252 seconds) 10:36:00 --- join: gravicappa joined #forth 11:25:01 How can I display a float's binary representation with gforth? I think this is wrong: https://gist.githubusercontent.com/neuro-sys/d3bd17cb4aac0c35b775212c4ca35890/raw/bcdab9a1081714ae146a24f82a250a70be8304f6/f.binary 11:25:43 Woops my shift is wrong 11:27:06 Ah nevermind, the bit count is also wrong. Now I fixed and it works :) 11:52:20 --- quit: f-a (Ping timeout: 240 seconds) 11:54:34 --- join: f-a joined #forth 12:01:08 --- quit: f-a (Quit: leaving) 12:46:09 --- quit: gravicappa (Ping timeout: 246 seconds) 15:34:01 http://www.canoncat.net/cat/Cat%20Forth%20Inside.txt 15:34:21 "The code was written in 68K assembly and Forth. The code would be considered as multiple applications if run from a normal OS. It includes a word processor, spread sheet capable, sort, 90,000 word spell checker, phone modem protocol, disk interface, keyboard interface for multiple foreign languages, learn( macro capable), built in help, screen saver and multiple printer drivers." 15:34:28 "As complicated as the software is, it has the rare distinction never having had a bug found and, according to Jef, created on schedule. I like to think that part of this reason is that it was written in Forth but it was mostly that no piece of code was excepted as complete without a testbench. This was true, no matter how trivial." 15:37:31 so i sorted 1 million items 10 thousahd times with my shell sorrt in 23 minutes. quicksort took 20 minutes 15:37:37 i dont think thats too shabby 15:37:48 In Forth or C? 15:37:52 c lol 15:38:04 forth might have been faster because i could probbaly do the logic way better 15:38:05 Have you written sorting in Forth? 15:38:16 yes but a long time ago 15:38:23 I've only written merge sort, not such a long time ago 15:38:33 Some of my more elegant code 15:38:55 merge sort is better than quick sort because it can be paralellized 15:39:14 in c or in forth? 15:39:26 In Forth, I've written a few different algorithms in C 15:39:39 It's one of the first programs I wrote in C(++) when I learned it, quicksort 15:39:56 https://dpaste.com/GGWUDDWR6 15:40:04 thats my shell sort 15:40:45 i always favor shell over quick because its not recursive, i do not like recursive algorithms 15:41:02 while((gap = (gap * 7) / 9) > 0) 15:41:02 { 15:41:02 l1 = 0; h1 = gap; 15:41:02 while(h1 < n) 15:41:02 { 15:41:03 h2 = h1; l2 = l1; 15:41:05 while((l2 > 0) && (p[l2] > p[h2])) 15:41:07 { 15:41:09 tmp = p[l2]; 15:41:11 p[l2] = p[h2]; 15:41:13 p[h2] = tmp; 15:41:15 h2 = l2; 15:41:17 l2 -= gap; 15:41:19 } 15:41:21 h1++; l1++; 15:41:23 } 15:41:24 } 15:41:26 thats basiclaly the ENTIRE sort right there 15:45:18 Do you like bottom-up merge sort? 15:45:31 never did a merge sort before 15:45:33 --- join: Zarutian_HTC joined #forth 15:45:48 --- join: lchvdlch joined #forth 15:46:02 It's a non-recursive version of merge sort 15:46:30 Naturally iterative, rather than just a recursive function written out with explicit stacks 15:46:43 godbolt wont let me enter any coe wtc 15:47:10 cannot edit in read only mode? wtf is that bs 15:47:13 world trade center? 15:47:22 miss type on wtf 15:47:56 mark4: Metric or Imperial 15:48:46 ? 15:50:03 Which do you prefer 15:53:22 i use both so depends on context :) 15:56:44 * Zarutian_HTC seen attoparsecs used in some engineering drawings for electronics 15:59:08 Degrees Rankine 16:02:27 Metric for engineers, Imperial for people 16:04:34 which is better while((gap = (gap * 7) / 9) > 0) or for(gap = n; gap > 0; gap = (gap * 7) / 9) 16:04:39 and why 16:04:46 well, I have seen kubit and such used 16:05:11 there is a gap = n in front of the while version 16:05:23 veltas: and here is the question: which Imperial? 16:05:40 Your nation's imperial probably 16:06:25 so, the length unit would be áln then 16:07:21 I don't order 568ml of beer and I don't want to remember the number of feet in a mile when working with a technical drawing 16:07:37 1760 * 3 :) 16:08:09 I think metric's better at measurement calculations and imperial's often better at describing everyday tangible quantities 16:08:11 there is one reason why imperial is superior to metric 16:08:24 imperial is divisible by 2 and 3 etc 16:10:37 If people think metric's so much better I'll ask why there aren't 1000 hours in the day, or 1000 bytes in a kilobyte 16:11:15 and once more, there was a diffrent name for a thou. The mil. And mil-spec as in connectors and such refers to that. Not millitary, that is much later. But thou is prefered nowdays because it can not be misunderstood. Whil mil can be as millimeters. 16:11:21 10 hours in a day! 16:11:33 but you still have to work 8 :) 16:12:04 mark4: Why 10? Metric is based around 1000. Still further inconsistancies 16:12:27 veltas: metric is based around 10 16:12:36 And the cherry on the cake is if you truly want a utopian unit system it should really be base-12 focused. 16:12:41 ya just do know yer si prefixes 16:14:14 like I once asked for a piece of pcb one times one and a half desimeter on a side 16:15:42 --- part: astrid left #forth 16:15:58 Normal people had to conform when metric was pushed, but when scientists discover electricity is backwards we just carry on because it would be effort 16:16:37 metric is based on 10 16:16:42 Anyway that's enough stirring the pot for today :P 16:17:28 I like these pseudo-pointless arguments, the arguments nobody cares about anymore. There is some meaning in here buried somewhere but it doesn't matter too much. 16:17:52 veltas: when was it pushed? and you should know why it was invented. Because the plethora of Imperial units all over europe. 16:18:26 Why not invent a new language as well, to replace the plethora of european languages? 16:19:22 because you need a compatible system of measurements for engineering, tolls, and contracts 16:19:23 good idea :) 16:19:57 Don't you need compatible language for such things too? Surely it's harder to translate general language than measurements? 16:20:47 it irritated me no end when journos gave the length of Ever Given as four football fields 16:20:50 Although that said maths has different forms across Europe, less defined now though 16:21:20 I think it's dumb because "football" is so badly defined 16:21:28 or for gap = n * 7 / 9 or something 16:21:30 'which football? American, Soccer, or traditinal?' 16:21:36 miss chan 16:21:39 traditional* 16:21:46 Or rugby, is technically football too I think 16:22:18 So it turns out communication is complicated, and the needs of the communicators depends on context 16:23:25 Doesn't mean you can't try to reach lots of people, but the larger the audience you try to reach, the less it means to anyone 16:23:30 but the Indian times gave the length in wicket cricket spacing 16:24:53 that is the distance between the two wickets on a cricket field 16:26:35 The ship is so large you will struggle to give a meaningful comparison, and an 'everyday' comparison is impossible 16:26:59 And the cost of the ship being stuck is similarly hard to quantify 16:27:28 One of these measurements is more important than the other, I would say 16:27:47 one comparison I got was "too late to turn the sove off distance if you went for a walk" 16:28:28 Large enough to accidentally block the Suez canal 16:29:01 And does anyone believe the 'wind' explanation? 16:29:16 the cost is hard to quantify for two reasons 16:29:59 the former is that the delay costs and tetriary effect costs have yet to be determined 16:30:59 the latter because they are trying to use an eleastic value unit the USD 16:31:34 veltas: I beleive wind might be a big factor 16:32:04 in the accident 16:32:43 I wonder if there are conspiracy theories that it was not an accident 16:33:08 but it might also be part the inertia momentum that takes a while to change 16:33:42 Yeah no doubt there is a significant delay between input and result on that boat 16:34:46 it is relatively easy and quick feedback to turn a x-cross motor bike around versus a huge ship 16:35:32 have you watched aprs and ais feeds for ships? 16:35:41 Maybe 16:36:17 it is fascinating when say a huge oil tanker prepares to start voyage 16:37:17 they often broadcast their intended ?track? at least two hours in advance 16:38:52 just so other ships can avoid potential collisions 16:40:17 these big ships are more like small islands on the move than any sort of normal vechiles or vessels 16:41:34 re the Ever Given, I wonder how deep she drafted and if that might have been a factor 16:42:36 like if she drafted deep enough to affect the current in the canal such it got interferantly turbulent 16:54:11 --- join: dave0 joined #forth 16:54:29 It looked like in the log the ship went wildly left before going right and getting stuck 17:16:27 --- quit: tech_exorcist (Quit: tech_exorcist) 17:35:35 hey guys 18:26:25 --- join: Rakko joined #forth 18:27:53 --- join: Zarutian_HTC1 joined #forth 18:28:45 --- quit: Zarutian_HTC (Read error: Connection reset by peer) 18:47:52 --- join: boru` joined #forth 18:47:54 --- quit: boru (Disconnected by services) 18:47:57 --- nick: boru` -> boru 19:29:36 --- quit: dave0 (Quit: dave's not here) 19:36:13 --- quit: Zarutian_HTC1 (Remote host closed the connection) 19:37:36 --- join: Zarutian_HTC joined #forth 19:37:55 --- quit: Zarutian_HTC (Client Quit) 19:54:03 --- quit: sts-q (Ping timeout: 240 seconds) 20:02:45 --- join: sts-q joined #forth 21:11:33 --- quit: pareidolia (Ping timeout: 246 seconds) 21:20:36 --- join: dave0 joined #forth 22:07:43 --- join: gravicappa joined #forth 23:16:36 --- quit: proteusguy (Quit: Leaving) 23:21:05 --- join: f-a joined #forth 23:47:49 --- quit: Rakko (Quit: Leaving) 23:59:59 --- log: ended forth/21.03.29