Better HN
topnewbestaskshowjobs
Log inSign up

mapgrep

6,331 karma · joined Sep 23, 2010 (16y ago) · 813 submissions

Submissions

comment 5y ago · link · parent

I really really enjoy Clojure and think its success will only grow.

The (excellent) Java interop is a major strength. I’d argue it’s also a double edged sword: Java libraries tend to be very mature and capable, and Clojure programmers, especially the senior ones, tend to be very comfortable in Java, so often the native libraries just don’t get written.

I went to look for a CSS selector library the other day, the accepted solution seems to be to just call into Jsoup. I did find a native xpath library but it was such a thin wrapper around Java stuff that I ended up needing to learn those APIs to get something done the wrapper author hadn’t considered.

The thing about relying on Java libraries is the users, who came because they like lisp and Clojure, spend an inordinate amount of time trying to wrap their heads around Java apis (if they don’t know them already). Which is not fun.

comment 5y ago · link · parent

Very good point and I'd go a step further: There are lots of organizations that are not even businesses in the first place who can sustainably fund open source work.

Postgres came out of UC Berkeley. GNU stuff like emacs and gcc came out of MIT. VLC came out of École Centrale Paris. SecureDrop is developed by the Free Software Foundation. Tor was originally funded by the Open Technology Fund (USG). Firefox is from a nonprofit funded by Google advertising and born from the ashes of a commercial failure. Etc etc etc.

There may or may not be an open source business model, but there does not have to be one at all for open source to thrive.

comment 6y ago · link · parent

You have argued that the average student loan debt is not “life crushing”. This is a bit absurd. No one would argue that buying a brand new car for $30k fresh out of school is wise financially for the typical college graduate. Whether it crushes your life or not, it is very ill advised.

You have also not addressed the half of debtors who owe more than the average. If the average is so high just think of the figures in the most indebted quarter which is necessarily one million persons per year approximately in the U.S.

There is a reason student debt cannot be discharged through normal bankruptcy. It is for many a horrific and crushing burden.

comment 6y ago · link · parent

I wouldn't be surprised if the Bay Area remains on the whole more expensive after this boom than it was before the boom started. I'm pretty sure that's how it has historically worked. I don't profess to know how far things will fall.

I will note that historically the busts take time to play out just like the booms do. Dot-com 1 burst around April 2000 but I don't think the rents fully bottomed out for nearly two years.

Anyway you're right that things don't come back ever exactly as they were before. I just think more breathing room will open up.

comment 6y ago · link · parent

This is part of the cycle that makes the Bay Area wonderful. People come, people go, some people stay. In my opinion some of the most interesting work (including but not exclusively in tech) is going to happen in the next few years in the Bay Area precisely because of the opportunities and breathing space this outflow of people (and perhaps eventually money) is going to open up.

I lived in the Bay Area for 20 years, including college and 2-3 tech booms (depending how you count). From what I saw, there is always some portion of local people (like the angry anti-skyscraper guy in this article) that is too xenophobic and anti change, just as there is always some portion of newcomers that is too transactional, extractive, and ready to skip town when the going gets tough. Both postures are perfectly defensible; it's tough living in a place where rents are as unpredictable as they can be in the Bay Area, and tech leaders have not historically shown (IMO) enough commitment to the community and tax base, meanwhile those who move to the Bay Area for work are under no obligation to like it and stay, even if their complaints (about rent control, regulation, "dirty" streets, etc) are totally cliched.

Somewhere out there in the city some bleary eyed veteran of the scene is negotiating a tiny, bargain sublet for a few desks and a slice of a server closet in SoMA and will release something quietly revolutionary in the next year or so that in five years will be the next big thing. Or maybe it will be a cheery eyed newcomer leasing factory time in Hayward for a hardware thing, or someone testing robots in a warehouse in West Oakland, or whatever. Right now is one of the times when things get interesting.

comment 6y ago · link · parent

Yup. I pay $3300/mo for an nyc apartment in a 2003 building. You’d like to imagine in a city with very cold winters and very hot summers they sprung for double paned glass. Nope. Single paned, poorly sealed glass means our thermostat is turned past 80 in the winter. If the living room (less window exposure) where the thermostat is isn’t 85 the rooms can be below 60.

