{"id":6743,"date":"2012-12-26T17:57:00","date_gmt":"2012-12-26T22:57:00","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6743"},"modified":"2012-12-26T17:57:03","modified_gmt":"2012-12-26T22:57:03","slug":"incremental-regular-expressions","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/12\/26\/incremental-regular-expressions\/","title":{"rendered":"Incremental Regular Expressions"},"content":{"rendered":"<p><a href=\"http:\/\/jkff.info\/articles\/ire\/\">Eugene Kirpichov<\/a> (via <a href=\"http:\/\/news.ycombinator.com\/item?id=4964496\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"http:\/\/jkff.info\/articles\/ire\/\"><p>In this article we further develop Piponi&rsquo;s approach, which employs a number of beautiful algorithmic techniques from the world of functional programming, to build a Java library for incremental regular expression matching. This is also an interesting investigation into how the functional approach blends together with an imperative language.<\/p>\n<p>[&#8230;]<\/p>\n<p>&ldquo;Incremental&rdquo; means &ldquo;match result is efficiently maintained under certain operations&rdquo;, where the operations include concatenating two strings and splitting a string in part around an index. Obviously, these two operations form a basis for all kinds of rearrangements, such as inserting or deleting a word from the middle of a string, or appending characters to its back or front, etc.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Eugene Kirpichov (via Hacker News): In this article we further develop Piponi&rsquo;s approach, which employs a number of beautiful algorithmic techniques from the world of functional programming, to build a Java library for incremental regular expression matching. This is also an interesting investigation into how the functional approach blends together with an imperative language. [&#8230;] [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[84,74,71,234],"class_list":["post-6743","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-java","tag-opensource","tag-programming","tag-regex"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6743"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6743\/revisions"}],"predecessor-version":[{"id":6744,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6743\/revisions\/6744"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}