Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 11y ago · link · parent

I think a decent solution is to have a shell alternative that defines interfaces for known programs (much like autocomplete scripts do now).

I know ls returns a list of files, so I should be able to use that. I don't know foo, so it's basically string -> string or whatever, but if an entrepreneuring spirit does know about foo, he could write an abstraction layer for it.

The trick is making a simple interface for that

comment 11y ago · link · parent

Isn't this a pretty good argument against shell scripts? I feel like we've advanced far enough in PL research to think of something a bit safer

comment 11y ago · link · parent

no snark, do you have a snippet you enjoy looking at in perl?

comment 11y ago · link · parent

I think GP's issue is that they walked back and apologized, not that they invited the person to begin with.

comment 11y ago · link · parent

yeah, really ruined all those wonderful trust in the 1900's. Really hate cheap steel.

comment 11y ago · link · parent

can someone explain the non-warrant requirements of the 4th amendment abroad? I don't seem to be grokking how that's reasoned out

comment 11y ago · link · parent

I'm kind of interested in knowing why you don't think that there isn't an isomorphism along the ordering of the monad transformers. Wouldn't it just be a question of rebuilding combinators so that they're targetting the right depth? Or am I missing something

comment 11y ago · link · parent

This talks about the O(n)-ness of length, but I don't see the rationale for the O(n)-ness of pop. Maybe I'm missing something?

comment 11y ago · link · parent

This seems like a pretty fundamental issue though. I'd feel like any systems programmer worth their weight in salt would know that yo can build an O(1) pop on a queue.

comment 11y ago · link · parent

Your comment isn't wrong in itself. For any GC you can write some program that exploits its weaknesses

But you could deal with this bug in various different ways. For example, here you could be implementing erlang queues so that the length is stored, instead of checking the length. You could implement hibernation differently. You could implement popping differently. There are probably ideas from people who know more than nothing about erlang.

Anyways, I don't think this particular issue was really an issue with the concept of a GC'd language, more of a specific bug issue.

comment 11y ago · link · parent

This mentions the killing aspects of games multiple times, and does make me wonder if we can make more games that aren't about overt violence.

I know a lot exist, but it feels like if a game has some "story-ness" to it (so not a God game, but something with a narrative), and it has more than a minimum of mechanics (unlike puzzle/adventure games) , the mechanics end up having to be about violence. Maybe I'm wanting to come to this conclusion

comment 11y ago · link · parent

so how does this key help? How can you know this isn't backdoored somehow?

comment 11y ago · link · parent

This is about an implementation issue, not really a language issue. Like saying a bug in GHC proves we need to think about types

That said, it's an interesting breakdown of the bug, though I wonder how they arrived to it (Wouldn't have minded more steps in the discovery phase)

comment 11y ago · link · parent

> Moreover when I say "buy my beer to drink whilst you watch the Super Bowl" I'm not using the trademark, I'm using a description of a sports event

I think you would also have a difficult time convincing a judge you were not talking about the NFL championship. Application of the law is rarely a "check the dictionary, guys, he's technically correct" thing. Especially when it comes to things like trademark violations (where it's about confusion to the general public)

comment 11y ago · link · parent

could you give an example of things it encourages me to do?

comment 11y ago · link · parent

>The "city" is in no position to impose paid parking on private property.

so many other things are imposed on private property, so I don't see why suddenly paid parking is the "limit'

5477.

IRS 20-factor Test [pdf](angelo.edu ↗)

2 points · by rtpg · 11y ago · discuss

comment 11y ago · link · parent

but how can I know that this payment gateway is legitimately going to go towards WhatSim's account? Going from HTTP to HTTPS basically makes anything about this a crapshoot

comment 11y ago · link · parent

if this is an issue, send a letter to the FCC and a copy of this to your IT dep't or something (anonymised from a gmail account maybe?)

comment 11y ago · link · parent

It's so weird to me that in a world of more asynchronicity than ever we want to bring Haskell to strict-land.

On the opposite end, there is so much boilerplate optimisation out there to get around the strictness of other programming languages that would be solved with a non-strict mode

comment 11y ago · link · parent

>Since a non-profit entity makes no profit, it pays no taxes

Is this true in the strictest sense? I mean I've seen a lot of non-profits make more money than they spend, but they're somewhat obligated to reinvest the money next year.

My impression was that non-profit was sort of a "pinky promise" about how you'll use your profits (with the IRS flying in if this is not the case)

comment 11y ago · link · parent

One alternative is they spend that money on more employees (or raise the salaries of the employees)

The $160 billion is in easily liquidated assets (which is basically the same as cash for companies of this size), it's still being more or less useless economically.

This might come off as being a bit "waaah companies aren't allowed to be successful", but on a social responsibility level I don't get how you justify holding on to over $80 billion.

Obviously the US tax system also has things about it that contribute to this state of affairs. But even if the money could be brought back into the US tax-free , do you think Apple would be spending it? I don't know. Again, waaah Apple isn't allowed to be successful.

comment 11y ago · link · parent

This is about revenue, but every time I see Apple's financial statements, I remember that Apple (as of June 2014) has 160 billion dollars in cash. 2 years of _revenue_ (not operating expenses, mind you, but quite a bit more). I think Bill Gates was all about having enough cash to run the company without a single sale for a year, but apparently they have a 20% profit margin, so we're looking at almost 30 months where they could continue to spend everything, not get a single dime, and be "fine".

If that's not an example of the absolute failure of trickle-down economics, I don't know what is.

comment 11y ago · link · parent

You do realise that node.js is basically just V8 right? You kind of need a Javascript runtime for your browser anyways.

Chrome and FF had a decent amount of memory leaks "despite" being written in C++

comment 11y ago · link · parent

do you know of which ones exactly? I was looking into using an old kindle for such a think, but couldn't figure out a straightforward way of pushing data onto it

comment 11y ago · link · parent

An FP language doesn't preclude non-FP code, just like OOP doesn't preclude ... procedural code? I'm not sure what the opposite would be but it exists (think Matlab code).

I would argue that the lisps are not very functional languages (both in the importance of effects and the style of code I've seen written in lisps), but Scala provides for a lot of FP assurances (val over var, good FP-y libs), and people in the community value effectlessness. So I'm comfortable calling Scala a FP language.

comment 11y ago · link · parent

I'm in enough places without easy access to outlets. Even in a restaurant (like a Denny's or something) where I'll go without that many outlets.

At least the starbucks around my area don't have that many plugs either.

Another advantage of having such a long battery life is that I basically can go anywhere after work (where I do have a charger) and not worry about plugging it in at all until the next day. Also, not having to carry around my charger makes carrying around my laptop great.

It's definitely a priority thing, and also dependent on lifestyle. In college there were power outlets basically everywhere so I didn't have the issue, but ever since I've started working in various spots not having to look for the power outlet has been a net benefit.

comment 11y ago · link · parent

working almost 40 hours of week for only one company as a contractor _is_ illegal. In the eyes of the IRS you are an employee, not a contractor. But this is illegal for the employer rather than the employee in this case.

comment 11y ago · link · parent

I've had some Dell and HP laptops (and a super old thinkpad, but that one worked alright given it couldn't really do much), and have had extremely bad driver issues. The big one has been the graphics card, but also flaky wifi, and even sound card issues! Battery life was always an issue (I would have 4 hours on windows, only an hour and change on linux), but I think that was linked to graphics card issues.

Having issues with a sound card gives me flashback to windows 95.

1
182183184
225