Issue #3710: EKR's last lecture

193 views
Skip to first unread message

Edward K. Ream

unread,
Dec 24, 2023, 9:42:09 AM12/24/23
to leo-editor
I have finished #3710: EKR's last lecture.

This issue is locked. I welcome all comments here.

Edward

HaveF HaveF

unread,
Dec 24, 2023, 9:14:55 PM12/24/23
to leo-editor
I have finished #3710: EKR's last lecture.

personal goals
> What's your goals? Does that changed? Just a remind. 


Whenever I discover something I think I "should" do, I ask myself two questions:

  • Do I need to do it?
  • Do I want to do it?

> I like these philosophies, and I generally ask more demanding questions myself

> Can I not do this? 


The enemies of effectiveness

> For me, the hardest thing is that sometimes I work too much and take too little rest or exercise. Especially when you are tired, you should get up and take a rest, but sit in a chair for a longer time.

> It is really too difficult to break bad habits and develop a good habit.



> Btw, do you have any ideas for balancing your family life, bad emotions, limited time, etc.


Edward K. Ream

unread,
Dec 25, 2023, 3:11:29 AM12/25/23
to leo-editor
On Sunday, December 24, 2023 at 8:14:55 PM UTC-6 HaveF wrote:

> What's your goals? Does that changed? Just a remind.

My goals are to complete my work on Leo and to continue doing fun computer projects.

> For me, the hardest thing is that sometimes I work too much and take too little rest or exercise.

Yes. I set a timer to remind myself to take a break.


> Btw, do you have any ideas for balancing your family life, bad emotions, limited time, etc.


My only advice is to recognize that family matters more than anything.


Edward

Ray wang

unread,
Dec 25, 2023, 8:35:19 PM12/25/23
to leo-editor
Thank you, EKR.

> Goals

Some people say that societal changes are happening too quickly, and there's a need to rapidly acquire new skills.
However, some things are not that easy, which causes a lot of anxiety. What is your perspective on this issue? 


HaveF HaveF

unread,
Dec 25, 2023, 9:39:57 PM12/25/23
to leo-e...@googlegroups.com
Some people say that societal changes are happening too quickly, and there's a need to rapidly acquire new skills.
However, some things are not that easy, which causes a lot of anxiety. What is your perspective on this issue? 

Maybe Edward can talk about how to evaluate Rust thing with Leo :-) 

Edward K. Ream

unread,
Dec 26, 2023, 4:47:22 AM12/26/23
to leo-editor
On Monday, December 25, 2023 at 7:35:19 PM UTC-6 Ray Wang wrote:

> Thank you, EKR.

You're welcome :-)

Edward

Edward K. Ream

unread,
Dec 26, 2023, 4:55:28 AM12/26/23
to leo-editor
I'm not sure what you mean.  Issue #3662 suggests rewriting Leo's beautifier (aka Orange) in rust. I expect a speedup of about 100x.  This is worth doing because my present beautify scripts only beautify changed files.

It's also worth doing because I want to learn rust :-)

I'll be applying the central lessons of info issue #3730:

- The way to learn a new computer language is to dive right in after doing just a little study.
- Expect to put 10 in for every one out at first. That's ten units of effort for every unit of results.

In other words, confident learners don't expect everything to be easy at first!

Edward

HaveF HaveF

unread,
Dec 26, 2023, 5:18:23 AM12/26/23
to leo-e...@googlegroups.com

Some people say that societal changes are happening too quickly, and there's a need to rapidly acquire new skills.

However, some things are not that easy, which causes a lot of anxiety. What is your perspective on this issue? 

Maybe Edward can talk about how to evaluate Rust thing with Leo :-) 

Ray Wang said, "Some people say that societal changes are happening too quickly, and there's a need to rapidly acquire new skills."

I mean, after so many years, so many languages, so many new technologies, why are you interested in Rust alone? (Rust corresponds to what he says about new skills, )

We're not trying to understand the benefits of the Rust language, but how you choose it.

Maybe it's just taste :-)

Edward K. Ream

unread,
Dec 26, 2023, 11:00:02 AM12/26/23
to leo-e...@googlegroups.com
On Tue, Dec 26, 2023 at 4:18 AM HaveF HaveF <iamap...@gmail.com> wrote:

> why are you interested in Rust alone?

I'm interested in Rust because:
- It's important to the future of python.
- Transliterating leoAst.py to Rust will make Leo's beautify commands about 100x faster.

