Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #13610 > unrolled thread

wily 4 Haskell...

Started bynot.socialnetwork@gmail.com
First post2015-02-05 12:39 +0000
Last post2015-02-10 08:54 -0500
Articles 7 — 6 participants

Back to article view | Back to comp.os.linux.misc


Contents

  wily 4 Haskell... not.socialnetwork@gmail.com - 2015-02-05 12:39 +0000
    Re: wily 4 Haskell... Unknown <dog@gmail.com> - 2015-02-09 18:01 +0000
      Re: wily 4 Haskell... Nomen Nescio <nobody@dizum.com> - 2015-02-09 20:14 +0100
        Re: wily 4 Haskell... mm0fmf <none@mailinator.com> - 2015-02-09 19:28 +0000
          Re: wily 4 Haskell... Martin Gregorie <martin@address-in-sig.invalid> - 2015-02-09 23:58 +0000
            Re: wily 4 Haskell... Unknown <dog@gmail.com> - 2015-02-18 15:24 +0000
        Re: wily 4 Haskell... Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-02-10 08:54 -0500

#13610 — wily 4 Haskell...

Fromnot.socialnetwork@gmail.com
Date2015-02-05 12:39 +0000
Subjectwily 4 Haskell...
Message-ID<mavo96$1id$1@dont-email.me>
Being able to read & 'hear' a new-language is much cheaper than
<rearranging the neurons in your brain> to speak & write new-languages.
--
That's why 90% of the population followed Micro$oft:
Once the initial effort investment was done, they couldn't afford
new costs; and a F/B-like wave of unoriginal thinkers was spawned.
--
It seems that Haskell is an astounding computer-language/tool.
But can we afford to rearrange-brain-neurons AGAIN ?!
Computer [and natural] languages' syntax are mostly just ad-hoc,
waste of effort. That's why menu-based utilities are so efficient:
you just 'recognise', instead of needing to *remember* details.
Also syntax-coloring-editors save wasted learning effort.
--
The unix-family provides tools for those who want to be free from
following-the-herd. `wily` was spawned from the original designers
of unix, after they progressed from unix to plan9 - which I can't 'afford'.
--
Since my brain-neurons were already rearranged for Oberon [which
influenced plan9], wily is very efficient for me.
--
Yesterday, I built & tested *this* for a minimal-PASCAL [recursive descent
compatible language]. 
Oberon/wily don't: write & read messsages to the little-man-in-the-box.
You watch the screen and control the system via the 3-button-mouse.
So the sample code below is not typed in: it's just kluxed on the screen.

Imagine 'evolving' a program in the language: HUMAN
you klux: HUMAN
and you see: MODULE name; body ; 4-limbs ; head  END name.

    You don't need to remember the ad-hoc spelling & punctuation.
    
then you klux: body
see: MODULE name;
  respiritorySystem;
  digestiveSystem;
  circulatorySystem;
 4-limbs ; head  END name.
    
BTW, I'm just making this up, while I write.
But below is the actual code, and results for <PASCAL>.
The trick is that wily `executes the sed-in-place/one-line-script`
which replaces/[expands] eg:
      body
by/[into]:
     respiritorySystem;
     digestiveSystem;
     circulatorySystem;
====================
OK, I can't see how to replace live-on-the-screen
"body", with the <4 lines>. Oberon could do that.
But I just need 2 klux, after each <expansion>, to
1. delete-from-screen: the old version;
2. display updated version.
==
Next post gives the 4 [so far] 1-linescripts [which get extra line: cat SIP],
to run in console-mode [no X], where you just paste "body" from your
latest expansion, to execute "./body"....etc.
 
 == Chris Glur.
 
 Computing is not about computers; it's about human cognition.
 
 

[toc] | [next] | [standalone]


#13665

FromUnknown <dog@gmail.com>
Date2015-02-09 18:01 +0000
Message-ID<pan.2015.02.09.18.10.22@gmail.com>
In reply to#13610
On Thu, 05 Feb 2015 12:39:04 +0000, not.socialnetwork wrote:

> Being able to read & 'hear' a new-language is much cheaper than
> <rearranging the neurons in your brain> to speak & write new-languages.
> --snip --

=== Here's the system & full description & test log ===
Using wily: [see below HOW2 use a mouse and CLI system]
Start  <-- copy START textFile to SIP
REPEAT
  wilyLoad SIP
  wilyExecute HotLink;
  wilyDelete SIP
