Re: [Haskell-cafe] List comprehensions with Word8

2013-05-16 Thread Steve Schafer
eason >behind some of these outputs? When you say :: [Word8] what you're effectively saying is `mod` 256 because that's what fits into a slot that's 8 bits wide. So: 1000 `mod` 256 = 232 10000 `mod` 256 = 16 and so on. -Steve Schafer

Re: [Haskell-cafe] Windows: openFile gives permission denied when file in use

2011-12-28 Thread Steve Schafer
(which appears to be the way that GHC operates). >I guess on Windows, "as far as possible" means locking it across the >whole system. Windows does allow finer-grained control (including byte-range locking), but most applications don't bother. -Steve Schafer ___

Re: [Haskell-cafe] What happens if you get hit by a bus?

2011-12-16 Thread Steve Schafer
t hiring a Haskell developer instead of a Rails, etc. developer will result in more chaos when said developer is hit by a bus? -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] instance Enum Double considerednotentirelygreat?

2011-09-27 Thread Steve Schafer
On Tue, 27 Sep 2011 13:13:39 -0600, you wrote: >On Tue, 2011-09-27 at 12:36 -0400, Steve Schafer wrote: >> [0.1,0.2..0.5] isn't the problem. The problem is coming up with >> something that not only works for [0.1,0.2..0.5], but also works for >> [0.1,0.2..1234567890

Re: [Haskell-cafe] instance Enum Double considerednotentirelygreat?

2011-09-27 Thread Steve Schafer
ething that not only works for [0.1,0.2..0.5], but also works for [0.1,0.2..1234567890.5]. A good rule of thumb: For every proposal that purports to eliminate having to explicitly take into consideration the limited precision of floating-point representations, there exists a trivial example that

Re: [Haskell-cafe] bitSize

2011-08-29 Thread Steve Schafer
a big role in cryptography. But those are invariably FIXED LENGTH multiple-byte integers. As I mentioned before, to the best of my knowledge, no one uses variable-size representations in those kinds of computationally-intensive applications. -St

Re: [Haskell-cafe] bitSize

2011-08-27 Thread Steve Schafer
variable-length types (and I would think that such a PRNG wouldn't be very efficient), so I'm still not sure that I understand the question. -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] bitSize

2011-08-26 Thread Steve Schafer
if the desire is to take an integer n and generate a set of pseudorandom numbers ranging from 0 to n-1, that's easily done using the standard random number methods. -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] bitSize

2011-08-26 Thread Steve Schafer
nough so that it's unlikely that a single function (other than simply taking the logarithm) can handle the majority of applications. -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Automatic Reference Counting

2011-07-02 Thread Steve Schafer
do static analysis, there would be no need for garbage collection as it is currently implemented--the compiler would be able to insert explicit object lifetime management directly into the code. -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Encoding of Haskell source files

2011-04-04 Thread Steve Schafer
ration files, etc.). As for Haskell, I would still vote for UTF-8 only, though. The only reason to favor anything else is legacy compatibility with existing Haskell source files, and that isn't really an issue here. -Steve Schafer ___ Haskell-Caf

Re: [Haskell-cafe] Examples for the problem

2011-03-02 Thread Steve Schafer
d fail to parse that sequence. If that's not happening, then there's something wrong with the way you've expressed your grammar. I don't know how much experience you have with language grammars, but it might be helpful to try to write down MMIXAL's grammar using EBNF not

Re: [Haskell-cafe] A simple attoparsec question

2011-03-01 Thread Steve Schafer
're describing exactly how a parser is supposed to work, so it's not clear what the problem is...) -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] who's in charge?

2010-10-27 Thread Steve Schafer
On Wed, 27 Oct 2010 14:13:31 +0100, you wrote: >They're just figureheads for a shadowy cabal :-D You mean the Haskelluminati? -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: All binary strings of a given length

2010-10-15 Thread Steve Schafer
ave that limitation), you can make it work for larger numbers/longer strings: genbin n = map (showFixed n) [0..2^n-1::Integer] -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Static computation/inlining

