Re: [Factor-talk] Prettyprinting Numbers

2017-06-16 Thread John Benediktsson
Well, it looks like we have this more or less exact word in ``tools.memory:commas``, and something very close in ``money:format-money``. On Fri, Jun 16, 2017 at 4:38 PM, Alexander Ilin wrote: > Hello! > > Wow, this is way more general than what I came up with: > > ``` > :

Re: [Factor-talk] Prettyprinting Numbers

2017-06-16 Thread Alexander Ilin
You see? It could use some limelight! : ) Also, thanks for pointing out the `tools.memory` vocab. Not only will it provide some insight for me as to the memory use pattern for my DB-heavy apps, but also it uses some juicy words like `object-table.` Too bad those aren't documented, I might have

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

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

[Factor-talk] Prettyprinting Numbers

2017-06-16 Thread Alexander Ilin
Hello! Is there a standard way to output a number with comma separators grouping the thousands? ``` 1,000,000 num>str-grouped "1,000,000" ``` ---=--- Александр -- Check out the vibrant tech community on

Re: [Factor-talk] Prettyprinting Numbers

2017-06-16 Thread John Benediktsson
Note: that word doesn't work properly for negative numbers. This is better: : number>string-with-commas ( str -- str' ) [ abs number>string "." split1 [ reverse 3 "," join reverse ] dip [ "." glue ] when* ] [ neg? [ "-" prepend ] when ] bi ; On Fri, Jun 16,

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

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!