Re: Help on sending a UDP Packet

2021-01-13 Thread Gary Highberger
David, I haven't had a chance to dig into daytime yet. My needs are still pretty minimum and I can still get by with tcpdump. Thanks for introducing me to daytime nonetheless. I can't reproduce the "Socket wiping out behavior" I mentioned previously. I'm letting it go for now. If it reappears and

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-13 Thread Stefan Monnier
> I installed the patch below for now. Duh, here it is, Stefan diff --git a/smalltalk-mode.el b/smalltalk-mode.el index f662fe1d69..5260b1e510 100644 --- a/smalltalk-mode.el +++ b/smalltalk-mode.el @@ -2,8 +2,8 @@ ;; Author: Steve Byrne ;; Maintainer: Derek Zhou -;; Version: 3.2.9

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-13 Thread Stefan Monnier
Derek Zhou writes: > Accept, but not encourage. None of the GNU smalltak and Squeak's official > example code use it. ":=" at least is a cognate from Pascal, what else is > using "_" ? Indeed, and that's a good reason to say that it doesn't matter very much if `smalltalk-mode` prettifies `_` or no

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-13 Thread s...@pandora.be
Hi Derek, - Op 12 jan 2021 om 22:08 schreef help-smalltalk help-smalltalk@gnu.org: >> The Smalltalk language definition Blue Book does not define ":=" as far as I >> know. >> > To be fair, nor does it define "_" or "^". All it says was "left arrow" or > "uparrow". We got to make do with wha

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread Derek Zhou via Users mailing list for the GNU Smalltalk environment
s...@pandora.be writes: > > The Smalltalk language definition Blue Book does not define ":=" as far as I > know. > To be fair, nor does it define "_" or "^". All it says was "left arrow" or "uparrow". We got to make do with what we have. Derek

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread s...@pandora.be
Sorry but I didn't write or submit the patch. I think Stefan Monnier wrote it. Initially I liked the idea of a pretty-print filter, but I'm not so sure any longer. It may complicate things; perhaps it's not such a good idea to have a pretty-print filter, anyway. Most of all I don't mind usi

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread Derek Zhou via Users mailing list for the GNU Smalltalk environment
s...@pandora.be writes: > - Op 12 jan 2021 om 20:15 schreef help-smalltalk help-smalltalk@gnu.org: > >> I tried that, and it is not as nice as one would think. It is not >> highlighted as an operator for one. > > OK. But you mean emacs is not seeing _ as operator, if I understand > correct

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread Derek Zhou via Users mailing list for the GNU Smalltalk environment
s...@pandora.be writes: > I'm using the underscore (_) as assignment operator; > > As far as I can see, both Squeak and GNU smalltalk accept and support "_" as > assignment; > Accept, but not encourage. None of the GNU smalltak and Squeak's official example code use it. ":=" at least is a cogna

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread s...@pandora.be
- Op 12 jan 2021 om 20:15 schreef help-smalltalk help-smalltalk@gnu.org: > I tried that, and it is not as nice as one would think. It is not > highlighted as an operator for one. OK. But you mean emacs is not seeing _ as operator, if I understand correctly. GNU smalltalk supports _ as ope

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread Derek Zhou via Users mailing list for the GNU Smalltalk environment
Stefan Monnier writes: > > The downside is that then both `_` and `:=` would be displayed in the > same way. And since GNU Smalltalk seems to encourage the use of `:=` > over `_`, maybe it's better to keep `_` ugly? > > > Stefan > > > diff --git a/smalltalk-mode.el b/smalltalk-mode.el >

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread s...@pandora.be
I'm using the underscore (_) as assignment operator; As far as I can see, both Squeak and GNU smalltalk accept and support "_" as assignment; David Stes - Op 12 jan 2021 om 19:54 schreef help-smalltalk help-smalltalk@gnu.org: > > Right now the underscore is not even highlighted as an ope

Re: Help on sending a UDP Packet

2021-01-12 Thread s...@pandora.be
Also note that I set the remote address on the Datagram object. I am not sure whether it matters, but I see in the code that you posted that you set the remote address on the DatagramSocket. - Op 12 jan 2021 om 19:50 schreef stes s...@telenet.be: > Gary, > > I cannot tell whether GNU sma

Re: Help on sending a UDP Packet

2021-01-12 Thread s...@pandora.be
Gary, Here's a tcpdump in my case of the UDP test on port 13 between two different systems (192.168.0.1 and 192.168.0.2) : # tcpdump -i net1 -nn -n -A port 13 dropped privs to nobody tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on net1, link-type EN10MB

Re: Help on sending a UDP Packet