comment 6y ago · link · parent

That was completely conventional and expected per the innovators dilemma - they moved to a higher margin product with more features. iPhone was innovative and impressive for many reasons but it did not short circuit innovators dilemma.

comment 6y ago · link · parent

Oh, I'm glad to hear, it really is a good book although you have to get it used.

Part of the reason I clicked into this thread is if I have been fasicnated with Finland, especially the last 12 months or so, so you caught me at a time when I have Finnish history particularly close to my memory :) I am reading a book by the same author AF Upton presently on the Finnish "revolution" (peaceful) and civil war. I read a winter war book at the start, also good. That's all my Finland knowledge, beyond wikipedia.

I don't blame you for defending Finland, it is a wonderful country, one of my favorites. I don't think of them mainly as German collaborators or anything. They did have to defend themselves against some pretty terrible USSR behaviour. Cheers.

PS Do you watch any Aki Kaurismaki? Great Finnish filmmaker, lives in Portugal these days.

comment 6y ago · link · parent

You are wildly incorrect. The Winter War ended well before the Continuation War began. See: The Treaty of Moscow. And it was not just a few German troops. Finland served as a staging point for a major if unsuccessful assault on Murmansk. More important, the Finnish invasion (and taking of Karelia) helped tie down Soviet forces near Leningrad. The alliance was eagerly sought by Finnish politicians convinced (not unreasonably) the Soviets would attack after many months of belligerence toward the Finnish ambassador by Molotov. But they were also convinced that Germany would inevitably defeat USSR and usher in a New Europe (code for fascist Europe - long racist toward Russians, the Finns relished the fraternal ties to Germany and the privileged place they could assume in this new world order).

Finnish leaders actually served time in prison after the war for their war crimes. I am sympathetic to Finlands position but to say the Winter War never ended is an absurd falsehood. An entire book was written about the period between the wars by AF Upton. Finland In Crisis. It is superb. It details extensive deliberate planning at the highest levels between Finland and Germany for months prior to Germany turning on its then ally USSR.

(Here’s a quiz for you. If it was only a few German troops in Finland who quickly left, why is it they burned so much of the north and center of the country e.g. Rovaneimi on their way out and why did Finland have to fight them to get them to leave? They were dug in in bases supplied by Finland.)

comment 6y ago · link · parent

Ww2 in Europe was largely won by the USSR. Britain and the US opened a western front quite belatedly after years of begging by the USSR, after the Soviets sacrificed 15+ million lives to turn the tide, and after a lot of wasted time focusing on minor gains in North Africa (at Churchill’s insistence). Combined US and UK military’s deaths were less than a tenth those for USSR. We love to pat ourselves on the back with movies about D Day though. (They should be about Stalingrad.)

Finland incidentally was a key ally for Hitler in his attack on the USSR.

comment 6y ago · link · parent

It should be good, he's the editor in chief :-)

comment 6y ago · link · parent

Brave is the only browser on iOS that lets me turn off javascript on a per-site basis. VERY useful.

(If you're aware of others, I'm all ears.)

comment 6y ago · link · parent

Is there something I can read to get up to speed on xpath? Any recommendations for online or printed resources? (Particularly from folks who use it regularly!)

comment 6y ago · link · parent

I followed the Napster trial closely. Napster’s argument that it had legitimate use was demolished because it had an ability to monitor the specific use of its service on an ongoing basis. That is, it could see queries from users as they happened. In fact, this ability was at the core of the service since Napster relied on a centralized search index maintained by the company. The court ruled this gave the company a more active role in contributing to infringement than the precedent Napster was trying to use (which involved VCRs - the Betamax case).

The courts remedy (at least at the preliminary injunction phase) was not to shut down Napster but to force it to comply with search blacklists provided by the record companies.

youtube-dl obviously is not a service so had no ability to monitor ongoing use. IMO it would have a much stronger case for legitimate use.

IANAL

