Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 01 09:43
    dmvianna added as member
  • Jun 15 04:55

    ocramz on gh-pages

    Add pcg-random (compare)

  • Jun 14 16:08
    ocramz labeled #42
  • Jun 14 16:08
    ocramz labeled #42
  • Jun 14 16:08
    ocramz labeled #42
  • Jun 14 16:08
    ocramz labeled #42
  • Jun 14 16:08
    ocramz labeled #42
  • Jun 14 16:08
    ocramz labeled #42
  • Jun 14 16:08
    ocramz opened #42
  • Jun 14 16:08
    ocramz opened #42
  • Jun 06 18:21

    ocramz on gh-pages

    Fix graphite link Merge pull request #41 from alx… (compare)

  • Jun 06 18:21
    ocramz closed #41
  • Jun 06 18:21
    ocramz closed #41
  • Jun 06 17:32
    alx741 opened #41
  • Jun 06 17:32
    alx741 opened #41
  • Jun 06 16:46

    ocramz on gh-pages

    Add graphite Merge pull request #40 from alx… (compare)

  • Jun 06 16:46
    ocramz closed #40
  • Jun 06 16:46
    ocramz closed #40
  • Jun 06 14:43
    alx741 opened #40
  • Jun 06 14:43
    alx741 opened #40
Adam Conner-Sax
@adamConnerSax
@ocramz Spoke too soon! But it’s working now. CHOLMOD can be…subtle. Anyway, I think I’d like to write a cholmod-sla library, just an interface to CHOMOD using SLA matrix types for input and output. I think I’ll also dis-intermediate hcholmod since it’s not on hackage and I’ve had to add a bunch of FFI stuff anyway. I might as well do all of it and then it won’t rely on a non-hackage project. Not quite sure when I’ll get to splitting it all off and re-doing the hcholmod bits, but sometime in September is likely.
I see you have a permutation matrix constructor and a swap rows function. But I don’t see
permuteRowsSM :: [IxRow] -> SpMatrix a -> SpMatrix a
permuteColsSM :: [IxCol] -> SpMatrix a -> SpMatrix a
permuteSV :: [IxRow] -> SpVector a -> SpVector a
which I think will be useful. Once I get to doing all this right, should I put those in cholmod-sla or submit a PR to SLA?
thirteenturtles
@shubhamkumar13
How do I use Analyze Error while parsing $.dependencies[1] - invalid dependency "analyze-0.1.0.0"
While stack build
I installed it using stack build
then created another file and imported it, showed me an error which stated that I need to add it to package.yaml
even after adding it we get the above error
Alexey Kuleshevich
@lehins

It probably tells you to add it to stack.yaml, not package.yaml:

that I need to add it to package.yaml

thirteenturtles
@shubhamkumar13
I added it to stack.yaml, in extra deps
3bou Oo
@3bouO_twitter
Hi
thirteenturtles
@shubhamkumar13
it still didn't change
Alexey Kuleshevich
@lehins

The error seems to be coming from hpack, which makes sense, since that is an invalid syntax for dependencies. It should be analyze == 0.1.0.0, or simply analyze, but for stack.yamlyou are expected to pin the exact version, so that would be correct: analyze-0.1.0.0

Error while parsing $.dependencies[1] - invalid dependency "analyze-0.1.0.0"

thirteenturtles
@shubhamkumar13
Ok I'm gonna check out your solution, but doesn't stack build analyze do that for us? I'm sorry for asking trivial questions but I'm pretty new to this. Thanks for replying btw
Alexey Kuleshevich
@lehins

Nope, it does not :) stack build analyze will only build analyze in the project work directory, but it will not affect anything. For your project you still need to list it as a dependency if you want to use it.

but doesn't stack build analyze do that for us?

