101

Re: Haskell: questions

mayton wrote:

it is passed...
Esteemed. Now I know. smile  the tracer of a ray on Scala - . Too the task.
I completed it but there were bugs.

Well here case class in a rock, are analog data in
trait in a rock, is analog typeclass in

102

Re: Haskell: questions

Friends. The topic is actual.  died suddenly (and a horse-radish with it)  from a pad. But I think by Saturday there will be a fix.

103

Re: Haskell: questions

mayton wrote:

Friends. The topic is actual.  died suddenly (and a horse-radish with it)  from a pad. But I think by Saturday there will be a fix.

smile

104

Re: Haskell: questions

Up.  on the virtual keyboard. Well anything. I will understand a bit later.  waits.
It is necessary to collect will in a fist and to finish this .
The bug you was yet tired?

105

Re: Haskell: questions

mayton wrote:

the Bug you were yet tired?

Bu-hectare-hectare. I am young and full of strength.

106

Re: Haskell: questions

Jo-ho-ho. Then to pipe all hands on deck!

107

Re: Haskell: questions

mayton;
Throw this business, you hardly drive smile

108

Re: Haskell: questions

ViPRos, well . I hasten as I can.

109

Re: Haskell: questions

Added vector product and some simulation of the modular test.

{- |
This is the haskell-port of heckbert's card raytracer.
Special thanks to Paul Heckbert
See: http://tproger.ru/translations/business-card-raytracer
12-May, 2018: mayton - In beginning...
28-May, 2018: mayton - Fix for ' sum ', Add console tests.
-}
import System. IO
import Text. Printf
width = 512
height = 512
g = [0x0003C712;
0x00044814;
0x00044818;
0x0003CF94;
0x00004892;
0x00004891;
0x00038710;
0x00000010;
0x00000010]
data Vector = Vector {x:: Double,
y:: Double,
z:: Double} deriving (Show, Eq)
sprod:: Vector-> Vector-> Double
sprod v1 v2 = (x v1) * (x v2) + (y v1) * (y v2) + (z v1) * (z v2)
{- Vector sum of vector V1 and V2-}
vsum:: Vector-> Vector-> Vector
vsum v1 v2 = (Vector
((x v1) + (x v2))
((y v1) + (y v2))
((z v1) + (z v2)))
{-}
vprod:: Vector-> Vector-> Vector
vprod v1 v2 = (Vector
(((y v1) * (z v2) - (z v1) * (y v2)))
(((z v1) * (x v2) - (x v1) * (z v2)))
(((x v1) * (y v2) - (y v1) * (x v2))))
prod:: Vector-> Double-> Vector
prod v r = (Vector (r * (x v)) (r * (y v)) (r * (z v)))
{- Normalyze vector V-}
norm:: Vector-> Vector
norm v = prod v (1.0 / (sqrt (sprod v v)))
v1 = (Vector 3.0 4.0 5.0)
v2 = (Vector 4.0 5.0 6.0)
main = do
putStrLn ("v1 =" ++ (show v1))
putStrLn ("v2 =" ++ (show v2))
putStrLn ("norm (v1) =" ++ (show (norm v1)))
putStrLn ("vprod (v1, v2) =" ++ (show (vprod v1 v2)))
putStrLn ("sprod (v1, v2) =" ++ (show (sprod v1 v2)))
putStrLn ("prod (v1,2.0) =" ++ (show (prod v1 2.0)))
putStrLn ("vsum (v1, v2) =" ++ (show (vsum v1 v2)))

110

Re: Haskell: questions

So.  from phone.
Bug. While to you questions are not present.
I in the course of slow development.
Somewhere on 1 hour in the evening.
I will pass to the main algorithm and then I will set something comprehended.

111

Re: Haskell: questions

My tests look . Whether It is possible "" it?
hackage.haskell.org/package/HUnit

112

Re: Haskell: questions

Throughout a subject. I made some strangers steps not on a subject and so. For the general development.
For  editor Sublime delivered. Then installed any Cabal (probably  what
The piece for Haskel of packets) is necessary. And actually a packet
For modular tests. I suspect that steps on packet setting somewhere are not completed or still something
Does not suffice.  an educational example - on a screen. And  too. As in these Kabalah I not
And on reading a lot of time leaves - I ask to help who knows.
Bug. . Have a rest while. I here was dug in trifles. I will call you when will be real challange.

113

Re: Haskell: questions

mayton wrote:

Cabal (it is visible  what
The piece for Haskel of packets)

is necessary
And very much . I was worn out with it  in due time.
Some packets, with such dancings with a tambourine it was necessary to put...
And happened that all  broke, it was necessary to clean all caches and to reinstall it.

114

Re: Haskell: questions

Throw off to me  for cleaning .

115

Re: Haskell: questions

mayton wrote:

Throw off to me  for cleaning .

I  - was not engaged hundred years (years six). Well also cleaned pens, it was possible time.

116

Re: Haskell: questions

I then , and quickly on ef-sharpe rewrote all (:

117

Re: Haskell: questions

I so understand that it there were directories

~/.cabal
~/.cabal-sandbox

Truly?

118

Re: Haskell: questions

mayton wrote:

I so understand that it there were directories

~/.cabal
~/.cabal-sandbox

Truly?

I do not remember already.

119

Re: Haskell: questions

Well if will be familiar with  the doctrine - that call here.

120

Re: Haskell: questions

mayton wrote:

Well if will be familiar with  the doctrine - that call here.

There was one very suitable  on operation, but it as left more year.

121

Re: Haskell: questions

Me retracted in Telegram. There on a subject there are two quite good groups. Haskell. Haskell Start.
I read. But to tell the truth the format of discussion restricts me.  my judgement coincides
With Anatoly Vassermana's judgement apropos . My thought is not laid down in any way
In a format of the short message.  I - more blogger than the interlocutor in these yours
and  and other .

122

Re: Haskell: questions

Warm lamp dialogue it IRC :-Q

123

Re: Haskell: questions

I will risk to assume that in local topics  crickets.
Community, its mother so.