2010-10-11 Thread Steve Schafer
-friendly file as often as you want, and the preprocessor is invoked automatically, as needed. -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Pronouncing "Curry" and "currying"

2010-10-08 Thread Steve Schafer
On Fri, 8 Oct 2010 09:56:07 +0200, you wrote: >Unfortunately, "hurry" is pronounced differently in British and US >English [1], so again I was a little bit confused :-). >[1] http://en.wiktionary.org/wiki/hurry#Pronunciation The US sample is correct for someone from California, but it's not the

Re: [Haskell-cafe] Ordering vs. Order

2010-10-07 Thread Steve Schafer
box in a certain order). On the other hand, if they possess an ordering, it implies that someone or something put them in that order; i.e., that it was a purposeful act. I think the reason for this conceptual distinction can be traced to the derivation of "ordering" as the gerund form o

Re: [Haskell-cafe] Re: I still cannot seem to get a GUI working under Windows.

2010-10-03 Thread Steve Schafer
On Sat, 2 Oct 2010 11:02:21 -0700, you wrote: >I imagine someone looking at a lovely app and saying, "Wow -- great >interface! I bet it was programmed in Haskell." While I can agree with the sentiment...well, good luck with that. ;-)

Re: [Haskell-cafe] I still cannot seem to get a GUI working under Windows.

2010-10-03 Thread Steve Schafer
t's basically what I was trying to say: The project is too big for one person, or a small group of people. But it also can't happen unless there's a shared understanding of what is important and why it is important, and that's wh

Re: [Haskell-cafe] I still cannot seem to get a GUI working under Windows.

2010-09-29 Thread Steve Schafer
go: "Hey, you know what? This GUI stuff is _important_ if we want people to pay any attention to the software that we write!" -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] I still cannot seem to get a GUI working under Windows.

2010-09-29 Thread Steve Schafer
erested in developing applications, not wrestling with GUI toolkits. -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Can we come out of a monad?

2010-08-10 Thread Steve Schafer
On Tue, 10 Aug 2010 18:27:49 -0300, you wrote: >Nope. For example, suppose we have: > > int randomNumber(int min, int max); > >Equivalentely: > > randomNumber :: Int -> Int -> IO Int > >In Haskell if we say > > (+) <$> randomNumber 10 15 <*> randomNumber 10 15 > >That's the same as > > let x

Re: [Haskell-cafe] ANNOUNCE: Haskell Platform 2010.2.0.0

2010-07-23 Thread Steve Schafer
On Fri, 23 Jul 2010 18:08:39 +0100, you wrote: >Anybody have any theroes why Trend Micro Antivirus is reporting this as >a "confirmed fraud/attack site"? Because someone somewhere has used the nyud.net distribution service to distribute malware. Since it's a free service, it's pretty much guaran

Re: [Haskell-cafe] Comments on Haskell 2010 Report

2010-07-09 Thread Steve Schafer
On Fri, 9 Jul 2010 17:14:31 +0200, you wrote: >One of the "nice" things about English is that there is often never an >"always." See http://grammar.quickanddirtytips.com/ie-eg-oh-my.aspx for a >discussion. Well, that page pretty much confirms what I said. In AMERICAN English, they're always follo

Re: [Haskell-cafe] Comments on Haskell 2010 Report

2010-07-09 Thread Steve Schafer
On Fri, 09 Jul 2010 10:07:06 -0400, you wrote: >I don't think I've ever seen them *followed* by commas. Preceded, always. In American English, they're always followed by commas, and preceded by comma, semicolon, dash or left parenthesis, depending on the specific context. Examples from various

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-16 Thread Steve Schafer
On Wed, 16 Jun 2010 18:30:47 +0200, you wrote: >Then I thought, what if I replace the (*) and (+) operations which are applied >when I multipy the matrix with a vector (i.e. a vector if inputs or outputs) >by something more general. So I replaced (+) by function application and my >matrix was n

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-15 Thread Steve Schafer
On Tue, 15 Jun 2010 19:23:35 +0200, you wrote: >When I know my supplies I want to know what I can produce. When I know what I >want to produce I want to know what supplies I need for that. Both kinds of >questions should be answered by a singe Process thingy. > >I want to be able to chain proces

