re-factor.blogspot.com
Re: Factor: Genuine Sieve of Eratosthenes
http://re-factor.blogspot.com/2015/06/genuine-sieve-of-eratosthenes.html
Factor: the language, the theory, and the practice. Monday, June 8, 2015. Genuine Sieve of Eratosthenes. Iain Gray posted on the mailing list. About a paper called the Genuine Sieve of Eratosthenes. By Melissa O'Neill, a Professor of Computer Science at Harvey Mudd College. It begins with a discussion about some clever looking Haskell code that is just trial division. And not the Sieve of Eratosthenes. As a followup to the three versions that I posted about recently. And filter the next. 2 3 5 7 } product.
re-factor.blogspot.com
Re: Factor: February 2015
http://re-factor.blogspot.com/2015_02_01_archive.html
Factor: the language, the theory, and the practice. Saturday, February 28, 2015. A couple days ago, Verizon posted a press release. Complaining about the FCC's recent changes to Internet regulations. Normally, I wouldn't really bother with things like this, but they posted their statement using morse code. While it would be easy enough to read their English version. I thought it would be fun to decode it using Factor. Step 1. Download the blog post and parse the HTML. Subscribe to: Posts (Atom). Youre sm...
re-factor.blogspot.com
Re: Factor: Text-to-PDF
http://re-factor.blogspot.com/2010/10/text-to-pdf.html
Factor: the language, the theory, and the practice. Friday, October 15, 2010. In this article, we will be building step-by-step a program for converting text files into PDF. The PDF specification is at version 1.7 (approximately 750 pages plus some supplements) and is available for download. From the Adobe website. The entire solution listed below is approximately 140 lines of code, and compares favorably to a 600 line Python version. And a 450 line C version. D 0 obj n. Creator (created with Factor).
factor-language.blogspot.com
Factor: a practical stack language: SSL/TLS support added
http://factor-language.blogspot.com/2008/05/ssltls-support-added.html
Factor: a practical stack language. S weblog, primarily about Factor. Thursday, May 22, 2008. Some time last year, Elie Chaftari. Implemented an OpenSSL binding. In Factor (and by the way, Elie, good luck with Medioset. I will start by presenting a simple client/server application that uses standard sockets, then convert it to use SSL. We will implement an application which sends the current time of day, formatted as an RFC822 string, to the user. First of all, how do we print such a string? Which means ...
re-factor.blogspot.com
Re: Factor: Automated Reasoning
http://re-factor.blogspot.com/2015/08/automated-reasoning.html
Factor: the language, the theory, and the practice. Thursday, August 6, 2015. There was a post about Automated Reasoning in F#, Scala, Haskell, C , and Julia. That uses a simple algorithm from John Harrison's book Handbook of Practical Logic and Automated Reasoning. To simplify this equation:. E = (1 (0 * x) * 3) 12. Has support for ML-style pattern matching. And I thought it would be fun to contribute a simple solution using the match. We want to define a few types of expressions:. X ] } { T{ Add f.
re-factor.blogspot.com
Re: Factor: File Monitor
http://re-factor.blogspot.com/2015/05/file-monitor.html
Factor: the language, the theory, and the practice. Tuesday, May 5, 2015. Has a cross-platform file-system change monitor. Which supports detecting changes to file names, attributes and contents under a specified directory. There is some minor platform differences. Between Mac OS X, Windows, and Linux which may be worth looking at if you are building on top of the io.monitors. Some code to monitor for changed paths recursively in a directory and print each one out:. Next-change path print flush. Source c...
re-factor.blogspot.com
Re: Factor: Sieve of Eratosthenes
http://re-factor.blogspot.com/2015/06/sieve-of-eratosthenes.html
Factor: the language, the theory, and the practice. Sunday, June 7, 2015. I noticed that the Crystal Programming Language. Homepage has an example of the Sieve of Eratosthenes. Algorithm for finding prime numbers. I thought it would be fun to show a few simple variations of that algorithm in Factor. The algorithm works by iteratively marking as not prime the multiples of each prime, starting with the multiples of 2. In pseudocode, it looks like this:. Initially all set to true. N i range [ j f. Calculati...
re-factor.blogspot.com
Re: Factor: February 2014
http://re-factor.blogspot.com/2014_02_01_archive.html
Factor: the language, the theory, and the practice. Sunday, February 9, 2014. Inet ntoa and inet aton. I was reading an article about micro optimizing int to IP address. Conversions. The author was trying to convert a 32-bit integer representation of an IP address into the more typical string representation using Common Lisp. This is basically what the standard C library functions inet ntoa. Do I thought it might be fun to implement this in Factor. And compare performance with the C versions. Takes 0....
re-factor.blogspot.com
Re: Factor: October 2014
http://re-factor.blogspot.com/2014_10_01_archive.html
Factor: the language, the theory, and the practice. Thursday, October 23, 2014. Project is a command-line tool and library for transferring data using URL syntax supporting many (many! Protocols. I recently contributed a simple wrapper for libcurl to Factor. And wanted to show a little bit about how it was made. We have a download-to. Word that uses our HTTP client to download resources from the web. I wanted to show how to build a similar word to download resources using libcurl. We will use the alien.
re-factor.blogspot.com
Re: Factor: April 2014
http://re-factor.blogspot.com/2014_04_01_archive.html
Factor: the language, the theory, and the practice. Thursday, April 24, 2014. Recently, I had a conversation with a friend in Australia who told me about the voting system used in most of their elections: instant-runoff voting. Instead of voting for a single candidate, you rank candidates in the order of preference. This ranking system is used to choose a best candidate. Count each person's most preferred candidate. The winning candidate must have more than 50% of the votes. Histogram-by sort-values ;.