UNTILdone .
---------------- Start gives me:
MODULE Mid;
 CONST <CLst>;
 VAR <VLst>;
 { ProcDcl }
 BEGIN StmLst
 END Mid.
---------------- ProcDcl gives me:
MODULE Mid;
 CONST <CLst>;
 VAR <VLst>;
 { PROC Pid;
 DecLst  BEGIN StmLst END Pid; }
 BEGIN StmLst
 END Mid.
---------------- StmLst gives me:
MODULE Mid;
 CONST <CLst>;
 VAR <VLst>;
 { PROC Pid;
 DecLst  BEGIN
 Asgn V:=X;
 While Bool Do;
 IfThenElse END Pid; }
 BEGIN
 Asgn V:=X;
 While Bool Do;
 IfThenElse
 END Mid.
---------------- DecLst gives me: <- In Proc.
MODULE Mid;
 CONST <CLst>;
 VAR <VLst>;
 { PROC Pid;
 CONST <CLst>;
 VAR <VLst>;
 { ProcDcl }  BEGIN
 Asgn V:=X;
 While Bool Do;
 IfThenElse END Pid; }
 BEGIN
 Asgn V:=X;
 While Bool Do;
 IfThenElse
 END Mid.
--------------- ..etc.
Yes, when there are multiple <identiacally ID-ed hot-links>
 they all get expanded. So delete some before [or later] the
expansion/S.

The above was generated by [slhdlhdlhd] 1+3*3=10 mouse-klux;
without looking away from the screen, to the keybrd.

Aviators call it: 'heads up flying '.

So you haven't got wily or plan9:acme or ETHOberon?
Then you can just eg. mouse-copy: StmLst
and paste it to the CLI to get:
./StmLst
which means you can do this without X11, too.
=========================
Here's the full system. So start writing a Haskell version,
unless you can rather write one *IN* Haskell !!

-rwxr-xr-x 1 root root    98 2015-02-09 17:53 DecLst
-rwxr-xr-x 1 root root    67 2015-02-09 17:53 ProcDcl
-rw-r--r-- 1 root root   211 2015-02-09 17:34 SIP
-rw-r--r-- 1 root root    77 2015-02-09 17:07 START
-rwxr-xr-x 1 root root    54 2015-02-09 17:04 Start
-rwxr-xr-x 1 root root   115 2015-02-09 17:53 StmLst

--- DecLst
sed -i 's/DecLst/CONST <CLst>;\n VAR <VLst>;\n { ProcDcl }/'  SIP

# ; <- belongs to Lower-blok
--- ProcDcl
sed -i 's/ProcDcl/PROC Pid;\n DecLst  BEGIN StmLst END Pid;/' SIP
--- START
MODULE Mid;
 CONST <CLst>;
 VAR <VLst>;
 { ProcDcl }
 BEGIN StmLst
 END Mid.
---  Start
cp START SIP

# Initialise File: SIP from File: START
--- StmLst
sed -i 's/StmLst/\n Asgn V:=X;\n While Bool Do;\n IfThenElse/'  SIP

# StmLstS in MAIN & all PROCs will be updated!
---

Next post will be my attempt to evolve a similar Haskell-helper/menu,
and I'll EXPECT some assistance.

== TIA


[toc] | [prev] | [next] | [standalone]


#13667

FromNomen Nescio <nobody@dizum.com>
Date2015-02-09 20:14 +0100
Message-ID<fcd08cfc61421124a834251cf5e03ed6@dizum.com>
In reply to#13665
Unknown <dog@gmail.com> wrote:

> The above was generated by [slhdlhdlhd] 1+3*3=10 mouse-klux;
> without looking away from the screen, to the keybrd.

When I klux my mouse, I usually don't look at the keyboard anyway.

> Aviators call it: 'heads up flying '.

Please keep in mind that the Raspberry Pi is not certified for avionic use.

[toc] | [prev] | [next] | [standalone]


#13668