Re: [Haskell-cafe] Re: US Patent for the idea ...

2010-04-18 Thread Steve Schafer
held entirely in volatile memory, and explicitly takes advantage of known characteristics of disk latency, etc., could very well be patentable. -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Hackage accounts and real names

2010-04-06 Thread Steve Schafer
On Tue, 06 Apr 2010 14:57:30 +0200, you wrote: >I agree, and this is why I phased out "apfelmus" in favor of the >pseudonym "Heinrich Apfelmus". You mean your name isn't really "Applesauce"? Steve Schafer _

Re: [Haskell-cafe] Re: Are there any female Haskellers?

2010-03-29 Thread Steve Schafer
e for discrimination against individual As or Bs, because there is nearly always substantial overlap between the categories in whatever criterion it is that you're measuring. -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http:/

Re: [Haskell-cafe] Re: Are there any female Haskellers?

2010-03-29 Thread Steve Schafer
individuals." -Steve Schafer ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-03-25 Thread Steve Schafer
greatest possible modularity, because the lower level operations don't have to worry about failures at all. You generally only care about atomicity at some outer, "observable" level; there is rarely any point in worrying about "nested atomicity." Steve Schafer ___

[Haskell-cafe] Very imperfect hash function

2010-01-28 Thread Steve Schafer
he knowledge about the internal redundancy of the keys to come up with an efficient function? Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Language simplicity

