From eslick at media.mit.edu Tue Jul 5 04:51:38 2011 From: eslick at media.mit.edu (Ian Eslick) Date: Mon, 4 Jul 2011 21:51:38 -0700 Subject: [elephant-devel] [weblocks] SnappyVote: A Weblocks-based voting application In-Reply-To: References: Message-ID: <8065ED61-1C5B-40C4-9C87-EB66316D4C01@media.mit.edu> For the past 5 years or so I've been the lead developer on Elephant and the BDB backend. I have been and will be inactive for some time yet. I may make some updates when I do a bug / upgrade pass on the two legacy commercial websites I have that are running on weblocks + Elephant. The BDB backend hasn't been updated to the latest release, nor well-tested in probably 1.5 years. However, with a few quick tweaks, it shouldn't be hard to keep it current and fix any simple problems (e.g. the one mentioned for Mac 10.5). The downside of BDB generally is multiple-machine scalability as we don't currently have anything in place that would build on BDB's replication infrastructure to scale out. That's a fairly hairy project and the right person hasn't come along to pull it off yet. To deal with scaling, some smart folks wrote the Elephant-postmodern backend that simulates the primitive BTrees on which the elephant object API is based so it's a bit slower than BDB depending on use case. Because it is based on postmodern / postgres, you can use postgres replication to scale the Elephant API over more machines which should be enough for most applications. Direct use of the postmodern API is of course also an option and will have somewhat better performance characteristics. cl-prevalence is really nice and highly performant, but I don't like the fact that I have to encode the transaction information by hand - Elephant makes persistence really easy. Oh yes, associations are still a beta feature and along with sets, set-valued slots and cached slots have not been fully vetted yet. That's one of the big reasons we've been in a perpetual holding pattern waiting for a 1.0 release. Anyone who wants to write some tests for these features might motivate me or others to invest a day or two to fix bugs. I know one or two other people have expressed interest in ironing down the last few issues and issuing a 1.0 release of Elephant. I probably won't invest any more development time in Elephant beyond 1.0. For awhile I'd envisioned a pure lisp backend but I don't have the flex time for a project of that magnitude anymore. Moreover, with the proliferation of NoSQL technologies since Elephant was first developed, I'd be tempted to migrate to something like CouchBase, Mongo or another document DB solution that scales horizontally (usually by ignoring database-level, cross-object transactions) and has a simple API. Both of these databases are fast, scalable and would be easy to implement underneath an Elephant-like persistent-object API. They would work well behind the weblocks API also. Mongo, with explicitly managed indices, could probably support a huge chunk of the Elephant API. Associations and similar referential integrity problems might be tricky though. Cheers, Ian On Jul 2, 2011, at 4:01 PM, Anthony Fairchild wrote: > Greetings Weblocks users, > > I have been quite successful using Weblocks to build a web application and I thought I would introduce it on this list and provide some additional information about how I use Weblocks. Maybe this information will be useful to newcomers and I'd love to get some feedback :-) > > My application is called SnappyVote, http://snappyvote.com, and is meant to be a general purpose voting application. The basic idea is you build a ballot with choices and then invite your friends to vote on it. This can be useful for a variety of applications, like voting on where to go for lunch, or what is the greatest movie of all time or 'Employee of the Month'. Right now it is alpha quality but it is being used by several people already. I plan on extending it to allow additional voting types like ranked list, yes/no, to do surveys and provide web widgets that you can embed into blogs or facebook or whatever. > > Now a little bit about how I use Weblocks. I started using Weblocks when it was relatively new and used it for several small projects. I also tried other lisp web frameworks (uncommon web, plain hunchentoot) and found that Weblocks made the most sense to me. It was quite a learning curve and I did a lot of things wrong in the beginning. At times I got incredibly frustrated with it but somewhere in the process everything just clicked and I have been productive ever sense. One thing I learned fairly early on is the bundled widgets were great for quickly prototyping UI but when it comes to customizing the behavior they are fairly limited. This is *not* really a problem because building custom widgets is not that hard. So every widget in SnappyVote, except maybe forms, are all custom. > > I do not use any of the continuation-based flow stuff like do-widget except for maybe one or two places. While they do make some things cleaner, IMHO I dont think they are necessary and, at least for me, they caused more headache than what they were worth. I recommend that newcomers stay away from these things unless there is a good reason to use them. YMMV. > > I use Elephant with the BDB backend and I like it a lot. It was very easy for me to understand the basics and I like defining my data in terms of CLOS and not tables. The only thing I'd recommend is staying away from is associations as they seem to break under some conditions. If the site outgrows Elephant I will probably refactor my db code to use postmodern. > > For unit testing I use stefil, mostly for its simplicity and my familiarity working with it on other projects. I have had great success using cl-selenium with stefil for UI testing. cl-selenium is quite stable and very easy to set up. I cannot recommend this enough and I was surprised that there is no mention of it on the weblocks site or on this mailing list. In addition to unit testing, I use SBCL's sb-cover library to get code coverage for my unit tests. sb-cover has a nice form-by-form color-coded report that shows me exactly which code paths are missed in my unit tests. Again, highly recommended! > > Well, that's it. Again, feedback is welcome and I hope this is helpful to some of you. > > Thanks! > > Anthony > > > -- > You received this message because you are subscribed to the Google Groups "weblocks" group. > To post to this group, send email to weblocks at googlegroups.com. > To unsubscribe from this group, send email to weblocks+unsubscribe at googlegroups.com. > For more options, visit this group at http://groups.google.com/group/weblocks?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From member at linkedin.com Wed Jul 13 21:38:48 2011 From: member at linkedin.com (Eli Naeher via LinkedIn) Date: Wed, 13 Jul 2011 21:38:48 +0000 (UTC) Subject: [elephant-devel] Invitation to connect on LinkedIn Message-ID: <1263301076.16691344.1310593128066.JavaMail.app@ela4-bed77.prod> LinkedIn ------------ Eli Naeher requested to add you as a connection on LinkedIn: ------------------------------------------ Matthias, I'd like to add you to my professional network on LinkedIn. - Eli Accept invitation from Eli Naeher http://www.linkedin.com/e/-nvo87p-gq2tb5og-57/XJRBqECPwQJqnAancQ4FbOZYT35FEhCMWjsQygZYLySReD/blk/I1516119070_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnP0Tc3ANcjoNdj59bPdfcz1Fj31abPsRe30McP0PdjcLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Eli Naeher http://www.linkedin.com/e/-nvo87p-gq2tb5og-57/XJRBqECPwQJqnAancQ4FbOZYT35FEhCMWjsQygZYLySReD/blk/I1516119070_3/3dvc3sMej4Ndz4RckALqnpPbOYWrSlI/svi/ -- (c) 2011, LinkedIn Corporation -------------- next part -------------- An HTML attachment was scrubbed... URL: From raison at chatsubo.net Fri Jul 29 05:05:42 2011 From: raison at chatsubo.net (Kevin Raison) Date: Thu, 28 Jul 2011 22:05:42 -0700 Subject: [elephant-devel] SBCL errors Message-ID: <4E323FA6.2020000@chatsubo.net> I am getting errors with SBCL on a few tests; I am using 1.0.50 and I have patched elephant with Nikodemus' SBCL patch. Has anyone else seen these? Did 505 checks. Pass: 500 (99%) Skip: 1 ( 0%) Fail: 4 ( 0%) Failure Details: -------------------------------- SIMPLE-EXPLICIT-ASSOC-SETUP []: Unexpected Error: #" {1002E81E41}> failed AVER: NSLOTDS This is probably a bug in SBCL itself. (Alternatively, SBCL might have been corrupted by bad user code, e.g. by an undefined Lisp operation like (FMAKUNBOUND 'COMPILE), or by stray pointers from alien code or from unsafe Lisp code; or there might be a bug in the OS or hardware that SBCL is running on.) If it seems to be a bug in SBCL itself, the maintainers would like to know about it. Bug reports are welcome on the SBCL mailing lists, which you can find at ... -------------------------------- -------------------------------- CHANGE-CLASS2 []: Unexpected Error: #" {1007526CD1}> failed AVER: NSLOTDS This is probably a bug in SBCL itself. (Alternatively, SBCL might have been corrupted by bad user code, e.g. by an undefined Lisp operation like (FMAKUNBOUND 'COMPILE), or by stray pointers from alien code or from unsafe Lisp code; or there might be a bug in the OS or hardware that SBCL is running on.) If it seems to be a bug in SBCL itself, the maintainers would like to know about it. Bug reports are welcome on the SBCL mailing lists, which you can find at ... -------------------------------- -------------------------------- CHANGE-CLASS []: Unexpected Error: #" {1004DC4F11}> failed AVER: NSLOTDS This is probably a bug in SBCL itself. (Alternatively, SBCL might have been corrupted by bad user code, e.g. by an undefined Lisp operation like (FMAKUNBOUND 'COMPILE), or by stray pointers from alien code or from unsafe Lisp code; or there might be a bug in the OS or hardware that SBCL is running on.) If it seems to be a bug in SBCL itself, the maintainers would like to know about it. Bug reports are welcome on the SBCL mailing lists, which you can find at ... -------------------------------- -------------------------------- UPDATE-CLASS []: Unexpected Error: #" {1007ECCCC1}> failed AVER: NSLOTDS This is probably a bug in SBCL itself. (Alternatively, SBCL might have been corrupted by bad user code, e.g. by an undefined Lisp operation like (FMAKUNBOUND 'COMPILE), or by stray pointers from alien code or from unsafe Lisp code; or there might be a bug in the OS or hardware that SBCL is running on.) If it seems to be a bug in SBCL itself, the maintainers would like to know about it. Bug reports are welcome on the SBCL mailing lists, which you can find at ... -------------------------------- Skip Details: SIMPLE-EXPLICIT-ASSOC []: Dependencies not satisfied. NIL