[Pharo-dev] Re: Recommendation for password encryption?

2022-09-20 Thread Chris Muller
Ron Teitelbaum made a clever solution to resisting memory-scanning attacks when using private keys in an image. Upon asking KeyHolder holdKey: yourPrivateKey, it forks off a while loop which generates a random sequence of bytes (ByteArray) to encrypt yourPrivateKey with it. It then delays 100ms,

[Pharo-dev] Re: [ANN] Fuel 5.0.0

2022-02-28 Thread Chris Muller
> > You will never be able to invent the future if you do not want to have a > future. > The future cannot be had, only the present.

Re: [Pharo-dev] should doubleclicking on symbol select # too?

2020-06-09 Thread Chris Muller
Symbols are often used as arguments to #perform:, I don't know if Pharo ignores the initial hashmark (#) to allow browsing implementors but, if not, that could be a reason.. :) - Chris On Tue, Jun 9, 2020 at 2:26 PM Stéphane Ducasse wrote: > Hi > > I would like to know what you think about th

Re: [Pharo-dev] A call for a library to script github.com

2019-09-27 Thread Chris Muller
lt; pharo-dev@lists.pharo.org> wrote: > Hello, > > We have put a significant amount of effort on having an implementation of > GraphQL for Pharo and VisualWorks. It even has a booklet. > > https://github.com/OBJECTSEMANTICS/GraphQL > > Cheers, > Alexandre > > On Sep 26, 2019, a

Re: [Pharo-dev] A call for a library to script github.com

2019-09-26 Thread Chris Muller
GraphQL is da bomb, I would definitely recommend writing a client to access their v4 API. You may not even need it, but Squeak will have a full GraphQL parser and document validation and processing engine real soon now. It's completely stand-alone, no dependencies, and I've kept portability in mi

Re: [Pharo-dev] Pharo source code formatting guide

2019-07-06 Thread Chris Muller
I think of Beck's Rectangular Block as like a textual representation of Scratch tiles. It's about presenting the code-structure, rather than aligning text on tabs. However, I do think his Indented Control Flow actually preserves _horizontal_ space at the expense of vertical space. I've found mys

Re: [Pharo-dev] Cannot use Zinc in Pharo7 anymore

2018-11-06 Thread Chris Muller
> Earlier, we’ve seen projects like Magma being overwhelmed by the number of > needed changes, I'm curious what you meant by this. I'm not aware of Magma ever having been overwhelmed. Its design has made it easy to be one of the most-available and consumable pieces of software for every version

Re: [Pharo-dev] Collection groupedBy: and groups order

2018-08-16 Thread Chris Muller
Despite the interleavement, the order of the grouped elements as they occurred in the original collection could be preserved. On Wed, Aug 15, 2018 at 6:34 AM, Damien Pollet wrote: > The problem is, there isn't really an order to preserve in the first place, > since even if the original collection

Re: [Pharo-dev] [squeak-dev] Why do we have SmallDictionary?

2018-07-01 Thread Chris Muller
This discussion has limited its context to comparing *in-memory* Dictionary implementations, where open-addressing has an advantage. Using Magma reveals another context where chained Dictionary's can have some advantages: When they're large, persistent, and shared in a mul

Re: [Pharo-dev] Pavel's ChangeLog week of 2018-01-15

2018-01-22 Thread Chris Muller
Getting the serialization working is a big step, good job. If you can get MaClientServerTestCase suite debug to pass, then you should be nearly home free; the rest is mostly just high-level stuff that builds on that so the rest of the port should go fairly smoothly. Wow. On Mon, Jan 22, 20

Re: [Pharo-dev] subexpression precedence

2017-01-11 Thread Chris Muller
> Other than humans generally read from (pardon me) Other than that the code is read from left to right...

Re: [Pharo-dev] subexpression precedence

2017-01-11 Thread Chris Muller
> Wow, I just skimmed the messages section in the blue book and you're right. > I think this is an omission and that it should be specified that keyword > message receiver and arguments are evaluated strictly left-to-right. I don't > know of a Smalltalk implementation that doesn't evaluate in

Re: [Pharo-dev] Running on Ubuntu?

