-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lucid #69
Conversation
Looks go so far. I have a few small notes:
|
@cchalmers Thanks for taking a look.
For the
|
Yeah, that looks about right. |
Currently I cannot create an analogous |
Yeah, still need the |
Thanks, I'll ask him |
On a semi-related note, do you know why Chris chose to use blaze builder? I was under the impression the new bytestring-builder was faster. |
I don't know why he chose blaze, there is nothing about it in either of the two blog posts he wrote about lucid. |
At some point we should probably just write our own version of something like Lucid.Base specialized to SVG, it's easy enough. |
Thanks. I tried it and there's a modest speed increase in his benchmarks so I'll submit a PR and see what he says. |
cool |
I hadn't heard about the new bytestring-builder at the time of writing. |
Pushed to hackage as 2.7.0. |
Hm, I think I jumped the gun. Is there a way to convert from bytestring-builder to blaze-builder? E.g. Yesod expects a blaze-builder. If not this is likely to break people's code in a way with no clear migration path. |
I've reverted this bump as 2.8.0 until I can provide a clear migration path. Sorry. I'd naively assumed there would be a migration path from these two types that users could follow. See also meiersi/blaze-builder#17 |
I've bumped 2.8.1 with the Attribute constructor exported, for what it's worth. |
You can get there by using
Thanks :) |
To do before merge:
|
Seems that we'll have a migration path for Builder at some point soon: meiersi/blaze-builder#17 (comment) |
I think this is ready to merge. |
I'm happy to merge. |
Anyone else have an opinion before we merge? |
Looks good to me. |
Cool, would one of you mind doing the merge. On Wed Jan 28 2015 at 6:42:35 AM Ryan Yates [email protected]
|
Ready to Merge
This branch is a port of diagrams-svg to use lucid-svg, instead of blaze-svg.
I wrote the lucid-svg library after reading Chris Done's blog posts http://chrisdone.com/posts/lucid
and http://chrisdone.com/posts/lucid2, which do a good job of explaining why he created Lucid as
an alternative to blaze-html. Most of the advantages he discusses there, apply equally to lucid-svg.
But to summarize we get
In addition, we get complete control over lucid-svg (although, I suspect that since byorgey was the most
recent uploader of blaze-svg, we probably have pretty good control there too). and a small lightweight
framework.
The disadvantages are,
Please let me know your thoughts and if you get a chance run it through some test diagrams.
@bergey , @byorgey , @fryguybob , @cchalmers