Re: [Factor-talk] How to introduce factor to java programmers?

2017-06-16 Thread Sankaranarayanan Viswanathan
Glad you guys liked it. And, I did not notice that typo until you pointed it out - will fix. Thanks, Sankar -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://s

Re: [Factor-talk] How to introduce factor to java programmers?

2017-06-16 Thread Alexander Ilin
I totally agree, the presentation is VERY COOL!Great visual style, great accent on the details in small steps, great topics covered, no clutter. The only minor criticism is the use of the word "breath" instead of "width". If it wasn't some intentional joke, I would at least fix the typo in "brea_d_

Re: [Factor-talk] How to introduce factor to java programmers?

2017-06-16 Thread John Benediktsson
P.S., this is fun to show off too, also implemented as a library. USING: infix ; INFIX:: quadratic-root ( a b c -- x ) (-b+sqrt(sq(b)-(4*a*c)))/(2*a) ; It's a little fragile though, I just noticed it doesn't seem to let me output more than one value on the stack (-b +/- sqrt...)

Re: [Factor-talk] How to introduce factor to java programmers?

2017-06-16 Thread John Benediktsson
This is GREAT! I love the topics covered, the step-through approach, and the overall feeling. I bet that was a great presentation. Best, John. On Fri, Jun 16, 2017 at 5:09 PM, Sankaranarayanan Viswanathan < rationalrev...@gmail.com> wrote: > Hello Everyone, > > Thank you for your inputs. In th

Re: [Factor-talk] How to introduce factor to java programmers?

2017-06-16 Thread Sankaranarayanan Viswanathan
Hello Everyone, Thank you for your inputs. In the end, I decided to focus on the aspects of Factor that I was most amazed by when I first discovered the language last year. I presented yesterday, and it was received well. I think I kindled the interest of a few people who attended. The slide

Re: [Factor-talk] How to introduce factor to java programmers?

2017-06-01 Thread Alexander Ilin
John, the question was specifically about the quotation parameter's stack effects in general, i.e. `quot: ( x -- x )` vs. simply `quot` in the parameter lists. My take is that the quotation stack effects are not checked separately on a per-parameter basis, only the word as a whole is checked. So, t

Re: [Factor-talk] How to introduce factor to java programmers?

2017-05-31 Thread John Benediktsson
Well, technically neither ``dip`` nor ``keep`` need those stack effects, they are inlined which means the non-inline word that includes them will have it's stack effect checked by the compiler for correctness. There are few reasons why we want to have the ".." variadic stack effects, and those are

Re: [Factor-talk] How to introduce factor to java programmers?

2017-05-31 Thread Sankaranarayanan Viswanathan
Thanks for the ideas John! I have been looking at the collection of talks, and they've been quite helpful. Your thoughts about discussing "Java like" things makes a lot of sense and I think contrasting Factor's object system with Java's should be a nice topic. That said, I did run into a que

Re: [Factor-talk] How to introduce factor to java programmers?

2017-05-30 Thread John Benediktsson
We have a few "talks" that were given a number of years ago (not all code in them is up to date, but it's mostly good -- if you have problems updating the code let me know and I can help): https://github.com/factor/factor/tree/master/extra/talks https://github.com/slavapestov/boston-lisp-

[Factor-talk] How to introduce factor to java programmers?

2017-05-30 Thread Sankaranarayanan Viswanathan
Hi Guys, We have a developer community at where I work, and we do monthly tech talks that usually last between 30 and 40 minutes. I presume very few in that group have looked at stack based languages before, and I've been wanting to do a small talk about Factor there. After spending a week p