2016-11-23 Thread Chris Muller
Hey Igor, I was just messing around with this the other day; Levente had the tersest incantation which worked on my fresh 14.04.4 install: sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libuuid1:i386 libglu1-mesa:i386 libsm6:i386 (Documented at http://wiki.squeak.org/s

Re: [Pharo-dev] [Moose-dev] [ANN] Release of Agile Visualization

2016-08-15 Thread Chris Muller
Finishing a book is hard. Your work and perseverence has elevated this project to an amazing level. Congratulations, Alexandre. On Sun, Aug 14, 2016 at 4:19 PM, Alexandre Bergel wrote: > Dear Colleagues and Friends, > > It is a great pleasure to announce the release of Agile Visualization. Agil

Re: [Pharo-dev] [ANN] Pharo 5.0 released!

2016-05-12 Thread Chris Muller
Congratulations! On Thu, May 12, 2016 at 10:57 AM, Esteban Lorenzano wrote: > Vote up! > > Reddit: > https://www.reddit.com/r/programming/comments/4j1clo/pharo_50_the_immersive_pure_object_oriented/ > > YC: > https://news.ycombinator.com/item?id=11684285 > > > On 12 May 2016, at 17:49, Esteban Lo

Re: [Pharo-dev] Mocking network…

2016-03-02 Thread Chris Muller
alhost network again? > > frank > > On 2 March 2016 at 08:27, Chris Muller wrote: >> A mock network will never test as thoroughly as locahost network.. >> >> On Wed, Mar 2, 2016 at 6:32 AM, Yuriy Tymchuk wrote: >>> HI, there is one thing in Ruby (on Rails) that

Re: [Pharo-dev] Mocking network…

2016-03-02 Thread Chris Muller
I assume the mock object does not exercise any real network code or primitives. On Wed, Mar 2, 2016 at 2:43 PM, Norbert Hartl wrote: > >> Am 02.03.2016 um 17:27 schrieb Chris Muller : >> >> A mock network will never test as thoroughly as locahost network.. >> > Why?

Re: [Pharo-dev] Mocking network…

2016-03-02 Thread Chris Muller
A mock network will never test as thoroughly as locahost network.. On Wed, Mar 2, 2016 at 6:32 AM, Yuriy Tymchuk wrote: > HI, there is one thing in Ruby (on Rails) that I really like and it is a > option to mock network. This means that when you run a test your network > requests are handled by

Re: [Pharo-dev] About being a real Pharo Jedi developer

2015-11-20 Thread Chris Muller
Good points. And, even if it all worked, would anyone still prefer not to simply rebuild an image with all the code? IOW, wouldn't they "trust" an image that was only built UP rather than one built up and then partially torn down? IMO, unloading is for the viewpoint of having an "ultimate image"

Re: [Pharo-dev] About being a real Pharo Jedi developer

2015-11-19 Thread Chris Muller
> translated from Yoda language: > > you will be a real Jedi when your code will load in one click! In Yoda grammar: "When, in one click, your code will load, then, and only then, a Jedi will you be..." :)

Re: [Pharo-dev] Preparing for the (already here) future world of multi-core PCs

2015-11-18 Thread Chris Muller
If you are on Linux, there is a add-on package for OSProcess called CommandShell which includes a class called RemoteTask. It lets you fork a block of code to a separate OS thread and return the result to the calling image via serialization (Fuel or other). IIUC, it takes advantage of Linux memo

Re: [Pharo-dev] String concatenation using comma ","

2015-09-10 Thread Chris Muller
I generally agree about implicit type-conversions, but I don't really think this one is all that implicit. String concatentation returns a String, no exceptions. By not having this for Strings actually led to Andreas getting bitten, which is why it was added to Squeak. The "bite" comes when your

Re: [Pharo-dev] Design Question: Undefined vs. MyNullObject vs. #ifNil:

2015-08-21 Thread Chris Muller
IMO, when you are talking about a type as primitive as a Date, then there is nothing wrong with ifNil: checks. You wouldn't want to do the same for Strings or Numbers. Date is right there with those. More broadly, I feel there is nothing inherently wrong with case-logic if it is TSTTCPW. In fac

Re: [Pharo-dev] Event handling insanity

2015-07-27 Thread Chris Muller
On Mon, Jul 27, 2015 at 8:42 AM, Igor Stasenko wrote: > Nothing here is about things to fix, > but rather about how impossible to debug event handling in system that runs > and relies on very same events.. > I had very annoying problem with mouse move handling and processing it > correctly, and i

Re: [Pharo-dev] MCVersionInfo: 10% of the image

2015-02-20 Thread Chris Muller
> Chris, didn't you do something about this in Squeak? It would be nice to > keep consistent if possible... Yes, but no one liked it because it employed the Proxy design-pattern and requires a become. Perhaps if I'd gotten it perfect the first time it'd have been better-received. But, I didn'

Re: [Pharo-dev] Matrix API question for a native english