2021-01-12 Thread s...@pandora.be
Gary, I cannot tell whether GNU smalltalk is stable or not, only whether the simple datagram daytime test works for me ... Also it may be that GNU smalltalk has different strengths than socket programming, the fact that they have on the roadmap for GNU smalltalk 3.3 a 'complete rewrite' of th

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread Derek Zhou via Users mailing list for the GNU Smalltalk environment
s...@pandora.be writes: > > In any case the smalltalk-mode could be enhanced: > >> (defvar smalltalk-prettify-symbols-alist >> '(("^" . ?↑) >>(":=" . ?←))) > > this could be extended to include a line > >>("_" . ?←))) > > so that the underscore is also pretty-printed as the back arrow.

Re: Help on sending a UDP Packet

2021-01-12 Thread Gary Highberger
Hi David and everybody, I just sent my first UDP packet with Smalltalk Sockets. It's likely just me but there might be some instability in gst. Somehow my Datagram Socket got wiped out. I'm going to run tests and publish my findings here. Have GNU Smalltalk Sockets and the VM been proven in real

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread s...@pandora.be
The hand with pointing finger that is used for comments, is better visibile in the attached screenshot "vi-with-alto-arrows.png". See screenshot for a better picture of those 'finger' and 'doubled up-arrow' symbols. My guess is that those creative symbols are inventions of the font designer, wh

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-12 Thread s...@pandora.be
- Op 11 jan 2021 om 18:29 schreef Stefan Monnier monn...@iro.umontreal.ca: > > Similarly here, I don't see why a doubled up-arrow (I guess `⇑` ?) > would convey the semantics in a more intuitive manner than a `!`. The doubled up-arrow that I meant is in the screenshot in attach. I am not s

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-11 Thread Stefan Monnier
> It would be a good idea to have the modification below in the gnu smalltalk > git repository; > it's coherent with the comments on _ and := in the GNU smalltalk manual, > that those are both accepted by gnu smalltalk as assignment. I don't have access to the Smalltalk Git, but if there's a cons

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-11 Thread s...@pandora.be
It would be a good idea to have the modification below in the gnu smalltalk git repository; it's coherent with the comments on _ and := in the GNU smalltalk manual, that those are both accepted by gnu smalltalk as assignment. By the way, comments are enclosed in double quotes "" but what I obse

display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-11 Thread Stefan Monnier
> The idea of GNU Smalltalk is to use a UNIX command-line style environment, > and use "Emacs" (editor) and so on ... it's not about emulating the more > graphically oriented > development environment of older Smalltalk implementations. > > So by default it is logical that GNU smalltalk limits its

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-11 Thread s...@pandora.be
I suspect Cuis is also using the Unicode characters. I don't know. But the idea of GNU Smalltalk is totally different, it seems GNU Smalltalk, is about emacs, UNIX integration, command line etc. while Cuis is much more graphically oriented (I think). In any case the smalltalk-mode could be en

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-11 Thread Derek Zhou via Users mailing list for the GNU Smalltalk environment
s...@pandora.be writes: > If I understand the footnote in the GNU Smalltalk syntax on := and _ > correctly, no Unicode is required anyway: > > The GNU smalltalk manual says: > " In the ancient days (like the middle 70’s), the ASCII underscore character > was also printed as a back-arrow, and m

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-10 Thread s...@pandora.be
Note that the VIC-20 and C-64 and older Commodore machines indeed displayed it as back-arrow: https://en.wikipedia.org/wiki/PETSCII PETSCII has only uppercase letters in its powerup state, an up-arrow ( ↑ ) instead of a caret ( ^ ) in position $5E and a left-arrow ( ← ) instead of an undersc

Re: display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-10 Thread s...@pandora.be
If I understand the footnote in the GNU Smalltalk syntax on := and _ correctly, no Unicode is required anyway: The GNU smalltalk manual says: " In the ancient days (like the middle 70’s), the ASCII underscore character was also printed as a back-arrow, and many terminals would display it that

display _ as left arrow (was Re: Help on sending a UDP Packet)

2021-01-10 Thread s...@pandora.be
It's not by the way that I'm sure I'd really like that feature for GNU smalltalk, if it would exist at all, where a Unicode character would be used for the left-arrow. The idea of GNU Smalltalk is to use a UNIX command-line style environment, and use "Emacs" (editor) and so on ... it's not abo

Re: Help on sending a UDP Packet

2021-01-10 Thread s...@pandora.be
I think some Smalltalk systems (Cuis and possibly others) display _ as the left-arrow. In "Cuis" http://cuis-smalltalk.org/ this looks like the examples in the Blue Book. I think the original XEROX Smalltalk systems used those characters, but I've never used them, but in Cuis the _ prints a

Re: Help on sending a UDP Packet

2021-01-10 Thread Gary Highberger
Hello David and all, I have a few (noob) questions about the UDP example Smalltalk program. More questions likely to follow as I come up to speed. Your patience is much appreciated David and everybody. QUESTIONS: • Is "_" the preferred assignment operator? I've been seeing ":=" too. I don't have

Re: Help on sending a UDP Packet

2021-01-10 Thread Gary Highberger
Good morning David, I'm not familiar with 'daytime' but will come up to speed on it and get it and your use cases running and report my findings for everybody to see. Hopefully netTest.c explains what I'm trying to do with Smalltalk. It's very short and simple. https://www.dropbox.com/s/xc23wj6r

Re: Help on sending a UDP Packet

2021-01-07 Thread s...@pandora.be
Hi, I'm using a simple TCP/IP and UDP service called 'daytime' here. This is a very old service, that is useful for small tests. Traditionally this is a "inetd" service. On my system, it is available as an inetd service. Note that some Linux distributions do not install that service by defau