Hacker Newsnew | past | comments | ask | show | jobs | submit | rorygreen's commentslogin

Oh. Dropping IO.inspect into the pipeline is embarrassingly obvious! I can't believe I didn't think to do that. I always used IO.inspect as a pretty printer during development but I guess I didn't think it would return/pass through its input. Thanks for pointing that out.

I clearly hadn't bothered to read the 'Getting Started - Debugging' page on the Elixir website at any point.


Oh man I'm so sorry. The difference between using io.inspect like this and not is a the difference between "huge pain, worst ever" and "best concurrent debugging feature ever". IO in erlang is atomic, so in concurrent systems IO output will never be interrupted by IO output from another thread, which is not generally true in other systems (c, c++, rust, go). It makes a HUGE difference.


> You can’t throw a REPL wherever your want in your code

In my experience, I found I could throw a `require IEx; IEx.pry` pretty much anywhere in the code to get a REPL. This seemed like a unique superpower of Elixir to me. Where have you found that this isn't possible?

I agree with the pipe states point.

My main complaint with Elixir is that I'd discover really stupid mistakes with run time errors. The sort of things a bunch of other languages I've used would preclude at compile time. I never dug into more advanced debugging or Dialyzer though.


dialyzer is terrible, but vscode/elixir_ls + dialyzer is quite frankly amazing.


I'm inclined to agree with you, despite everybody else seeming to fundamentally disagree. I'm not convinced by either of the arguments in response to your comment. We have huge amounts of unemployment in the west and an economy that is tending towards more automation and fewer jobs for humans, so why would a decrease in the size of the labour force matter?

It's clear that people will continue to live longer and that birth rates will continue to fall, either by necessity (overpopulation) or due to factors like this. I hold the view that far too many people unnecessarily have children due to societal norms, family pressure, a bizarre and slightly narcissistic desire to have their genes passed down to future generations (adoption is incredibly important.) Obviously I'm not saying having children is wrong, just far too many people see it as a necessary part of their life when it really shouldn't be. Having children is an inherently selfish decision and unless you're prepared to sacrifice a huge amount of freedom to afford your children the best upbringing, then maybe having children isn't for you.

Maybe I have too much faith in modern medicine (I doubt it, modern medicine is incredible) but I fully believe a trend of dropping sperm count is not apocalyptic. It'll probably result in benefits such as fewer undesired pregnancies. The important thing is to ensure that people of any economic status have access to fertility clinics, and for IVF and related procedures to not be cost prohibitive for non-wealthy people.


As a person from and living in the UK, I'm equally shocked and appalled as you. Everybody I know is baffled by and vehemently against these ridiculous proposals. Quite frankly I have no idea who is voting for the Conservatives. Anybody with half a brain cell and not pushing an evil agenda seems to despise the Conservative party. (I'm sure there are some reasonable Tory supporters out there, I've never met them though. I also think in this current sociopolitical climate it's plain dangerous to vote for the Conservatives, even if you believe you have good reasons to support them.)

As a country, we've lost faith in politics and I fully expect this to be demonstrated by a very low turnout for the general election in June. The issue with this is we currently have no strong enough opposition to the Tories (thanks to an incredibly effective smear campaign against Jeremy Corbyn, the leader of the Labour party, led by the media and perpetuated by the Labour MPs themselves) so will end up with an even greater Conservative majority and another 5 years of this dystopian madness. I very much hope I'm proven wrong.

I'd be happy to elaborate on some of these points if you're interested; I have a few theories about what is currently going on and what has led us here. It is both very interesting and incredibly upsetting to observe and analyse the state of politics in this country at the moment.

Edit: I should state that I am not a Labour party supporter, I was just trying to give a vague overview of the state of our politics at the moment.


> > How in the hell are the people of the UK supporting something like this?

> As a person from and living in the UK, I'm equally shocked and appalled as you. Everybody I know is baffled by and vehemently against these ridiculous proposals. Quite frankly I have no idea who is voting for the Conservatives

[0] https://news.ycombinator.com/item?id=14374899

It is important for anyone who does not wish to be continue to be blindsided by what "appears" to be surprising to be aware of and correct their own biases.

