2024/05/20

Newest at the top

2024-05-20 21:09:36 +0200demon-cat(~demon-cat@dund-15-b2-v4wan-169642-cust1347.vm6.cable.virginm.net)
2024-05-20 21:08:46 +0200 <tomsmeding> TIL this exists https://downloads.haskell.org/ghc/latest/docs/users_guide/exts/assert.html#assertions
2024-05-20 21:07:39 +0200demon-cat(~demon-cat@dund-15-b2-v4wan-169642-cust1347.vm6.cable.virginm.net) (Ping timeout: 256 seconds)
2024-05-20 21:07:08 +0200mud(~mud@user/kadoban)
2024-05-20 21:04:41 +0200 <tomsmeding> perhaps this cabal file predates that
2024-05-20 21:04:34 +0200 <tomsmeding> don't you have `buildable: False`
2024-05-20 21:04:21 +0200 <monochrom> Haha TIL how to say "false" in cabal prolog: build-depends: base < 0
2024-05-20 21:04:20 +0200 <mauke> with ligatures of the bytes or something
2024-05-20 21:04:08 +0200 <mauke> then do your utf8 decoding in the font
2024-05-20 21:03:56 +0200 <mauke> hw accelerated font rendering
2024-05-20 21:03:55 +0200 <tomsmeding> haha oh no
2024-05-20 21:03:36 +0200 <monochrom> "Certain version of GHC crash on Windows, when TemplateHaskell encounters C++." Hahaha template wars.
2024-05-20 21:03:30 +0200 <mauke> there's potential for fusion here
2024-05-20 21:02:32 +0200 <monochrom> "Hi I have a question. Every time I run a progrma that uses Data.Text, my GPU frame rate drops to 1 FPS. What's going on?" >:)
2024-05-20 21:02:11 +0200 <Rembane> I hope someone makes science on this
2024-05-20 21:01:57 +0200 <tomsmeding> I feel like the bandwidth of the data connection to a gpu is less than the speed you can get with good simd code for utf parsing
2024-05-20 21:01:18 +0200 <monochrom> if flag(gpuutf) ...
2024-05-20 21:01:01 +0200 <monochrom> Next you are going to need a high-end GPU too...
2024-05-20 21:00:16 +0200 <tomsmeding> daniel lemire stuff
2024-05-20 21:00:05 +0200 <sclv> https://github.com/simdutf/simdutf <-- very fast, very complicated, very c++
2024-05-20 21:00:01 +0200 <monochrom> You people are nuts. >:)
2024-05-20 20:59:51 +0200 <tomsmeding> yes, vectorised UTF* parsing
2024-05-20 20:59:42 +0200 <monochrom> Using SIMD instructions for UTF??? encoding so it is faster?
2024-05-20 20:59:19 +0200 <monochrom> Interesting, simdutf.cpp. Does that mean SIMD?
2024-05-20 20:59:05 +0200 <tomsmeding> ah there's a nice chunk of "let's get the c++ stdlib in there the hard way" code
2024-05-20 20:58:39 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
2024-05-20 20:58:17 +0200 <sclv> whoops i meant text not bytestring https://hackage.haskell.org/package/text-2.1.1/text.cabal
2024-05-20 20:58:14 +0200 <lxsameer> :D indeed, but i might be able to use it as a reference
2024-05-20 20:57:44 +0200 <tomsmeding> 15 is still old but less old :)
2024-05-20 20:57:31 +0200 <lxsameer> tomsmeding: it's old
2024-05-20 20:57:22 +0200 <tomsmeding> on github there's a branch for llvm 15
2024-05-20 20:57:10 +0200 <tomsmeding> lxsameer: be aware that the llvm-hs package exists
2024-05-20 20:56:57 +0200 <lxsameer> monochrom: since I'm going to interface llvm, the c api is already there
2024-05-20 20:56:42 +0200 <tomsmeding> sclv: I don't see any c++ in that cabal file, just C?
2024-05-20 20:56:26 +0200 <tomsmeding> llvm has a C api for some part of its API surface
2024-05-20 20:55:51 +0200 <monochrom> OK, writing your own C API for what's morally C++ is an uphill battle in the worst case. But I'm just a theorist.
2024-05-20 20:55:15 +0200 <sclv> bytestring is probably the best example of linking c++ and using it, but that might be dynamic. i imagine you can toss the extra libraries into the link path and settings and it should be basically ok, but Extremely not portable for building https://hackage.haskell.org/package/bytestring-0.12.1.0/bytestring.cabal
2024-05-20 20:55:10 +0200 <lxsameer> monochrom: awesome
2024-05-20 20:54:21 +0200sadome(~sadome@user/sadome) (Excess Flood)
2024-05-20 20:54:20 +0200sadome(~sadome@user/sadome)
2024-05-20 20:54:20 +0200sadome(~sadome@182.69.179.74) (Changing host)
2024-05-20 20:54:20 +0200sadome(~sadome@182.69.179.74)
2024-05-20 20:54:13 +0200 <lxsameer> tomsmeding: cheers, it is definitely useful
2024-05-20 20:54:04 +0200 <monochrom> Someone has to write the extern"C"{...} API, and Haskell FFI can only call the C API. But it can be done.
2024-05-20 20:54:00 +0200 <tomsmeding> but might contain pointers to stuff you need anyway
2024-05-20 20:53:47 +0200 <tomsmeding> says nothing about c++ specifically
2024-05-20 20:53:37 +0200 <lxsameer> oh cool thanks
2024-05-20 20:53:31 +0200 <lxsameer> but at the end I need a static executable
2024-05-20 20:53:24 +0200 <tomsmeding> lxsameer: this exists https://hasufell.github.io/posts/2024-04-21-static-linking.html
2024-05-20 20:53:21 +0200 <lxsameer> my aim is to write parts of my application with haskell and parts in C for interfacing with llvm