TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Noir - The Clojure web framework

145 pointsby abpalmost 14 years ago

11 comments

vetleralmost 14 years ago
The examples uses Clojure as the language for defining the HTML. I've also seen Common Lisp examples (such as in Practical Common Lisp, <a href="http://goo.gl/CuUZQ" rel="nofollow">http://goo.gl/CuUZQ</a>) that use CL for the same purpose. In frameworks built for other languages, it is most common to have a separate template language for defining the HTML.<p>It seems much easier to use the same language when using a Lisp dialect compared to for instance Java, which would be a lot more verbose, but it is also done this way to separate logic from presentation, and because it's (supposedly) easier for front-end developers. Coming from non-CL frameworks, it was natural for me to choose a template framework for my small (and now outdated) tutorial on writing a blog in CL (<a href="http://goo.gl/YHCw" rel="nofollow">http://goo.gl/YHCw</a>).<p>However, I'm wondering if anyone has any experience developing web applications using a Lisp-dialect for generating the HTML (as Noire and the example in Practical Common Lisp), and if this is scalable to a team where front-end developers might not be used to or familiar with Lisp.<p>The syntax seems easy on the eyes, so perhaps it's not such a big problem once they get over the unfamiliarity.
评论 #2682351 未加载
评论 #2682398 未加载
评论 #2683227 未加载
评论 #2682578 未加载
rix0ralmost 14 years ago
Looks promising!<p>One question: form rendering, validation and handling are the most important as well as the most annoying things you have to do while writing a web application. Do you plan to incorporate something for that into the framework?
timclarkalmost 14 years ago
Why would I use Noir instead of compojure or ring + moustache?
评论 #2682483 未加载
评论 #2682374 未加载
elevenEalmost 14 years ago
I don't know Clojure (not sure how expressive it is), but for a framework isn't the code too less? I have seen other frameworks, but they are quite large (in terms of LOC.) Is it that they contain more functionality?
评论 #2682838 未加载
评论 #2683129 未加载
akuzialmost 14 years ago
One of the cool things about using a functional language for web development is the potential to use continuation-passing style (CPS) to make http look like a stateful protocol, which makes implementing chains of user interactions a lot simpler.<p>I know Clojure doesn't support first-class continuations, but does anyone know whether is it possible to use Clojure Noir to program in this style?
评论 #2686434 未加载
dusklightalmost 14 years ago
Hey I really liked the syntax highlighting color scheme you used in the webpage, is there an emacs theme for that?
评论 #2684499 未加载
IvarTJalmost 14 years ago
While making a simple web application in Chicken Scheme, I used SXML transformations. From the code samples, that doesn’t appear to be the convention with this web framework. Is there a good reason to use alternatives to SXML? Or is it just preferences?
MatthewPhillipsalmost 14 years ago
Very nice, I've been wanting to get into Clojure, but not having a functional background I've found it hard to jump into anything. This looks easy enough that I could transition in slowly, I think I'll give it a try.
评论 #2682897 未加载
评论 #2682678 未加载
评论 #2682691 未加载
评论 #2684789 未加载
ZeSmithalmost 14 years ago
I'm surprised that there's no large "Fork me on Github!" link at the top right corner of the screen.<p>Still, looks very interesting.
评论 #2683587 未加载
va_coderalmost 14 years ago
Here's what I don't get about Clojure fans: I don't see what problems you are solving. A simple Hello World program is made in Clojure and it gets upvoted all day. On the other hand Ruby on Rails folks are solving real problems today, making strides in integrating CoffeeScript and cleaning up javascript directories.<p>It's like someone showing off a new garbage collection library built in C. The problem's been solved. Show me something new.
评论 #2684498 未加载
评论 #2683987 未加载
评论 #2683961 未加载
iLiealmost 14 years ago
Way to go, webnoir! 502 Bad Gateway screen!<p>Level of confidence instilled in me because of this: 0% Chance I'll come back later to check it out: 0% Probability I'll go visit Enlive right now: 100%<p>Can't help but suspect you're choking on your own dog food here. Or crapping out a corn-studded loaf, take your pick.<p>Well done!