2010-01-14 Thread Steve Schafer
(syntax-rules () ((when test stmt1 stmt2 ...) (if test (begin stmt1 stmt2 ...)) (let ((if #t)) (when if (set! if 'now)) if)) Evaluating the above returns "

Re: [Haskell-cafe] Re: Allowing hyphens in identifiers

2009-12-18 Thread Steve Schafer
case. And in the latter example, my eyes would actually be drawn away from Preset/Present and towards Colour, noticing that it is spelled incorrectly... Count me in the "prefers hyphens" camp, by the way. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ _

[Haskell-cafe] Haskell furniture?

2009-05-25 Thread Steve Schafer
Here is some furniture that ought to appeal to the Haskell afficionado: http://karl-andersson.se/view_product.asp?rangeId=39&catId=2&picture=2 Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Sugestion for a Haskell mascot

2009-03-10 Thread Steve Schafer
xtile printing (if that is >the right term in english) on plush sloth bears. A sloth bear is a kind of bear, not a sloth. Amazon also has some sloth stuffed animals, too. If you get one that's reasonably large, then you can get a lambda-imprinted Cafe Press t-shirt in an infant size that wo

Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-16 Thread Steve Schafer
ain, do engineers know *what* stress is? Do they understand terms >like `tensor'? Those things are the rough equivalents of terms like >`monoid'. Stress, probably, at least in basic terms. Tensor, probably not. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com

Re: Names in Haskell (Was: [Haskell-cafe] Comments from OCaml HackerBr ian Hurt)

2009-01-15 Thread Steve Schafer
u on an interminable Alice-in-Wonderland-esque journey that never seems to get anywhere. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-15 Thread Steve Schafer
and far between. If you aim your product only at the kinds of engineers who _can_ do those things, you will be reaching a tiny, tiny fraction of the overall population. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe m

Re: [Haskell-cafe] Re: Computer time, independent of date

2009-01-10 Thread Steve Schafer
you should certainly care about that magnitude of error. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Computer time, independent of date

2009-01-09 Thread Steve Schafer
On Fri, 09 Jan 2009 09:28:49 -0600, you wrote: >I'm not sure that the original question implied *that* level of need. I can't imagine being worried about leap seconds yet at the same time being willing to accept the potential vagaries of any of the built-in clocks. Steve Sch

Re: [Haskell-cafe] Re: Computer time, independent of date

2009-01-09 Thread Steve Schafer
roach that I can think of is if the hospital is in an urban area with lots of tall buildings, it might be difficult to obtain a GPS signal of high enough quality. Some of the purpose-built GPS time receivers have better antennas than a consumer-grade GPS device. Steve Schaf

Re: [Haskell-cafe] Interesting new user perspective

2008-10-10 Thread Steve Schafer
gram, one that has some of the "look and feel" of what programmers from other languages are comfortable with. And then transform that program, step-by-step, into something that takes advantage of Haskell's strengths. Steve Schafer Fenestra Technolog

Re: [Haskell-cafe] An interesting curiosity

2008-09-18 Thread Steve Schafer
he identity function, in fact) that also has a side effect. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Windows details

2008-09-11 Thread Steve Schafer
and which one of these is what you see reported in the Properties dialog, but it's quite possible that you're setting the value of the "wrong" one, and that's why you're not seeing what you expect. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/

Re: [Haskell-cafe] Windows details

2008-09-09 Thread Steve Schafer
or example, in an application I wrote recently, I used custom resources to embed a set of TrueType fonts into the EXE.) There are a gazillion resource editors available for modifying the resources linked into an EXE; go to the Wikipedia page for a reasonable starting point: http://en.wikipedia.org/wiki

Re: [Haskell-cafe] Linker problems linking FFI import call in Windo ws

2008-07-16 Thread Steve Schafer
n at the end. Not sure what that is all about. This is known as name mangling. See the Wikipedia article for more info: http://en.wikipedia.org/wiki/Name_mangling Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mai

Re: [Haskell-cafe] approximating pi

2008-04-30 Thread Steve Schafer
algorithm points will necessarily map to the same screen pixel. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Type-level arithmetic

2007-10-12 Thread Steve Schafer
;natural" way. To which my rejoinder is, "To what end?" To extend the _syntax_ of the type system in a way that allows such "natural" expression turns it into yet another programming language. So what have we gained? Steve Schafer

Re: [Haskell-cafe] Re: Type-level arithmetic

2007-10-12 Thread Steve Schafer
posed the question of using the type system to solve one of the liar/truthteller logic problems. And so on. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskel

Re: [Haskell-cafe] Re: Type-level arithmetic

2007-10-12 Thread Steve Schafer
that was the original point of this discussion. After all, Andrew's original message mentioned "stuff the type system was never designed to do." Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Re: Type-level arithmetic

2007-10-12 Thread Steve Schafer
x -> List (n+m) x > >and so forth. How, then, is that any different from a general-purpose programming language? You're just drawing the "line in the sand" in a different place. You end up with a programming system where compilation is a "side effect" of exec

Re: [Haskell-cafe] Filesystem questions

2007-10-12 Thread Steve Schafer
ee the same thing if you use the DIR command from a command-line prompt. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Geometry

2007-08-27 Thread Steve Schafer
On Mon, 27 Aug 2007 19:05:06 +0200, you wrote: >Where do I go wrong (I)? b is defined to be _half_ of the chord (the "semichord," I suppose). You're assuming it to be the entire chord. Steve Schafer Fenestra Technologies Corp. http:

Re: [Haskell-cafe] Geometry

2007-08-26 Thread Steve Schafer
On Sun, 26 Aug 2007 21:30:30 -0400, you wrote: >I don't know offhand if there's a straightforward way to arrive at this >result without using trigonometry. Duh. Of course there is.... Steve Schafer Fenestra Technologies Corp. http://

Re: [Haskell-cafe] Geometry

2007-08-26 Thread Steve Schafer
of the angle between the two radii as drawn in the picture. Then: x = a * (1 - cos @) Using the trigonometric identity sin^2 @ + cos^2 @ = 1 and rearranging, we get: x = a - sqrt(a^2 - b^2) I don't know offhand if there's a straightforward way to arrive at this result without using trig

Re: [Haskell-cafe] monte carlo trouble

2007-08-15 Thread Steve Schafer
On Thu, 16 Aug 2007 00:05:14 +0200, you wrote: >I'm not sure what you mean by "with replacement" "With replacement" means that you select a value from the source, but you don't actually remove it. That way, it's still available to be selected again later

Re: [Haskell-cafe] Problem with question 3 about knights and knaves onw ikipedia

2007-08-09 Thread Steve Schafer
ut you forgot to recursively apply the hint. ;) The problem states that after John answers the second question, the Logician knows the solution. How can this be? What answer did John give that allows the Logician to solve the problem? Steve Schafer Fenestra Technologies Corp. http://www.fenestr

Re: [Haskell-cafe] Problem with question 3 about knights and knaves onw ikipedia

2007-08-09 Thread Steve Schafer
t","Yes","Yes") >("John is a knave ","Bill is a knave ","Yes","No ") > >Anyone has an idea what I missed here? You're missing a key element of the problem: After John answers the first question, the Logic

Re: [Haskell-cafe] Indentation woes

2007-07-27 Thread Steve Schafer
one that is inherently more complex and thus more likely to cause angst among beginners. Or are you proposing to get rid of layout altogether and rely on punctuation? I just can't think of a rule that would be easier to understand (and quicker to assimilate) than the current one. Steve

Re: [Haskell-cafe] Producing MinimumValue

2007-07-19 Thread Steve Schafer
On Thu, 19 Jul 2007 12:30:06 -0700 (PDT), you wrote: >I have defined the first line it seems right to me Close, but not quite. Think of the result that line would give on [1,1,2]. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.

Re: [Haskell-cafe] Producing MinimumValue

2007-07-19 Thread Steve Schafer
On Thu, 19 Jul 2007 19:26:39 +0100, you wrote: >Actually, since Haskell is lazy and only the first element is required >for minimumValue, the above algorithm should be O(n). You're right (as long as the sort algorithm itself is sufficiently lazy, of course). Steve Schafer Fenestra T

Re: [Haskell-cafe] Producing MinimumValue

2007-07-19 Thread Steve Schafer
On Thu, 19 Jul 2007 10:55:19 -0700 (PDT), you wrote: >The question suggests to use some functions defined in the section, and one >of them is iSort. Aha. Well, that one certainly lends itself better to this particular proplen than either map or filter. >minimumValue :: [Int] -> Int >minimumValue

Re: [Haskell-cafe] Re: Frustrating experience of a wannabe contributor

2007-07-18 Thread Steve Schafer
and it didn't work," the welcoming response is NOT, "Oh, don't do that; do this other [less intuitive] thing instead." The welcoming response is to fix the damn thing so that the intuitive approach works! Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ _

Re: Re[4]: [Haskell-cafe] In-place modification

2007-07-15 Thread Steve Schafer
) Haskell is about improving software quality. A meaningful benchmark would be one that compares end-to-end software development lifecycles, including not only runtime performance, but also development costs, debugging and maintenance time, reliability, etc. Steve Schafer Fenestra Technologi

Re: [Haskell-cafe] Haskell & monads for newbies

2007-07-14 Thread Steve Schafer
ir worries. Programming GUIs is about the only reasonably common I/O-related task that has any sort of complexity. Most everything else is reading or writing streams of bytes; the hard part is what happens between the reading and the writing. Steve Schafer Fenestra Technologies Corp.

Re: [Haskell-cafe] Very freaky

2007-07-12 Thread Steve Schafer
mbers of themselves. Look up "Russell's Paradox" in Wikipedia. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Type system madness

2007-07-12 Thread Steve Schafer
il the first non-ASCII character was encountered. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] function unique