comment 6y ago · link · parent

Well that’s the thing. If I’m content to trust the client side hashing or encryption on the secrets why bother setting up my own server? Conversely, if there are nefarious things that can happen on the server to compromise the data without me knowing about it, then I trust neither myself (because I’d be a bad sysadmin) nor a third party (not knowing what they’re up to). Or if I do trust a third party just use 1Password.

Reading between the lines it sounds like being able to build from source or see and install the source gives some assurance you can’t get via third party and the strong files give some assurance over me being a bad sysadmin. That’s either a sweet spot or uncanny valley depending on your perspective. :)

comment 6y ago · link · parent

Not knocking the project, which sounds cool, but the absolute last thing I want to self host is a password database exposed to the internet. Hard pass on that element.

1password used to have a peer to peer sync mode that I loved. No need for a server anywhere. You would open it on your Mac and then open it on your phone and if they were on the same network they would self discover. Too inconvenient, perhaps, for most users, but for the paranoid like me, it was ideal -- no servers involved at all.

(Technically, wifi sync I believe still exists IF you use 1password on Mac with a old style local vault, but it's basically unsupported. Mine just stopped working and I switched to 1password.com.)

comment 6y ago · link · parent

It seems reasonable to argue that fighting Google's browser monopoly justifies Mozilla helping enable the search monopoly for limited periods of time through default search agreements.

Or you could reasonably argue that the default search payments Mozilla takes are way less harmful to competitors than other things Google does, like scraping data from third party sites and presenting it above search results.

I'm not sure if I agree, but you could definitely argue these things.

Interestingly, Mozilla never comes right out and makes these arguments in its blog post. I guess maybe they imply them. I honestly am not sure if this is because any statement on this has to be heavily vetted by lawyers, or if, as some people will surely suggest, they are afraid of offending Google. (I don't really think they are? But maybe I'm wrong....)

comment 6y ago · link · parent

I thought this was interesting:

“

Perrin told me that, despite appearances, ‘Moxie leads from the front, and he just leads by doing. One of his favorite quotes is “The only secret is to begin.” If you want to get good at something or do something, you just do it, and you figure it out along the way.’

“

comment 6y ago · link · parent

There’s already been a test case. Wikileaks. Former AWS customer, they were kicked off for releasing the state department cables.

comment 6y ago · link · parent

No, I don't see any functional difference between the explanatory text for the argument and the explanatory text for the program. They could both accurately be called "help" or "description," but for some reason the original author did not want to choose. (I agree the dictionary definition of the words are different, but in this context there is no functional difference.)

Also, your first sentence explains why I don't do what you suggest in your second sentence :-) Some people may not agree with my reasoning (which is obviously their right), not worth the trouble to figure out how to submit a patch and then risk having it rejected.

comment 6y ago · link · parent

Better solution would be to clean up the argparse API. For example why is the explanatory text argument “description” when you call the parser constructor (argparse.ArgumentParser) but “help” when you call the argument constructor (parser.add_argument)? Also why are the docs for nargs (whose options I always forget) so buried in the argparse docs?

142.

I got irritated by my dad’s cluelessness with gadgets but maybe tech is to blame(theguardian.com ↗)

3 points · by mapgrep · 6y ago · 2 comments

comment 6y ago · link · parent

Sriram is a skilled interviewer. I like that the followups were so well connected to the responses.

comment 6y ago · link · parent

"There are obviously still people arranging test-drive promotions for YouTubers but their role isn’t in a traditional public relations capacity. "

That's absolutely traditional PR for an automaker. "Arranging test-drive promotions" means deciding who is eligible for test drives, viewing what is published on YouTube, and deciding if the person will be eligible next time. Even if no words are spoken/written to the YouTubers beyond logistics for the test drive, it is effectively PR.

It's telling they are keeping the most lucrative PR, video product promotion. It sounds like they mainly don't like dealing with the business press. But their investor relations department is going to end up picking up at least some that burden (even if just in the form of ignoring questions). Tesla still has to disclose quarterly earnings figures and its executives will still conduct calls around those earnings releases. They may only allow questions from financial analysts but any member of the public can listen in.

comment 6y ago · link · parent

It seems like 2) gets to the heart of what flatpak is and how it works. The argument in favor of traditional packaging over flatpak is that security vulns in dependencies get fixed for all packages at once. The architecture of flatpak allows / encourages package maintainers to update vulnerable dependencies at their leisure. The fact that this is observed in the wild in the linked article seems a natural consequence. What is the mechanism that would cause this behavior to change as the ecosystem matures?