Frommm0fmf <none@mailinator.com>
Date2015-02-09 19:28 +0000
Message-ID<7T7Cw.958738$bY7.20239@fx02.am4>
In reply to#13667
On 09/02/2015 19:14, Nomen Nescio wrote:
> Unknown <dog@gmail.com> wrote:
>
>> The above was generated by [slhdlhdlhd] 1+3*3=10 mouse-klux;
>> without looking away from the screen, to the keybrd.
>
> When I klux my mouse, I usually don't look at the keyboard anyway.
>
>> Aviators call it: 'heads up flying '.
>
> Please keep in mind that the Raspberry Pi is not certified for avionic use.
>

The Pi isn't certified but our troll should be.

[toc] | [prev] | [next] | [standalone]


#13670

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2015-02-09 23:58 +0000
Message-ID<mbbhid$o97$1@dont-email.me>
In reply to#13668
On Mon, 09 Feb 2015 19:28:03 +0000, mm0fmf wrote:

> On 09/02/2015 19:14, Nomen Nescio wrote:
>> Unknown <dog@gmail.com> wrote:
>>
>>> The above was generated by [slhdlhdlhd] 1+3*3=10 mouse-klux;
>>> without looking away from the screen, to the keybrd.
>>
>> When I klux my mouse, I usually don't look at the keyboard anyway.
>>
>>> Aviators call it: 'heads up flying '.
>>
>> Please keep in mind that the Raspberry Pi is not certified for avionic
>> use.
>>
>>
> The Pi isn't certified but our troll should be.

+1


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#13704

FromUnknown <dog@gmail.com>
Date2015-02-18 15:24 +0000
Message-ID<pan.2015.02.18.15.32.33@gmail.com>
In reply to#13670
On Mon, 09 Feb 2015 23:58:05 +0000, Martin Gregorie wrote:

> On Mon, 09 Feb 2015 19:28:03 +0000, mm0fmf wrote:
> 
>> On 09/02/2015 19:14, Nomen Nescio wrote:
>>> Unknown <dog@gmail.com> wrote:
>>>
>>>> The above was generated by [slhdlhdlhd] 1+3*3=10 mouse-klux; without
>>>> looking away from the screen, to the keybrd.
>>>
>>> When I klux my mouse, I usually don't look at the keyboard anyway.
>>>
That's exactly the point. But when you press, 'unusual' keys you do.
Try to read slowly to understand.

>>>> Aviators call it: 'heads up flying '.
>>>
>>> Please keep in mind that the Raspberry Pi is not certified for avionic
>>> use.
>>>
>>>
>> The Pi isn't certified but our troll should be.
> 
I did suspect that it would be "above your head";
and perhaps it's too much to expect beyond-the-herd readers on
today's F/B,twitter, social-USEnet. Where do the adults collaborate?
--
The method to avoid needing to remember ad-hoc syntax is this:-
1. to write the syntax of COW, just type COW
= which opens your editor containing the 1st stage of the file:
  BODY  4-LEGS  HEAD

2. just type eg. HEAD [the point about `wily` is that you don't need to
  type, OTOH without wily, you can just paste HEAD]
= which opens your editor containing the updated 2nd stage of the file:
  BODY   4-LEGS
    2-EYES NOSE 2-EARS

Get it?

It works by using the substituteInPlace facility of sed.

Eg. ./HEAD [in the case that you had all the files of the project
 in * this separate dir] would be the 1-liner to:
<substitute in place> "HEAD"
with eg. /N "2-EYES NOSE 2-EARS"
 and replace the previously displayed file with the updated one.

Some of you kiddies have moved beyong Windows, why not stretch and
'touch' wily? And later we might talk about Haskel.

PS. IIRC I posted the actual few <1-liners> for a Pascal-like syntax
on comp.os.linux.misc


Computing is not about computers [any more], it's about human cognition.

[toc] | [prev] | [next] | [standalone]


#13676

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2015-02-10 08:54 -0500
Message-ID<r93kdah716nfah0ad3jjnvb5e5sbotp2j8@4ax.com>
In reply to#13667
On Mon,  9 Feb 2015 20:14:28 +0100 (CET), Nomen Nescio <nobody@dizum.com>
declaimed the following:

>Unknown <dog@gmail.com> wrote:
>
>> The above was generated by [slhdlhdlhd] 1+3*3=10 mouse-klux;
>> without looking away from the screen, to the keybrd.
>
>When I klux my mouse, I usually don't look at the keyboard anyway.

	I sure hope the mice in my apartment aren't "klux"ing in the middle of
the night.

http://klux.org/

{not to be confused with the klan}
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web