scene.org File Archive

File download

<root>­/­parties­/­2023­/­vccc23­/­christmas-diamonds/david.wahlstedt_nixondroid_haskell_vc3-2023.zip

File size:
2 976 305 bytes (2.84M)
File date:
2024-01-03 14:15:17
Download count:
all-time: 5

Preview

  • david.wahlstedt_nixondroid_haskell_vc3-2023/ dir
  • david.wahlstedt_nixondroid_haskell_vc3-2023/dw_vc3_2023 12.01M
  • david.wahlstedt_nixondroid_haskell_vc3-2023/dw_vc3_2023.hs 91B
  • david.wahlstedt_nixondroid_haskell_vc3-2023/dw_vc3_2023.png 95.95K
  • david.wahlstedt_nixondroid_haskell_vc3-2023/file_id.diz 957B

file_id.diz

<Haskell vc3_2023>

Author: <David Wahlstedt>
Category: <Christmas Challenge or Wild>
System:   <Nix on Droid>
Language: <Haskell>
Len source code: <91>
Len exe file:    <12595752>
Len code only:   <# bytes> (valid for assembler only; length of executable without BASIC stub)
Instructions:
<
On an x86-64 Linux system, just run the executable ./dw_vc3_2023
If you have haskell (ghc) installed, run with
runhaskell dw_vc3_2023.hs

The uploaded screenshot shows how it was run on my mobile (android) in the "Nix on droid" app.

Nix on droid can be installed through the F-drois app, and the ghc can
be installed by
nix run nixpkgs.haskellPackages.ghc
and then you can invoke the ghc, ghci, or runhaskell commands.
>

Description:
<It uses a list comprehension to generate the pattern>
Comments:
<This could have been made shorter, but in this shape it is still decently readable. The binary is certainly not minimalistic, but the source code is quite short.>