The trends in UK policymaking (namely, the fact that they're continuing rather than having been ousted) suggests a pattern, and while comments like the above feed into the denial I cite in that comment [0], objective observations (one way or another) serve to clear the air - but only when they're objective. Comments like these - that're "I'm just as confused as you are" - just end up setting discussion back, as people end up being misinformed (as I feel I have been from them in the past, and continue to be unless I make a conscious effort to consider what by all accounts seems the more likely alternative). Hard census-like data would be better than anecdota for this reason, for instance.

Perhaps as you say your anecdotal evidence supports "Everybody [you] know" being 'baffled', but as you're chiming in as a UK citizen, please be aware of any other potential selection or location biases. You're in a better position than outsiders to gauge and figure out where your blind spots are, and it's seeming more to me that the news doesn't bear out the easy-to-jump-to-conclusion (especially in the net-biased echo chamber) of your countrymen at large sharing the same view.


I'm not sure why your comment has been downvoted, this is a very reasonable point. I agree with the linked comment in that I know I am in the minority (votes-wise) but the point I was making is exactly that. Many many people have completely lost faith in politics because it seems that no matter what goes wrong or the number of insane policies presented by the Conservative party, the public opinion seems unchanging. I think there is a very complex set of reasons for this, a lot to do with the media here and the internet communities you mention.

For the above reasons I contend that these are biases, merely observations. I observe everybody around me supporting significantly more libertarian ideals and so I wonder who and where are these other people who hold opposing ideals. I'm sure I could find out the answer from census and statistical data but that doesn't bring me any closer to understanding the reasons why these people vote as they do. Part of my theory is that these opposing ideals are not ideals at all and are in fact a reflection of the efficacy of the marketing campaigns of right-wing politics.


Yes thanks. If I'd allocated more time to that comment I'd likely have edited to better get across that I'm also actively trying not to jump to conclusions on the other end of the spectrum, but I don't particularly care about votes either way and was/am just using this and the past comment to note what I might later look back on as the biased POV I was under at the time.

For GB's sake I hope some minority subdicision forms and at least manages to secure some of the crucial points of privacy or otherwise figure out how they can coexist with their system or one more suited to them... shrug The scarier aspect of globalization.


Sorry, but Labour's 'Wacky' Jacqui Smith was just as bad as Theresa May. The main difference here is that May has become prime minister, so is more able to push her vile ideas.

Whether it's Labour or the Conservatives in power, it seems inevitable that they will push these dangerous ideas in the name of 'keeping us safe from terrorists and paedophiles'.


People complain about having no opposition now but Tony Blair and New Labour's agenda was very similar to the Tory one and equally authoritarian. Now we actually have some ideological differences between the parties


It's a disease apparently particular to Home Secretaries. Something about the Home Office seems to have a way of 'radicalising' politicians into authoritarians (not sure if I've got the cause and effect the right way around there but that's certainly what it looks like).

The trouble is, if there's a toxic authoritarian culture in the higher levels of the civil service, there's really no way of ousting it. "Whoever you elect, the government gets in".


> Something about the Home Office seems to have a way of 'radicalising' politicians into authoritarians

Perhaps the very name of the office. "Home" is a word with a lot of powerful emotional resonance.


I completely agree and have edited my comment to explicitly state that I do not support the Labour Party. I do however think that a Labour led coalition (the only other possibility?) would be the lesser of the two evils at the moment.


This issue is deeper than party politics. You can blame the Tories, but the Labour party gave us RIPA. They're just as bad, if not worse. It does not matter which political party is in power at the moment, they all want to increase surveillance. And if they say they don't want to before they get into power, they seem to change their tune for some reason once they're in.


> They're just as bad, if not worse.

Im sure Americans just experienced Deja vu. Sure, they are "all the same" in some narrow way. This equivalence should only matter to single-issue voters.


New Labour was as bad. Current Labour see New Labour as completely toxic. As bad as Corbyn is seen in many circles, Tony Blair now polls worse.


I bet you live in a major city.

I live in the USA and would feel this way too about Trump if I didn't know people who lived in the interior. I live in the Los Angeles metro, which is one of America's "alpha cities."

London and other major global cities have formed something almost akin to the science fiction concept of a breakaway civilization. They are their own global meta-nation. Meanwhile the interior and rural districts of their own host countries have been in a state of permanent depression for almost two decades now.

Not saying the conservatives or Trump will fix this. They're political opportunists riding a wave of dissent. All Trump had to do to get elected was to style himself the opposite of all the values and ideas popular in global Urbanity. One of the most insightful comments about Trump I've read was that his racism was more intended to offend educated white urban coastal liberals than to offend non-white races.

From what I can see Brexit and this stuff is the same.

It's a "fuck you" vote from the forgotten districts.

Edit: required reading:

https://morecrows.wordpress.com/2016/05/10/unnecessariat/


I don't. I'm situated in a very stereotypically "rural England" type place — a deeply Conservative area, within the sea of Blue you see on maps of our election results[1].

In regard to Brexit, there's actually a strong libertarian case for leaving the EU. I personally think it was shortsighted of people (and somewhat reckless) to vote with this mindset given our current government, as the exit of the EU that is desired by those libertarians is not that which will occur. However, this is a much more contentious opinion amongst people I know, many of whom would argue that this was a valid and commendable rejection of the status quo. Saying this, I don't know if the libertarian argument for Brexit was strongly enough represented in the referendum to tip the balance. Given the tiny margin by which Leave won[2] (< 1.3 million votes. It's worth noting that this majority corresponds to about 1/3 of the electorate), I think it's possible.

[1] http://www.bbc.co.uk/news/election/2015/results

[2] http://www.bbc.com/news/politics/eu_referendum/results


> It's worth noting that this majority corresponds to about 1/3 of the electorate

I think you meant 1/30?


No I mean the 'majority' as in the 51.9% who voted Leave, due to the poor turnout, corresponds to about 1/3 of the electorate.


Ah. I thought you meant the margin of victory, which was about 1/30 of the voters (not the electorate, as you point out).


What does shitty economics outside the powerhouse of London (a thesis which I agree with but which I would argue has also been common knowledge for decades) have to do with setting up a new and stricter internet? I don't believe that disgruntled pensioners in the Cotswolds want to stick it to the globalists in London by forcing them onto a different version of the internet protocol.


Nothing directly, nor is Brexit necessarily going to help. But they will vote for politicians who set themselves up as anti-urban-values to stick it to the globalists in London.


The urban/rural split is insane these days. In my home state, Maine, it's getting very close to a situation where Portland can wag the whole rest of the state.

Urban vs rural values and opinions are almost mirror images of each other...


> London and other major global cities have formed something almost akin to the science fiction concept of a breakaway civilization. They are their own global meta-nation. Meanwhile the interior and rural districts…

Almost, except that cities are utterly dependent on "the interior and rural districts" for food.


Well, my whole country depends on other countries for food...


No they're not. They can grow their own (and have in times of previous crisis) and most large cities are built around ports. Also, when was the last time a rural population laid siege to a city and starved it? Hundreds of years ago.

Honestly, I don't understand the fantasy world people like you live in. You seem to assume that people who live in cities are helpless kittens or something.


I suspect that most people decide who to vote for based on money, trust on things like jobs, and fear of unemployment &c. I don't think internet policy comes into the decision really for people who don't follow these things and who are not technical.

UK: anyone got a good simple page I can point neighbours at about why this should be an election issue?


Browsing through the full range of apps, I'm personally unconvinced by their selection. A lot of the provided apps seem to provide similar functionality, in some cases being attached to competing services. I think I'd rather have a smaller range of more carefully curated apps.

That being said, it's very nice to see a novel approach to app distribution. The low price is particularly enticing.


This exists and is called Ungoogled Chromium[1]. As you'd expect from the name, it blocks all background communication with Google servers. I use it as my main browser and find it faster and more stable than both standard Chrome and Firefox, YMMV.

1: https://github.com/Eloston/ungoogled-chromium


I'm very surprised to see that nobody has mentioned OneTab.[1] With my use of Chrome, it performs fine with hundreds of tabs open until I attempt to reopen them after a restart, at which point I'll be waiting for about 5 minutes until I can do anything. Firefox seems better for this as it only loads tabs when I actively select them IIRC.

Regardless of performance, with that many tabs open I just find browsers unpleasant to use because you can't see the title of each tab and switching between them is a mess. OneTab is fantastic - I have it as a pinned tab on all my browser windows and I send it all the tabs I'm not actively using. For me it also doubles as a short-term bookmarking system so I don't clog up my pinboard.in bookmarks with articles I have not yet read etc.

[1]: http://www.one-tab.com/


Somewhat similarly, "The Great Suspender" for Chrome and similar extensions unload unused tabs after a configurable timeout, requiring a click to reload them.

https://chrome.google.com/webstore/detail/the-great-suspende...


Out of interest, do you actually use this? I saw it recommended on HN before and tried it. I found it has one of the most awful UIs I've ever seen. I found it completely unusable and dropped it immediately. I'm not saying people shouldn't use it if it works for them but I don't think I could honestly recommend it to anybody.


I feel like most of the complaints here are about stateless password managers/generators in general. If not being able to change your master password is an issue to you, then this type of password manager is not for you. The cryptographic arguments seem more valid and worth considering if you plan to use this. I was planning to build something very similar to this as I came to the same conclusions as the creator of LessPass, that the existing solutions are not satisfactory for my use case.

My current choice in software of this type is Twik (https://github.com/gustavomondron/twik) because it has an Android app available from F-Droid and an extension I can install in Chromium. The browser extension is especially good but not without faults. For daily use I find this adequate but I find myself in situations where I need to access a password outside of a browser or my phone which is a huge pain. Other drawbacks include no ability to change or bump the password to a new one without creating a new profile. Keeping my phone and computer in sync is also slightly annoying as you need to manually copy the UUID (long-ish complicated string) which is used to identify each profile.

I think a lot of these issues could be overcome by relatively simple solutions just by applying some sensible design without going all in and trying to be everything at once like LessPass is. If, for example, Twik generated QR codes for its profile keys which you could scan in the mobile app, it would speed things up massively. If it had a compatible CLI interface and a macOS menu bar application, it would be fantastic.

I'd also rather not bother with creating an account with another service just to sync my password version numbers and silly password rules that sites implement. The ability to self-host LessPass is nice but do I really need to bother with this? What's wrong with syncing this information in a simply formatted, maybe also encrypted, text file with services I already use such as Dropbox or Google Drive? Also, why is the default password length 12 characters? It's a small gripe but I thought the whole point of using software like this was to enforce good password practices.

I think https://getvau.lt/ gets pretty much everything right other than having to remember the rules of each password every time you generate it which, for me, isn't much better than remembering different strong passwords for multiple sites.

I've been hoping for some time that somebody would create a solution that I feel makes sense so I was excited to see this post but unfortunately it seems to have too many drawbacks for me personally to incorporate into my daily life. The open source nature of a lot of these products is very helpful and will hopefully reduce the effort I will have to eventually put into building a solution that gets out of my way.


You've got some really great selections there! I've picked a fairly random list of albums and EPs from a range of electronic music, I really hope you find things you like amongst it. Also I don't want to be the genre police but I wouldn't call any of this EDM, that term seems to have been adopted by a type of music of which, I guess I'll just say I'm not a fan. In no particular order:

Arovane - Tides (2000)

Tim Hecker - Virgins (2013)

Donato Dozzy - K (2010)

Autechre - Amber (1994)

James Holden - The Inheritors (2013)

Andy Stott - Faith In Strangers (2014)

Jon Hopkins - Immunity (2013)

Recondite - On Acid (2012)

Lemon Jelly - Lemonjelly.ky (2000)

Max Graef - Rivers Of The Red Planet (2014)

Pantha Du Prince - Black Noise (2010)

Plaid - Reachy Prints (2014)

Rival Consoles - Sonne (2014)

Shlohmo - Bad Vibes (2011)

St Germain - Boulevard (1995)

Traumprinz - Mothercave (2013)

Valerio Tricoli - Clonic Earth (2016)

Romare - Projections (2015)

Space Dimension Controller - Orange Melamine (2016)

Actress - R.I.P (2012)

Massive Attack - Mezzanine (1998)

Rob Clouth - Clockwork Atom (2014)

And shouts out to Datassette who appears to have done a bunch of the instalments on the music for programming site (mixes/playlists, whatever they are. I've never listened to any of them). This EP is gorgeous:

Datassette - The Aviatrix (2009)


Thanks for the list! The Massive Attack album is one I already love, so I'll check out the others.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: