Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Fun

< >

Fun is a programming language created in 2010 by Marcus Westin.

#1372on PLDB 14Years Old
Download source code:
git clone https://github.com/marcuswestin/fun
HomepageSource Code

A programming language for the realtime web.


Example from the web:
// Fun code let user = Session.User let myTasks = Query({ type: "task", owner: user.id }) <h1>"Hello " user.name ", these are your tasks matey:"</h1> for (task in myTasks) { <div class="task" + (task.urgent ? " urgent")> <input data=task.title /> if (task.completed) { <span class="status">"Completed!"</span> } else { <button clickHandler=markComplete(task)/>"Mark as completed"</button> } </div> } let markComplete = handler(task) { task.completed = true } <h3>"Create a new task"</h3> <input data=Local.newTaskTitle /> <button clickHandler=createNewTask /> let createNewTask = handler() { let title = Local.newTaskTitle Local.newTaskTitle = "" Global.create({ owner: user.id, type: "task", title: title }) }

- Build the next great programming language Add Issues About Search Keywords Livestreams Labs Resources Acknowledgements

Built with Scroll v154.3.0