Marco Zocca
@ocramz
@shubhamkumar13 to expand on that: if you're a package developer, and are working in the project (say, analyze) directory, you'd run stack build to check your work. If you are a package user, and you only want to import a library into your project (provided the library is on Hackage already), you'd first add it in the build-depends section of the .cabal file
(btw hi @lehins , good to have you here! :thumbsup: )
Alexey Kuleshevich
@lehins
@ocramz Glad to be here ;)
Magalame
@Magalame
🎉🎉
thirteenturtles
@shubhamkumar13
Thanks @ocramz, I'll try that.
Marco Zocca
@ocramz
btw @/all I've set up a GitLab clone of the github organization : https://gitlab.com/datahaskell . I'd like to have it as an alternative git remote
thirteenturtles
@shubhamkumar13
I got through it, now I can use analyze
Arvind Devarajan
@arvindd
@ocramz, is Gitlab and Github now going to be automatically in a two-way? So any commits to master in either of them is going to be reflected in the other automatically (presumably in, say a short time)? Or Gitlab is just a read-only mirror of Github, and Github still remains the main development system?
*two-way sync...?
Marco Zocca
@ocramz
@arvindd all good questions! I think one has to configure their git client for this
but I haven't tried so myself. I only know it is possible to have multiple git remotes
Magalame
@Magalame
@shubhamkumar13 happy to hear that, don't hesitate if you run into any other trouble
thirteenturtles
@shubhamkumar13
Yup thanks!
thirteenturtles
@shubhamkumar13
https://www.cl.cam.ac.uk/~nk480/numlin.pdf
This paper seems cool is something like this possible in haskell?
Stefan Dresselhaus
@Drezil
@ocramz you have to either do it manually or probably with a git post-hook. you can add many remotes with "git remote add ....", but each branch is configured to follow one remote by default (i.e. if you do "git push"). If you want to push to everything you would have to "git push origin master" "git push otherRemote master" "...."
It could be possible to automate that with git-hooks (either on client or server-side) - but they can cause other problems in case remotes have diverged.. you get all of the nice race-conditions if 2 people happen do push at the same time .. :)
Stefan Dresselhaus
@Drezil
@shubhamkumar13 "We present NumLin, a functional programming language whose type system is designed to enforce
the safe usage of the APIs of low-level linear algebra libraries (such as BLAS/LAPACK)."
I think that way is not the way to go...
http://www.ofb.net/~frederik/stla/draft-r2.pdf - similar things were already done in 2006 but did not catch on..
Stefan Dresselhaus
@Drezil
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.296.7937&rep=rep1&type=pdf - that is more to what i think is a killer-feature of haskell.. Automagic streaming/recycling & synthesizing an efficient runtime-kernel for a specific problem.
(but i am a fan of Roman Leshchinskiy anyway ;) )
money quote from that paper: "Clearly “properly”-written C++ can outperform Haskell. The
challenge is in figuring out what “proper” means. A Haskell programmer can write straightforward, declarative code and expect the
compiler to handle fusion. The C++ programmer must worry about
the performance implications of abstraction."
Magalame
@Magalame
Although that paper is fairly old, there seems to be no plan to bring simd to vector. Even the issue I opened on the repo brought 0 comment from maintainers :/
Stefan Dresselhaus
@Drezil
Maybe edward kmett will have his ghc-backend ready sometime in the future .. :) That would use everything of that ..
Troels Henriksen
@athas
I'll say that Haskell programmers also have to worry about writing code in the way to get fusion rules to fire.
Tim Pierson
@o1lo01ol1o
maybe Conel's CtC plugin could also get some simd love . . .
thirteenturtles
@shubhamkumar13
@Drezil shame, I really liked the idea that the paper puts on.
Stefan Dresselhaus
@Drezil
@shubhamkumar13 well .. most of it is implemented in the vector-library, sans using SIMD-Instructions .. but sometimes the llvm-backend does wonders there..
but you can then have bad surprises that you change some code, some optimization stops and you get a 10x+ slowdown ...
to prevent that one can use inspection testing: https://arxiv.org/abs/1803.07130 (paper) / https://www.youtube.com/watch?v=h0pCKIFP_iQ (30 min youtube-presentation)
but it is still easy to mess up performance with little changes.. but GHC is evolving and it is better than some years ago :)
Jonathan Fraser
@JonathanFraser
Anyone know if there is a Fenics type library for haskell which drops into Accelerate
thirteenturtles
@shubhamkumar13
Thanks so much @Drezil
thirteenturtles
@shubhamkumar13
Also it's not a purescript channel but how difficult would it be to transfer Tensorflow.js to purescript. Since it's written in Typescript, it should be easier than decoding ES6
James Brock
@jamesdbrock
If you know anyone who wants to learn Haskell but is only willing to spend less than 10 seconds configuring a working Haskell environment, then please send them this link to the Jupyter adaptation of Learn You a Haskell for Great Good! https://mybinder.org/v2/gh/jamesdbrock/learn-you-a-haskell-notebook/master?urlpath=lab/tree/learn_you_a_haskell/00-preface.ipynb
toxicafunk
@toxicafunk
:thumbsup:
Justin Le
@mstksg
@acowley and other vinyl people -- just thought you would appreciate hearing, i'm planning on releasing a library soon that "generalizes" vinyl in a way to other foldables besides lists. It doesn't really intend to replace or substitute vinyl in any way, but it heavily depends on it and it's been something i've found useful :)
let me know if you have any reservations about me presenting the library in this way