2007-07-11 Thread Steve Schafer
nd you can't remember which Int does what, then you have only yourself to blame Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] function unique

2007-07-11 Thread Steve Schafer
ments for Haskell, but I don't think any of them are particularly popular. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Type system madness

2007-07-11 Thread Steve Schafer
or doesn't properly understand UTF-8. A BOM character isn't required for UTF-8 (it really only makes sense with UTF-16), but a UTF-8-aware processor should skip right over it if it's there. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ __

Re: [Haskell-cafe] What puts False before True?

2007-05-31 Thread Steve Schafer
y best to go along with whatever de facto standard there is, if for no other reason than to avoid going insane. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What puts False before True?

2007-05-31 Thread Steve Schafer
since 1 > 0, TRUE > FALSE. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] A wish for relaxed layout syntax

2007-03-28 Thread Steve Schafer
ists look like this: mylist = [[ item_1_1, item_1_2], [ item_2_1, item_2_2]] Another alternative: mylist = [ quite_lengthy_list_item_number_one , quite_lengthy_list_item_number_two , quite_lengthy_list_item_number_three ] which looks very weird but makes sense, in a twiste

Re: [Haskell-cafe] Usage of . and $

2007-03-07 Thread Steve Schafer
d to read code containing $'s is simpler than that required for parentheses. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Trouble with record syntax and classes

