archive-org.com » ORG » I » IRREAL.ORG

Total: 496

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Emacs pcase | Irreal
    our Emacs maintainer John Wiegley has published an excellent tutorial on its use The tutorial doesn t address how to leverage pattern matching in your programming but it does cover the use of pcase It s a powerful idea and can often be useful Take a look at Wiegley s tutorial to get started This entry was posted in Programming and tagged Emacs Bookmark the permalink Inserting an Org Date Quickly Blogging with Org Mode Only Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key on Any USB Keyboard Kris on An Example of Why Reproducible Research Matters Links Useful Emacs Commands Archives April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July

    Original URL path: http://irreal.org/blog/?p=4938 (2016-04-25)
    Open archived version from archive


  • Is Object Oriented Programming Bad? | Irreal
    by encapsulating the state in objects and accessing it only through messages to the objects In other words what would otherwise be global variables are hidden away in objects and managed through the call graph The problem is that when you take this idea seriously you end up not with a graph of objects but with a strict hierarchy of objects That would be okay but when you have a non trivial amount of state it turns out to be impractical keep state manipulation in the same hierarchy so programmers end up passing around references to the state obviating the point of encapsulating it in objects Controlling state is the right end Will says but object oriented programming is the wrong solution The right answer he says is to minimize state by using functional programming techniques The foregoing is just a précis of Will s argument which is a bit more nuanced so you should definitely watch the video it s about 45 minutes or at least read the blog post if you have any interest in the subject matter When you do you ll discover that Will doesn t dismiss every aspect of OO and that objects can be useful in some circumstances As I said you should watch the video This entry was posted in Programming Bookmark the permalink A Sad Security Prediction HUH smitty My opinion is that data logic and presentation make up a three dimensional space for an application OO would seem to be a fusion of data and logic The motive for doing this is to make it easier for human minds to reason about applications I don t know that there is a final answer but I feel that the more orthogonal these three dimensions are the more gooder the result Search for

    Original URL path: http://irreal.org/blog/?p=4907 (2016-04-25)
    Open archived version from archive

  • New save-excursion Semantics | Irreal
    points out programmers mostly didn t depend on save excursion saving the mark anyway so this won t be a huge issue for most code Just be aware that if you depend on the mark being the same after your protected code runs you should use save mark and excursion rather than save excursion Footnotes 1 I really need to figure out the C macros that Emacs uses so that I can read the C code better This entry was posted in Programming and tagged Emacs Bookmark the permalink Turn Off Adblock Get Served Malware Search for Symbol at Point Skywalker Well it was discussed on the mailing list http comments gmane org gmane emacs devel 183413 Make sure you have some time it s one of those apparently innocuous questions which sparked months of discussion the above link only lists comments whose subject were not changed it definitely misses a bunch But as for why they chose to implement save mark and excursion I believe it s simply so that users depending on the old behavior would have an easy fix jcs Thanks for the pointer I mostly agree with Magnar the problem with save excursion seems mostly theoretical or at least restricted to a few special cases Breaking a long standing API for what amounts to aesthetic reasons seems unwise to me Especially when adding a function such as save point and adding a warning in the save excursion documentation addresses the problem without potentially breaking tons of invisible code Kaushal Modi So far of all the packages I use save mark and excursion was needed only in the expand region and drag stuff packages I did not need to use that anywhere in my config the new definition of save excursion worked just fine without the mark

    Original URL path: http://irreal.org/blog/?p=4895 (2016-04-25)
    Open archived version from archive

  • Eight Sorts Animated | Irreal
    animations run at once so that you can see how they compare It s also possible to run a single algorithm or even a single algorithm with a given initial condition If you want to see how the algorithms compare or just be entertained this is a great page to visit Just run the full animation once and you ll be hooked One thing for sure you ll never run a selection sort again Definitely worth a look This entry was posted in Programming Bookmark the permalink Channeling George Orwell Learn From Your Tools Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key on Any USB Keyboard Kris on An Example of Why Reproducible Research Matters Links Useful Emacs Commands Archives April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April

    Original URL path: http://irreal.org/blog/?p=4849 (2016-04-25)
    Open archived version from archive

  • Functional Programming | Irreal
    says about map and reduce or anonymous functions although functional languages generally support these but about recognizing and controlling side effects This is more subtle than you might suppose but Jenkins does a good job of explaining what it means and why it s important All programmers should read this whether or not they re interested in functional programming Part Two looks at several programming languages and asks to what extent they could be considered functional These range from Java the anti functional language to Haskell a functional language on steroids He also considers JavaScript Scala Clojure Perl and Python Of course it s possible to write in a functional manner in almost any language but some like Java actively discourage it If you re a working programmer you should definitely take a look at these two posts Jenkins raises issues that you should consider regardless of the language you re writing in or the paradigm you re using This entry was posted in Programming and tagged Emacs Lisp Bookmark the permalink Integrating iCal and Org Mode I Have Nothing to Hide is the Wrong Way to Thing about Surveillance Grant Rettke My buddy and I used thunks in our last Java project using anonymous inner classes If that ain t functional Grant Rettke Every programmer must also read http cs brown edu sk Publications Papers Published sk teach pl post linnaean at their 10 year mark Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key

    Original URL path: http://irreal.org/blog/?p=4837 (2016-04-25)
    Open archived version from archive

  • Lisp | Irreal
    in General Tagged Common lisp Lisp Leave a comment Eazy Gnuplot Cookbook Posted on January 9 2016 by jcs Via Jean Philippe Paradis I found this gnuplot cookbook companion for eazy gnuplot I really like gnuplot and its ability to produce a large variety of excellent plots Unfortunately I don t use it often enough to internalize its documentation and it s always Continue reading Posted in General Tagged Common lisp Lisp Leave a comment Functional Programming Posted on January 1 2016 by jcs A couple of years ago I wrote about Kris Jenkins wonderful video that demonstrated interactive programming while building a Spotify client in Emacs Lisp It s one of my favorite videos and I m still seeing it mentioned as new people discover Continue reading Posted in Programming Tagged Emacs Lisp 2 Comments Operator Precedence Posted on December 30 2015 by jcs This seems funny until you realize that it s true Operator precedence is a workaround for the problem of having forgotten to make your programming language a lisp Gary Fredericks gfredericks October 7 2015 Posted in General Tagged Lisp 2 Comments SBCL 1 3 1 Released Posted on December 1 2015 by jcs The latest release of Steel Bank Common Lisp version 1 3 1 was released on November 27 This month s release contains 7 enhancements including SB THREAD for ARM64 and a bunch of bug fixes See the NEWS page for details As usual I Continue reading Posted in General Tagged Common lisp Lisp Leave a comment SBCL 1 3 0 Posted on November 1 2015 by jcs The latest version of Steel Bank Common Lisp version 1 3 0 is out This version fixes a few bugs includes a port to Linux on ARM64 and includes a new optional interpreter See the

    Original URL path: http://irreal.org/blog/?tag=lisp (2016-04-25)
    Open archived version from archive

  • John Wiegley on Haskell | Irreal
    works primarily in Haskell There s a wonderful video of Wiegley discussing the benefits of Haskell and his experience with it He says that the big strength of Haskell is that it s hard to write incorrect code that compiles If you can get the compiler to accept your code then it will likely work as intended Haskell isn t a silver bullet of course but according to Wiegley it does make it easier to write good code The video is 26 and a half minutes long but worth watching especially if you re considering trying out the language After watching the video I m considering trying it out myself There are a number of open source compilers available The Glascow Haskell Compiler appears to be the favorite but there are others This entry was posted in Programming and tagged Haskell Bookmark the permalink PDF Tools for Emacs Moving Through Edits Franklin Chen GHC is really the only full fledged open source compiler I ve been using it happily since 1994 I recommend using Stack https github com commercialhaskell stack as an all in one environment for creating skeleton projects installing packages running the interpreter running the native compiler Also I use haskell mode and ghc mod and flycheck haskell for Emacs Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key on Any USB Keyboard Kris on An Example of Why Reproducible Research Matters Links Useful Emacs Commands Archives April 2016 March 2016 February 2016 January

    Original URL path: http://irreal.org/blog/?p=4729 (2016-04-25)
    Open archived version from archive

  • Haskell | Irreal
    knows by now that John Wiegley has taken over as the Emacs maintainer Everyone appears united in their belief that this is a good thing and that Wiegley will be a great maintainer As you d expect Continue reading Posted in Programming Tagged Haskell 1 Comment Search for Recent Posts Elisp Summary Emacs for Prose FISA Abandons the Fourth Amendment Again Blogging with Org Mode and Nikola How to Keep Emacs Running Across an X Crash Recent Comments Mike Zamansky on Blogging with Org Mode and Nikola Phil on How to Keep Emacs Running Across an X Crash Sebastian Christ on European Quotation Marks NoonianAtall on A Hyper Key on Any USB Keyboard Kris on An Example of Why Reproducible Research Matters Links Useful Emacs Commands Archives April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October 2013 September 2013 August 2013 July 2013 June 2013 May 2013 April

    Original URL path: http://irreal.org/blog/?tag=haskell (2016-04-25)
    Open archived version from archive



  •