2015-02-09 Thread Chris Muller
On Mon, Feb 9, 2015 at 3:05 PM, stepharo wrote: > Hi > > a matrix has rowCount and columnCount and I was wondering if this api is the > way to get > the number of columns and rows of a matrix. > Would rowNumber and columnNumber be better? I think rowCount is better than rowNumber for that. You u

Re: [Pharo-dev] [squeak-dev] re: Context status 2015-01-16

2015-01-18 Thread Chris Muller
Hi Stef, On Sun, Jan 18, 2015 at 5:15 AM, stepharo wrote: > For your information guille produced pharo images of 11k for simple > addition, 18k for large numbers. > Also Seaside counter application of about 500k. Of course, the real trick is if those tiny images can actually be grown into someth

Re: [Pharo-dev] [Pharo4] Slots can now be saved with MC

2015-01-11 Thread Chris Muller
It has been a while since I read the paper, but my memory is that Slots lets you define features and/or constraints on inst-var's. For example, assigning default values or restricting the set of valid values. This would probably be appealing for folks coming from languages like Java or C++, becau

Re: [Pharo-dev] Duration year

2014-12-08 Thread Chris Muller
> I was working on a GenericYear that was intended to be used for DateAndTime > calculus - to be able to add and subtract an arbitrary number of years. The > class by itself would not know the days - it is an arbitrary (generic) Year. > > It would only know the number of days when it is added (or

Re: [Pharo-dev] Monticello and Fuel

2014-12-07 Thread Chris Muller
> Yes, performance seems to be the main use case. Fuel files of hundreds of MB > take a long time to load and save, even if you only change a single string. > One instance where this is relevant is the Moose model. They currently use > .mse files, which use a textual representation (if I’m not mist

Re: [Pharo-dev] Monticello commit hook

2014-09-25 Thread Chris Muller
MCRepository>>#storeVersion:.

Re: [Pharo-dev] Does anyone use menuMorph in dockingbar?

2014-07-25 Thread Chris Muller
Those are Flaps, not DockingBars. On Fri, Jul 25, 2014 at 12:48 AM, Peter Uhnák wrote: > Isn't DockingBar a Squeak thing? The little tabs things that would live > around the edges of the screen and you could grab morphs onto a canvas. > > > On Fri, Jul 25, 2014 at 2:06 AM, Alexandre Bergel > w

Re: [Pharo-dev] Stepping through with GLORP Proxies

2014-06-23 Thread Chris Muller
What specific problem are you having debugging? Stepping Through a block which about to send message to a Proxy? It seems like I should be having the same problem with Magma proxies.. I know sometimes I would get a "Simulation" error while stepping Through (which would blow up a debugging sessio

Re: [Pharo-dev] String deduplication

2014-06-02 Thread Chris Muller
This is a normal pattern in application-development. For example, Todd Blanchard's HTML validating parser grabs a huge chunk of HTML, and all the parts are simply referenced by position within that big String. On Mon, Jun 2, 2014 at 8:26 AM, Christophe Demarey wrote: > > Le 30 mai 2014 à 09:39,

Re: [Pharo-dev] String deduplication

2014-05-30 Thread Chris Muller
I hope you're only considering this one-time for your Pharo release image, and not something that will _continue_ to operating on an on-going basis. Attempting to do that below app-layer would be way too intrusive for, for example, a Magma application..A String read from one DB session belongs

Re: [Pharo-dev] Pharo in Rasbian ?

2014-05-22 Thread Chris Muller
On Thu, May 22, 2014 at 2:50 AM, stepharo wrote: > I think that Jannik started to clean to code long before tim and he is not > payed for that > so at least we should respect that and do not start to blame him about > redundancy. Hi Stef, I'm talking about redundancy within the default PI configu

Re: [Pharo-dev] Pharo in Rasbian ?

2014-05-21 Thread Chris Muller
One reason might be that Phratch is kind of redundant isn't it? Smalltalk already has a foothold on the Pi in the form of Squeak, and Tim Rowledge is being paid by that organization right now to improve Scratch. So if you're interested in helping kids learn programming with Scratch, why not check

Re: [Pharo-dev] One complaint about Pharo

2014-05-15 Thread Chris Muller
As one begins to expand their work into multiple images, one host window per ends up being the only practical way to keep it managed. On Thu, May 15, 2014 at 1:21 PM, David Astels wrote: > One of the big issues I have with Pharo is that I’m stuck on a single screen, > unlike Cincom Smalltalk tha

Re: [Pharo-dev] Immutable collections and encapsulation

2014-05-13 Thread Chris Muller
You could answer a copy of the collection, so it won't matter internally if they try to add to it. Or you could wrap the collection with operations too. However, doing that, I suppose someone could still write, "(someObject instVarNamed: 'internalCollection') add: junk. So, why bother? Writing

Re: [Pharo-dev] Debugging in Production Servers

2014-04-25 Thread Chris Muller
On Fri, Apr 25, 2014 at 5:01 AM, askoh wrote: > Thanks for all the comments. Let me distilled what I have learned. Correct me > if I am wrong. > > In Smalltalk: > Production environment and development environment are very similar if not > identical. The "environments" on my laptop are the same a

Re: [Pharo-dev] [OT] Speed of light 6-2-2014

2014-02-13 Thread Chris Muller
I totally agreed with "Apple is a product-driven company, not a computing-driven company." But part of the irony of his post occurs between his first and last statements: First statement: "When most programmers are introduced to Objective C for the first time, they often recoil in some degree o

Re: [Pharo-dev] Morphic Alarms

2014-01-23 Thread Chris Muller
When the hand enters a Morph, a help balloon appears, not instantly, but after a time elapsed. On Thu, Jan 23, 2014 at 12:39 AM, Sean P. DeNigris wrote: > Is anyone using them? What is a real world use case? I've read through the > class comment, senders (currently seems to be only DebuggerSessio

Re: [Pharo-dev] Do you want to accept???????? Discard???????

2014-01-13 Thread Chris Muller
>> Undo on Command+L would be of no use except for people pressing >> buttons before thinking. That needs to be corrected to, "think first, >> THEN press buttons." :) > > Which goes in front collision course with the usability principle "Don't > make me think" for designing great user interfaces

Re: [Pharo-dev] Do you want to accept???????? Discard???????

2014-01-11 Thread Chris Muller
I finally read this whole thread. I don't normally get involved in Pharo discussions but, I can't help to say: Igor is 100% right, and his best rationale why at the beginning: == at the end, it is just silly: the point is that i am always sure about things i do, when interacting with my

Re: [Pharo-dev] Please stop top posting... (was Re: Tell me about your workflow)

2013-12-17 Thread Chris Muller
> > > Ah. I hadn't thought that many devs actually use the web UI for gmail, but > perhaps they are :) > But that would defeat one of the primary purpose of using web email which is access from any machine. Besides that, Gmail has the best UI, bar none. The handling of Conversations is what sets

Re: [Pharo-dev] Please stop top posting... (was Re: Tell me about your workflow)

2013-12-17 Thread Chris Muller
> > > If you use Gmail, doing the right thing is now _hard_. (It's a > click-the-ellipsis, then a find-the-place-to-edit, then hit return to > No need for the fine-motor click, just use right-arrow + Enter. > make a space for your words, then type, followed by scrolling back up > to that place b

Re: [Pharo-dev] Athens: testing whether a point is within a path?

2013-12-15 Thread Chris Muller
This helped me with a related problem once. http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html On Sat, Dec 14, 2013 at 1:46 PM, Alexandre Bergel wrote: > Hi! > > I have seen that AthensPolygonTester may do the job somehow. > How can I test whether a point is included in a p

Re: [Pharo-dev] Similarity Matrix

2013-12-15 Thread Chris Muller
On Sun, Dec 15, 2013 at 2:29 PM, Hernán Morales Durand < hernan.mora...@gmail.com> wrote: > El 15/12/2013 13:30, Alexandre Bergel escribió: > > Hi Hernan, >> >> In that case, I suggest you to define your own builder to build the >> matrix you need. >> I have given a try, but I cannot properly par

Re: [Pharo-dev] Nautilus no longer guards against changed methods

2013-11-25 Thread Chris Muller
On Sun, Nov 24, 2013 at 9:34 AM, Sean P. DeNigris wrote: > Stephan Eggermont wrote >> We need to revert to the modal behavior > > In general in UIs, he best approach is to do what the user requests without > hesitation, and make everything undoable. Ah, thanks for saying that. People need to be

Re: [Pharo-dev] Old ClassBuilder remove!

2013-11-22 Thread Chris Muller
> Just two examples: > - Morphic uses a dictionary to allow extensions to add attributes to the > base class. This is closed-world-based-assumption thinking because I have to > know in advance what parts will be extended by someone else. This should be > easily changeable with slots given that slot

Re: [Pharo-dev] Old ClassBuilder remove!

2013-11-22 Thread Chris Muller
How does this affect serialization / materialization engines like Fuel? On Thu, Nov 21, 2013 at 7:24 AM, Camille Teruel wrote: > > On 21 nov. 2013, at 13:44, kilon alios wrote: > > any links why newcomers like me should be impressed ? Whats the advantages ? > > > That's just cleaning. The old cl

Re: [Pharo-dev] In-memory FileSystem write streams not being polymorphic

2013-11-13 Thread Chris Muller
be both a file and a stream? I would be happy to show that a rewrite is both > simple and good looking at end application sites. > Of course, inside the lava of multi year hacked stream hierarchy, it might > be a bit less obvious to disentangle the spaghetti. > Hence more radical soluti

Re: [Pharo-dev] In-memory FileSystem write streams not being polymorphic

2013-11-13 Thread Chris Muller
ne final thing to consider about selector "uniformity" is how it can negate the ability to effectively trace code (via senders and implementors). Wow, how many senders of #next...? Stream-composition is cool, though, and I understand that to be a benefit of the stricter API. > 2013/11/13

Re: [Pharo-dev] In-memory FileSystem write streams not being polymorphic

2013-11-13 Thread Chris Muller
a > higher level object (a FIleReference, FileDirectory or whatever). > > > 2013/11/13 Chris Muller >> >> On Tue, Nov 12, 2013 at 7:31 AM, Nicolas Cellier >> wrote: >> > It's just a matter of selecting a strategy. I've proposed two: >> > A)

Re: [Pharo-dev] In-memory FileSystem write streams not being polymorphic

2013-11-12 Thread Chris Muller
On Tue, Nov 12, 2013 at 7:31 AM, Nicolas Cellier wrote: > It's just a matter of selecting a strategy. I've proposed two: > A) create a wrapper class for legacy Stream compatibility selectors > B) create extensions for Legacy Stream compatibility selectors > My preference goes to A) By wrappers yo

