mrh

joined 2 years ago
2
CSV Parsing (mander.xyz)
submitted 2 years ago* (last edited 2 years ago) by mrh@mander.xyz to c/haskell@programming.dev
 

New-ish to Haskell. Can't figure out the best way to get Cassava (Data.Csv) to do what I want. Can't tell if I'm missing some haskell type idioms or common knowledge or what.

Task: I need to read in a CSV, but I don't know what the headers/columns are going to be ahead of time. The user will provide input to say which headers from the CSV they want processed, but I won't know where (index-wise) those columns will be in the CSV, nor how many total columns there will be (either specified by the user or total). Say I have a [String] which lists the headers they want.

Cassava is able to read CSVs with and without headers.

Without headers Cassava can read in entire rows, even if it doesn't know how many columns are in that row. But then I wouldn't have the header data to filter for the values that I need.

With headers Cassava requires(?) you to define a record type instantiating its FromNamedRecord typeclass, which is how you access parts of the column by name (using the record fields). But in order for this to be well defined you need to know ahead of time everything about the headers: their names, their quantity, and their order. You then emulate that in your record type.

Hopefully I'm missing something obvious, but it feels a lot like I have my hands tied behind my back dealing with the types provided by Cassava.

Help greatly appreciated :)

5
Set? (mander.xyz)
 

Generics have been around for a while now, and although this has been brought up before, do ya'll think a built in set data type like golang-set (or something similar) will come to the stdlib? Do you think it should?

I think it would be a great convenience at little to no cost to the practicalities or philosophies of Go.

[–] mrh@mander.xyz 3 points 2 years ago (1 children)

Any word on new dead congregation?

[–] mrh@mander.xyz 4 points 2 years ago* (last edited 2 years ago) (4 children)

FOSSILIZATION! This is easily in my top 5 most anticipated releases of the year. Both their EP He Whose Name Was Long Forgotten and the split they did with Ritual Necromancy were some of my favorite death metal releases of the past couple years.

This track sounds a bit more like Dead Congregation (and less like Krypts) than I hoped, but still recognizably Fossilization and very solid.

[–] mrh@mander.xyz 8 points 2 years ago (1 children)

what would you be stealing?

[–] mrh@mander.xyz 1 points 2 years ago
[–] mrh@mander.xyz 3 points 2 years ago* (last edited 2 years ago)

Great to see the progress, this is a very import project for monero and I really hope to see it succeed!

[–] mrh@mander.xyz 2 points 2 years ago* (last edited 2 years ago)

Damn IVPN has always been a solid provider. No public missteps and supported XMR earlier than all (reputable) others including mullvad.

Time to switch to i2p and usenet at least until the next p2p protocol comes about.

[–] mrh@mander.xyz 4 points 2 years ago* (last edited 2 years ago) (1 children)

diSEMBOWELMENT - Transcendence into the Peripheral

HMs:

  • Yob - Clearing the Path to Ascend
  • Winter - Into Darkness
  • Black Sabbath - Black Sabbath (opening track alone)
  • Rippikoulu - Musta Seremonia
  • Electric Wizard - Dopethrone
  • Lurker of Chalice - Lurker of Chalice
  • Candlemass - Epicus Doomicus Metallicus
  • Bongripper - Hippie Killer
  • Asphyx - Last One on Earth
  • Ahab - The Call of the Wretched Sea
7
submitted 2 years ago* (last edited 2 years ago) by mrh@mander.xyz to c/death_metal@lemmy.world
3
Why No Clearnet? (mander.xyz)
submitted 2 years ago* (last edited 2 years ago) by mrh@mander.xyz to c/i2p@lemmy.world
 

So what exactly is the reason that i2p has thus far elected not to have a system of "exit" relays which allow users to access the clearnet?

Every time it comes up the question is deflected by saying that i2p is not meant to help anonymize clearnet traffic, but to be its own independent network. But why not both? If it is just not the devs interests then that is what it is, but I'm surprised people in the community really wouldn't want to be able to use i2p to anonymize their clearnet traffic.

[–] mrh@mander.xyz 5 points 2 years ago

While there's a grain of truth in this, I don't think anybody should be pushing for some standard to be "the" standard which eclipses all others now and forever. People, given sufficient freedom and knowledge, will gravitate towards what works best, be it old or new. Nostr is simply the protocol I prefer. I think it's better. Why pretend otherwise just becoause activitypub happened to come first and thus is currently more popular?

[–] mrh@mander.xyz 7 points 2 years ago (1 children)

Nostr is a protocol like activitypub. There are many pieces of software built on top of nostr, just like lemmy and mastodon are both built on activitypub and can interact.

So yes.

[–] mrh@mander.xyz 2 points 2 years ago* (last edited 2 years ago) (1 children)

Yes as far as I'm aware you can only leech via i2p what is seeded to i2p. Maybe one day the outproxy system will be more like tor exit nodes and allow leeching clearnet torrents from i2p.

But you can seed to both. So if you're already seeding in the clear (or via vpn) and your bittorrent client supports it then you might as well also seed to i2p.

[–] mrh@mander.xyz 11 points 2 years ago* (last edited 2 years ago) (6 children)

Lemmy has certainly already won me over reddit. Going back to centralized social media is something I will actively avoid if at all possible.

However I believe nostr is a theoretically better protocol than activitypub. Having your account/identity tied so strongly to a particular instance is undesirable. As soon as there is a reddit-like (or even forum-like) client for nostr which is relatively active/polished, I will switch. Nip 172 can't come soon enough.

In addition to being less popular / newer than activitypub, nostr is also full of bitcoin[^1] bros and twitter refugees (not my crowd). But frankly I think complaints about that are like the complaints that lemmy is a place for tankies a couple years ago when people's only exposure was to a (much smaller than today) lemmy.ml.

[^1]: monero support would be nice though...

view more: ‹ prev next ›