2007-02-26 Thread Steve Schafer
old iSine) > > act :: Integer -> ISine -> [[Char]] > act time (ISine p o t (MetaTail s)) = > if on time (ISine p o t (MetaTail s)) > then foldr1 (++) (map (act time) (sub_sines (ISine p o t (MetaTail s > else [] > > act tim

Re: [Haskell-cafe] A "real" Haskell Cookbook

2007-02-23 Thread Steve Schafer
t >offering your assistance? Neither, just curious. While I can see how some characters might cause problems, I couldn't understand why non-breaking spaces would. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe

Re: [Haskell-cafe] A "real" Haskell Cookbook

2007-02-23 Thread Steve Schafer
Which is why I asked specifically about that. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] A "real" Haskell Cookbook

2007-02-23 Thread Steve Schafer
to avoid special characters, but out of curiosity, what exactly is the problem with screen readers and the NO BREAK SPACE character (which is pretty ubiquitous in HTML)? Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mail

Re: [Haskell-cafe] Channel9 Interview: Software Composability and t heFu ture of Languages

2007-01-27 Thread Steve Schafer
strong that I'm far from alone in my assessment. Whether or not it's hard for any particular person is up to that individual to judge, of course. I stick with Haskell because (a) I think it just might be worth it, and (b) I can't help myself--I have an insatiable craving for new know

Re: [Haskell-cafe] Re: Channel9 Interview: Software Composability andth eFu ture of Languages

2007-01-27 Thread Steve Schafer
ftware is hard, regardless of the choice of language. Perhaps what sets Haskell apart is that, unlike most languages, it also makes writing _bad_ software hard. ;) Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailin

Re: [Haskell-cafe] Channel9 Interview: Software Composability and theFu ture of Languages

2007-01-26 Thread Steve Schafer
ng better (they just aren't sure what it is). The rest aren't really interested, and if at some future point they become interested, they'll find the way on their own. Steve Schafer Fenestra Technologies Corp. http:/www.fenestra.com/ __

Re: [Haskell-cafe] Re: Seeking advice on a style question

2007-01-04 Thread Steve Schafer
o the references cannot refer to page >numbers, yet must be processed after transforming questions to rectangles? It's not until you get to the "rectangles" level that you can see the text and tokens that need to be replaced. Thanks for all of the discussion. I think I have a lot to ponder Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Seeking advice on a style question

2006-12-30 Thread Steve Schafer
that needs to be propagated into a "long-lived" structure like the pagemaster. >>> pages' = combineRows pages; >>> sfo = createSFO pages' sequenceLayouts; >>> in sfo >(can't guess on that) SFO is the final XML-format

Re: [Haskell-cafe] Seeking advice on a style question

2006-12-30 Thread Steve Schafer
exactly the same kinds of problems that the textual Haskell has.... Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Re[2]: [Haskell-cafe] Re: Seeking advice on a style question

2006-12-29 Thread Steve Schafer
On Fri, 29 Dec 2006 14:23:20 +0300, you wrote: >it force you to give names to intermediate results which is considered as >good programing style - program becomes more documented. But that would imply that function composition and in-line function definition are also Bad Style. Steve S

Re: [Haskell-cafe] Re: Seeking advice on a style question

2006-12-29 Thread Steve Schafer
On Fri, 29 Dec 2006 09:01:37 -0800, you wrote: >Steve Schafer wrote: >> >> I can easily rewrite it in point-free style: >> >> process1 = baz . bar . foo > >Not unless you have a much fancier version of function composition, >like... > >http:

Re: [Haskell-cafe] Re: Seeking advice on a style question

2006-12-28 Thread Steve Schafer
way to do it, that would be even better, but I've never seen such a thing (short of doing lots of tupling and un-tupling). Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Seeking advice on a style question

2006-12-28 Thread Steve Schafer
d -> Language -> [NumberedQuestion] -> > ([Band],[SequenceLayout]) > resolveCrossReferences :: [Band] -> [Band] > groupBands :: [Band] -> [[Band]] > paginate :: Item -> MediaKind -> MediaSize -> Pagemaster -> [[Band]] -> [Page] &

Re: [Haskell-cafe] Seeking advice on a style question

2006-12-26 Thread Steve Schafer
hough it does still require at least one temporary variable. I'll have to think about it a bit to see how applicable it is in general. Thanks. The tuples do make things a bit messy; they could easily be removed at the cost of introducing a few more steps: (y07,y08) = f07 y01 y06;

Re: [Haskell-cafe] Seeking advice on a style question

2006-12-26 Thread Steve Schafer
he picture isn't cluttered with intermediate values whose only purpose is to hold onto things I need later, but not right now. So here's the (restated) question: Is there some way to represent the process in good ol' text form that preserves the elegance and conciseness of

Re: [Haskell-cafe] Seeking advice on a style question

2006-12-26 Thread Steve Schafer
7;s very true, but the same could be said for many other examples of the use of the State monad (and Reader and Writer as well). They frequently don't do anything that couldn't be done purely functionally. Steve Schafer Fenestra Techn

Re: [Haskell-cafe] Seeking advice on a style question

2006-12-24 Thread Steve Schafer
cember/018917.html Thanks. I should have realized that Oleg would have had something to say about it. ;) Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailma

[Haskell-cafe] Seeking advice on a style question

2006-12-24 Thread Steve Schafer
g to explicitly pass all of the various bits of state around? The (unattainable?) ideal would be something that looks like this: process = f14 . f13 . ... . f01 or process = f01 >>= f02 >>= ... >>= f14 Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com

Re : [Haskell-cafe] A suggestion for the next high profileHaske ll project

2006-12-19 Thread Steve Schafer
eases equational reasoning? The classic example of this is a problem that has a finite solution, but whose solution is most clearly expressed in terms of operations on infinite structures. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ _

Re: [Haskell-cafe] Picking out elements of a heterogenous list

2006-12-05 Thread Steve Schafer
To: "Creighton Hogg" <[EMAIL PROTECTED]> Subject: Re: [Haskell-cafe] Picking out elements of a heterogenous list From: Steve Schafer <[EMAIL PROTECTED]> Date: Tue, 05 Dec 2006 12:33:16 -0500 On Tue, 5 Dec 2006 11:08:07 -0600, you wrote: >Hi Haskell-ers, >So I th

Re: [Haskell-cafe] Collection of objects?

2006-11-17 Thread Steve Schafer
| Float Float deriving Show Finally, constructing new instances of this homogenous wrapper in Haskesll is just like it is in Java: myList = [(Integer 42), (Character 'a'), (Float 3.14159)] vs. myList = new LinkedList(); myList.add(new Integer(42)); myList.add(new Character(&#

Re: [Haskell-cafe] Decorating a list of strings

2006-11-02 Thread Steve Schafer
No, you missed a part of the second rule: If there are multiple occurrences of a string, the _first_ occurrence has to be tagged, too, not just the second through n'th occurrences. The result of the above would have to be: ["Alice","Bob:1","Cindy:1","Bob:2","Bob:3","Dave","Cindy:2","Tim:1","Tim:2","Tim:3",...] Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

  1   2   >