Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #35364
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2018-07-06 22:14 -0700 |
| References | <78d74e56-804b-41f1-b183-097ccb05930b@googlegroups.com> <eff3f2f2-5b38-420e-8f95-fe0600837014@googlegroups.com> |
| Message-ID | <b89320c9-54f1-4127-81c3-e7fc2db83e43@googlegroups.com> (permalink) |
| Subject | Re: Fast Explicit Tail Calls using today's JavaScript |
| From | glathoud <glathoud@yahoo.fr> |
On Friday, July 6, 2018 at 6:37:31 PM UTC+2, Julio Di Egidio wrote: > On Wednesday, 20 June 2018 20:11:54 UTC+2, glathoud wrote: > > > It turns out that we can do this explicit approach using today's JavaScript > > Aka the good old JavaScript, the most misunderstood etc. etc. > > Thanks for sharing: IMHO very nice, and clever use of meta-programming in JS. > > Indeed, I think lexical evaluation is the opposite of a sin, JS is a functional > language to begin with... You're welcome. Yes, tools like `new Function(...)` offer tremendous possibilities. Since the beginning! One thing I am missing in JavaScript is a (possibly standardized) access to the underlying parser. If I remember correctly, Python offers it. That would make code manipulation much cleaner and easier, without having to use ugly RegExps or maintain parser code. Another possible direction would be D's mixins (template mixins and string mixins). In practice, that would a bit like `new Function(...)` but keeping access to the local context, which would be... like... the One Evil Thing. > > (I'll try and ponder your question about trampolines.) Feel free. If you find something faster, I'd be happy to update code & results. Best regards, Guillaume
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Fast Explicit Tail Calls using today's JavaScript glathoud <glathoud@yahoo.fr> - 2018-06-20 11:11 -0700
Re: Fast Explicit Tail Calls using today's JavaScript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-06-22 13:49 -0700
Re: Fast Explicit Tail Calls using today's JavaScript glathoud <glathoud@yahoo.fr> - 2018-07-06 05:26 -0700
Re: Fast Explicit Tail Calls using today's JavaScript Julio Di Egidio <julio@diegidio.name> - 2018-07-06 09:37 -0700
Re: Fast Explicit Tail Calls using today's JavaScript glathoud <glathoud@yahoo.fr> - 2018-07-06 22:14 -0700
Re: Fast Explicit Tail Calls using today's JavaScript Julio Di Egidio <julio@diegidio.name> - 2018-07-07 07:08 -0700
Re: Fast Explicit Tail Calls using today's JavaScript Julio Di Egidio <julio@diegidio.name> - 2018-07-07 08:16 -0700
Re: Fast Explicit Tail Calls using today's JavaScript glathoud <glathoud@yahoo.fr> - 2018-07-07 12:14 -0700
Re: Fast Explicit Tail Calls using today's JavaScript Julio Di Egidio <julio@diegidio.name> - 2018-07-08 05:00 -0700
Re: Fast Explicit Tail Calls using today's JavaScript Julio Di Egidio <julio@diegidio.name> - 2018-07-08 06:05 -0700
Re: Fast Explicit Tail Calls using today's JavaScript glathoud <glathoud@yahoo.fr> - 2018-07-12 01:53 -0700
Re: Fast Explicit Tail Calls using today's JavaScript Julio Di Egidio <julio@diegidio.name> - 2018-07-08 05:46 -0700
csiph-web