comment 6y ago · link · parent

I don’t know. I read the whole article and it seems the suggestions boil down to emacs needing to be more “modern” by defaulting to dark mode, making color theming easier, changing right click behavior, the menus, and changing the shortcuts. And the author of the article would like the development process to be more “modern.”

Emacs is one of the most successful text editors of all time if not the most successful. It is widely used for a staggering array of tasks.

It is over 40 years old.

When I see a highly successful 40+ year old piece of software, my first instinct isn’t to ask what the people behind it can learn from me but what I can learn from them.

I’m not saying the editor can not be improved. But I think the bar is much higher than this. It’s not an insult to say something like emacs is not “modern.” Of course it’s not. And changing the colors? The shortcuts that have worked for decades? Please.

If someone thinks emacs will be more successful with these cosmetic changes they are welcome to fork it since this is one of the earliest open source programs. Code talks, a bunch of people opining on a mailing list is pretty worthless in comparison.

comment 6y ago · link · parent

Your stance on whether ICE violates human rights of children is orthogonal to your stance on policies that ICE enforces and promulgates. It's not a political stance. In other words:

You can be FOR the deportations and AGAINST treating children that way. You could be AGAINST the deportations policy and OK with the implementation on a human rights level.

Something that seems increasingly the case is that people conflate objections to behavior with political stances.

On the left this might look like "You are accusing Biden of rape because you oppose his policies."

On the right this might look like "The investigation of Trump's dealings in Ukraine are the result of people trying to achieve political goals, they don't actually care about corruption at all."

It is disheartening to see this sort of thinking spread. Hootsuite's decision on whether to deal with ICE can be part of a policy centered on human rights. It's not inherently political, just because ICE currently operates under Trump (many objected to many of its behaviors under Obama as well).

(Incidentally, to the person I'm replying to, I'm not accusing you of sloppy thinking or anything else. I think it's very easy for all of us to fall into this trap because it has become so completely common in the U.S. to deploy rhetoric that all accusations we don't like are made for political reasons.)

comment 6y ago · link · parent

I’m saying people will use email in any decent sized group over any significant length of time and it is very good to encrypt that email by default.

If you’re saying Signal is strictly more secure I agee 100%. It’s just not suitable for using for large amounts of comms within a group. I wish they’d improve it and have even detailed features I think they should add (I made an HN thread when they got that donation from the whatsapp guy).

For now it’s not realistic to expect people to know how to put ALL sensitive comms in Signal. You need to build an environment where as many channels as possible are secure by default. Setting everyone up with GPG and using it by default actually works in group settings and is much better than not doing it. The “just use Signal” meme is wrong. Because you can’t. Not at high volumes.

(Also, metadata is a lot less important in the context of a group that openly associates with one another as a great many do. It does suck that subject lines leak. But better to encrypt the message body than throw up hands and give up because no perfect substitute exists. One learns not to put much info into subject lines. You can always just not use them. Signal does not have them.)

comment 6y ago · link · parent

Signal is great as an all in one solution if encrypted messaging is a hobby. It is also very good for mobile and encrypted occasional messages.

If you try to actually build a secure environment within a group that tries to maximize security while getting real work done you find you want to be encrypted by default at least with each other. Signal is pretty suboptimal for heavy volumes of messages. If you and I have three threads going they are all jumbled together. If I want to send to more than one person I have to whip out my phone and form a group and name it.

PGP is imperfect but with the right settings and defaults it is far better than having email default to clear text. And in any long term endeavor with more than a few people you will find you want email.

Signal is great for what it does. It is not designed to be a high volume working tool like email though.

1
456
28