Re: [Pharo-dev] Formatting dates

2013-10-30 Thread Chris Muller
Date today mmdd. "prints '2013-10-30'" :) On Wed, Oct 30, 2013 at 3:55 PM, blake wrote: > Heya, guys-- > > Converting a Ruby program to Pharo, and one of the things this program does > is write a file out by date. The format is "mmdd" (which is my preferred > naming convention). In

Re: [Pharo-dev] Tests with multiple processes

2013-10-29 Thread Chris Muller
Testing with real sockets, across multiple images is the only way I would trust my own networking programs. OSProcess makes that an easy, one-click affair. On Mon, Oct 28, 2013 at 5:50 PM, Norbert Hartl wrote: > I’m working on project that deals with server to server communication. For > the te

Re: [Pharo-dev] Use #shouldnt:raise: only with specific errors, or evaluate the given expression directly

2013-10-25 Thread Chris Muller
We should not continue this old discussion. We've already debated this ad naseum. Thank you Pharo guys for exploring what can be done when all constraints are removed! Thank you Squeak guys for advancing in a way that caters to legacy applications. On Fri, Oct 25, 2013 at 1:25 PM, Levente Uzony

Re: [Pharo-dev] Small Methods dont need comments , true or myth ?

2013-05-18 Thread Chris Muller
Hi, >> That's why I use Squeak's MessageTrace, it handles this better than >> anything else in any Smalltalk. It is a "lightweight" way, in terms >> of gestures and UI elements, to trace through code without getting >> lost. I wish Pharo would consider implementing a tool like this. > > Can you

Re: [Pharo-dev] Small Methods dont need comments , true or myth ?

2013-05-17 Thread Chris Muller
On Fri, May 17, 2013 at 6:27 AM, dimitris chloupis wrote: > I really enjoy smalltalk, every small thing that I discover every day. > > But there is one thing that really annoys me. The bold claim that small > functions do not need comments. > There is of course a level of truth that when a functio

Re: [Pharo-dev] Killing respondsTo:

2013-05-14 Thread Chris Muller
> ... snip > Being reasonable programmers and not kids wanted to plug anything anyhow > is the way to build nice system (and polymorphic objects). Yes, absolutely, but that is totally independent of whether reflective capabilities still exist in the system. Hey, maybe after #respondsTo: is remove

Re: [Pharo-dev] Killing respondsTo:

2013-05-14 Thread Chris Muller
One of the most innovative concepts Smalltalk brought as a language in the 1970's is the notion of sending messages. I don't think removing #respondsTo: will help cure bad code. For a system as capable as Pharo, to go far with it, I just don't think there's any way around the need for students to