Re: [Ur] New issue tracker

2009-11-24 Thread Vladimir Shabanov
2009/11/24 Kirill Zaborsky qri...@gmail.com: Adam, Why not to use e.g. trac which can show issues without obligatory sign-up? Also you can use it's wiki for some additional info and VCS integration and also you can publish some release plans if there will be any. I'm not that against Mantis

Re: [Ur] Exceptions handling

2010-08-29 Thread Vladimir Shabanov
2010/8/24 Adam Chlipala ad...@impredicative.com: Vladimir Shabanov wrote: And there is another way to check DML errors -- another function dml' can be adder which returns option string instead of error page, e.g.     result- dml' (...);     case result of           None =  return ok

Re: [Ur] Exceptions handling

2010-09-06 Thread Vladimir Shabanov
2010/9/5 Adam Chlipala ad...@impredicative.com: I've started implementing this.  Everything works, save that the semantics differs between Postgres and MySQL/SQLite.  Postgres won't let you continue using a transaction after one command has failed, whereas MySQL and SQLite allow many errors

Re: [Ur] Access to event object on onclick/et al

2012-05-20 Thread Vladimir Shabanov
2012/5/20 Adam Chlipala ad...@impredicative.com: I do expect this will work, but it might be nicer to add a new argument(s) to appropriate event attribute types.  Thoughts? Looking at https://developer.mozilla.org/en/DOM/DOM_event_reference I think it worth to define mouseEvent and

Re: [Ur] TechEmpower Benchmarks

2013-11-27 Thread Vladimir Shabanov
How many threads you've set to handle requests (-t option)? By default Ur/Web only runs two threads which I think is not enough. In my project I'm using -t 32. When I've benchmarked Ur/Web long time ago I've also seen a connection errors. But it was solved by upgrading frontend from nginx 0.7.x

Re: [Ur] TechEmpower Benchmarks

2013-12-12 Thread Vladimir Shabanov
2013/12/12 Adam Chlipala ad...@csail.mit.edu Interesting; so throwing at least one popular proxy in front doesn't bring magic performance improvements. That's at least comforting from the perspective of not challenging my mental model of how efficient the Ur/Web HTTP binaries are. I think

Re: [Ur] TechEmpower Benchmarks

2013-12-12 Thread Vladimir Shabanov
2013/12/13 Adam Chlipala ad...@csail.mit.edu On 12/12/2013 07:17 AM, Vladimir Shabanov wrote: 2013/12/12 Adam Chlipala ad...@csail.mit.edu Interesting; so throwing at least one popular proxy in front doesn't bring magic performance improvements. That's at least comforting from

[Ur] Ur/Web in production

2014-01-16 Thread Vladimir Shabanov
Hi, I want to share my experience with Ur/Web in BazQux Reader. BazQux Reader is an advanced RSS reader that thousands of paying customers are using everyday (https://bazqux.com). It's not an academic or school project. Yet it is written in experimental language. Why? Here's a common code

Re: [Ur] Ur/Web in production

2014-01-17 Thread Vladimir Shabanov
PM, Vladimir Shabanov wrote: Then I've switched from Postgres to Riak (needed to scale writes since RSS reader is very write heavy thing and to simplify cluster operations) and started to need more data processing and 3rd-party integration in frontend. So my Ur/Web app now links with Haskell

Re: [Ur] Ur/Web in production

2014-01-18 Thread Vladimir Shabanov
2014/1/18 Marc Weber marco-owe...@gmx.de Maybe also smarter caching could work, eg only cache or keep in memory the info which feeds got read, and try to store them efficiently in memory (eg one bit per thread) - or try to pack by storing: read 1 to 5, 10 to 20 or such. I'm doing precisely

Re: [Ur] Ur/Web in production

2014-01-18 Thread Vladimir Shabanov
2014/1/18 Sergey grr...@gmail.com Looks like I have an example of such bug. I've noticed that one test for urweb-monad-pack library doesn't execute all the client-side handlers: https://github.com/grwlf/urweb-monad-pack/blob/master/test/TestState1.ur The program should popup two alerts at

Re: [Ur] Ur/Web in production

2014-01-19 Thread Vladimir Shabanov
2014/1/19 Adam Chlipala ad...@csail.mit.edu https://github.com/grwlf/urweb-monad-pack/blob/master/test/TestState1.ur The program should popup two alerts at startup but for some reason only the last one appears. Thanks for the example! I found the bug, and now at least this example works

Re: [Ur] event propagation

2015-05-09 Thread Vladimir Shabanov
As I understand returning false is quite an old way of doing things and preventDefault / stopPropagation is what people do. So removing 'return false' is a right thing to do (event handler will just return undefined when there are no 'return' at the end). But it needs to be announced aloud since

Re: [Ur] Change breaks backward compatibility: default event propagation in GUI handlers

2015-05-13 Thread Vladimir Shabanov
Little note. 'return false' prevents default event handler (e.g., opening link when clicking on link, or selecting radio button when clicking on it) not the event propagation/bubbling. So [preventDefault] should be called instead of 'return false' not the [stopPropagation]. 2015-05-13 13:45

Re: [Ur] Blogpost

2020-04-27 Thread Vladimir Shabanov
> In case anyone is interested, I wrote a blog post some time ago about my > experiences with Ur/Web. > > http://frigoeu.github.io/urweb1.html Great post. I agree that build times for large projects is perhaps the most annoying thing in Ur/Web. They caused mostly by excessive inlining. To cut

Re: [Ur] Change grammar to swap precedence of "&&" and "||"?

2020-05-15 Thread Vladimir Shabanov
No issues. It's right thing to do. Just grepped my code and found that all "(a && b) || c" combinations are already written with parens. On Fri, May 15, 2020, at 21:47, Adam Chlipala wrote: > Way back when, in Ur/Web's grammar, I apparently gave these two > quintessential Boolean operators