I'm interested in other languages and technologies besides Rust, but speeding up Leo's beautifier seemed like a good next thing to do.

Edward

Offray Vladimir Luna Cárdenas

unread,
Dec 26, 2023, 7:14:49 PM12/26/23
to leo-e...@googlegroups.com

Thanks for your "last" lesson, despite with you interactions after that post you keep teaching us in the community.

Regarding Rust and the oxidation of everything (A.K.A. rewrite it in Rust) I have found Nim[1] a pretty good language with visible inspirations on Python (like its syntax) and without over complications of Rust or Zig, for example the borrow checker (but Nim's garbage collector can be disabled).

[1] https://nim-lang.org/

I have rewritten some Pharo code in Nim for efficiency purposes or make some interop between both, because I need functionality available in Nim but not in Pharo.

Maybe you or other Leonistas would find Nim interesting, in their explorations of other technologies.

Cheers,

Offray

--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS2WpPnSRcnBh3N3hSVmEZJZ1r1DHQJ4kYYQ87oXEn5vdg%40mail.gmail.com.

Edward K. Ream

unread,
Dec 27, 2023, 2:52:14 AM12/27/23
to leo-e...@googlegroups.com
On Tue, Dec 26, 2023 at 6:14 PM Offray Vladimir Luna Cárdenas wrote:

> Thanks for your "last" lesson

You're welcome.

> Regarding Rust. I have found Nim[1] a pretty good language.

Thanks for the link.

I am converting leoAst.py to Rust because the RustPython project has already done the hard work of converting Python's parser and tokenizer module to Rust. This project has 363 contributors!

Edward

Offray Vladimir Luna Cárdenas

unread,
Dec 27, 2023, 1:37:23 PM12/27/23
to leo-e...@googlegroups.com

As I'm not making migrations for Python, Nim and now Julia are calling my attention for specific projects/prototypes. But yes, it seems a pretty good project for such migrations and yes, with a lot of heavy lifting already done.

Cheers,

Offray


Edward K. Ream

unread,
Dec 30, 2023, 1:15:54 AM12/30/23
to leo-editor
On Wednesday, December 27, 2023 at 12:37:23 PM UTC-6 offray wrote:

[Rust] seems a pretty good project for such migrations and yes, with a lot of heavy lifting already done.

I'm plowing through the interactive rust manual and the actual RustPython code. It's a slog.

Rust has the C world's wretched syntax and complexity. nim has Python's simplicity and clarity.

So yes, I would use nim if I could.

I've just glanced at nim code.  "I" instead of "if"?? Lowercase is much easier to type!

Edward

Edward K. Ream

unread,
Dec 30, 2023, 2:26:06 AM12/30/23
to leo-e...@googlegroups.com
On Sat, Dec 30, 2023 at 12:15 AM Edward K. Ream <edre...@gmail.com> wrote

So yes, I would use nim if I could.

I've just glanced at nim code.  "I" instead of "if"??

Never mind. nim's intro page clearly shows python-like keywords.

I thought I was reading nim code at https://rosettacode.org/wiki, but I must have been reading something else :-)

Edward

Thomas Passin

unread,
Dec 30, 2023, 9:39:46 AM12/30/23
to leo-editor
Looks like Nim can use a good range of scientific computing libraries, and there are some GUI libraries.  So at this point the two compiled languages that would be if serious interest to me would be Nim and Julia.

Offray Vladimir Luna Cárdenas

unread,
Jan 3, 2024, 5:41:24 PM1/3/24
to leo-e...@googlegroups.com

Also I recently discovered Julia's Pluto[1][1a] and I really like their focused notebook environment saved in plain text instead of Jupyter's cumbersome and human unfriendly JSON. A breath of fresh air, following the steps in human/diff friendly formats for interactive notebooks of Pharo's Grafoscopio, Elixir's LiveBook or Clojure's Clerk.

I don't know about Nim's scientific ecosystem (Julia seems better in that regard). But one of the advantage of novice's mind is that we can start without the heaviness and even ignore the one related with popularity of fashion (like the one in Rust these days).

[1] https://cinemaphile.com/watch?v=Rg3r3gG4nQo
[1a] https://plutojl.org/

Cheers,

Offray

--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.

Thomas Passin

unread,
Jan 3, 2024, 5:52:21 PM1/3/24
to leo-editor
That Pluto really whets my appetite!
Reply all
Reply to author
Forward
0 new messages