HNHacker News
TopNewBestAskShowJobs

setra

4,029 karma · joined October 12, 2015

submissionscomments
setra··on Server under attack
You could put your site behind cloudflare and enable one of the antispam modes. It is intended for this purpose. They have a nice free tier.
setra··on Martin Shkreli is found guilty of securities fraud
The article seems to have been extended from a couple paragraphs to a long piece. The url stayed identical.
setra··on Martin Shkreli is found guilty of securities fraud
Note that this does not have anything to do with his pricing of pharmaceuticals. From a different article:

"Prosecutors say Shkreli looted his drug company to pay back investors in two failed hedge funds he ran. The defense says investors got their original investments back and even made hefty profits."

setra··on Ask HN: What are the closest programming language from logic?
Wolfram's Mathematica / Alpha has an extremely wide range of operations at your disposal.

https://www.wolfram.com/mathematica/

setra··on Things that Idris improves things over Haskell
The core is based on a different type theory. It is very unlikely that the part of GHC called "Haskell core" will make such a massive change.

In general the Idris type inference is not nearly as good as Haskells. I don't mean this in the "dependent type inference is undecidable" sense, but instead just generally.

Idris is also strict instead of lazy like Haskell. This is good or bad depending on who you ask. Very unlikely for it to change in Haskell though.

Many of the other issues are the issues with every small language. Community size and libraries.

setra··on LXD 2.14 has been released
I find that it is most similar to freeBSD jails. Type a command to spin up a container and its just like having a linux VM I can SSH into. With its own file system and everything.
setra··on Historical Data of Minimum Wage Increases and Employment Levels (2016) [pdf]
These are all environments designed for humans. Vending machines already get warm food, and fresh coffee to me. The system once automated will not look just like the current human paradigm.
setra··on Ask HN: Should I learn Haskell or OCaml?
Haskell is generally more popular, and has more active feature development. I imagine Haskell is probably the better choice in the general case.

There are a few differences such as Haskell being Lazy and OCaml being strict. The general way you write code will be similar as the semantics (besides strictness) and syntax are fairly similar.

There are specific cases where the ecosystem may have better tools for X or Y subject however this would depend on the particular domain.

setra··on Forall.js: Idris-like static types and invariant checks for JavaScript
This is really not like the Idris type system at all. Its not even really like the Haskell type system. This is basically doing the same thing as the Haskell quickcheck library but running it at compile time. AKA just testing a function with a few values.
setra··on U.S. launches cruise missile strike on Syria after chemical weapons attack
They did X horrid thing! Lets go invade Y country!. If you disagree you are a horrid person!

A extreme claim against something is not proof of the claim itself. Regardless of it happening this kind of FOR THE CHILDREN social shaming is unacceptable.

Lets not jump the gun on repeated military campaigns.

setra··on Show HN: Magnetico – self-hosted BitTorrent DHT search engine suite
>Its not really decentralized

Every DHT has to be bootstrapped from something. If that makes it not distributed then i'm not sure anything is. You can use whatever bootstrap nodes you want by changing the values.

setra··on Haskell Concepts in One Sentence
I was translating your quote to c++ lingo not defining functions.

return takes a value and returns an instance of your template class containing the value.

bind takes an instance of your (template class A) a function of (type a ) to (template class B) and produces a value of (template class B).

If you don't care about the "laws" your definitions are expected to follow thats it.

The idea bind is you take a value of a template class such as (std::vector<Int> type) the value {3}, then based on value either pass it to the next function or return it.

one definition of bind would be if the vector is empty return it, if its not empty pass it to this function and return the result of that function.

return is just a way of placing a value into your template container class.

setra··on Haskell Concepts in One Sentence
If I define this in c++ lingo words barely change.

You take a c++ parent class with two virtual methods. These methods are "return" and "bind". In order to implement a monad instance you must derive from this parents class and implement the virtual methods.

setra··on Haskell Concepts in One Sentence
(>>=) :: m a -> (a -> m b) -> m b

(>>) :: m a -> m b -> m b

There are two forms of bind.

The >> function is used when the function does not need the value produced by the first monadic operator.

setra··on Backtracking, Interleaving, and Terminating Monad Transformers (2005) [pdf]
Pruning can be implemented by just not computing a part of a stream based on some predicate.

If you want some kind of global state of the current results then you just pass around the current calculated states. Pure FP has many simple solutions for passing around state.

setra··on Backtracking, Interleaving, and Terminating Monad Transformers (2005) [pdf]
Perhaps you misunderstand what this is doing? Or perhaps I misunderstand what you mean.

If all you want is to take some kind of search function or backtracking system that generates a stream of results then combining the sub branches is trivial. If you represent a stream as a list and use something like Haskell that is lazy, then all you have to do is literally combine the streams.

myStreamGenerator1 p1 ++ myStreamGenerator2 p2

if you want a different search strategy you can intersperse.

concat . intersperse (mySG1 p1) (mySG2 p2)

the cases being DFS and BFS

setra··on Borderwise: App and a lawyer for immigrants, for $1
I think if you use chrome it can auto translate things very easily.
setra··on My CAD software called home, and no-one answered, so it shut down
Reddit response:

You guys know, it just dawned on me that beyond the practicalities of the question, we're looking at something incredibly significant here. That is, if this story is in fact genuine and not just a fictious commentary on subscription models.

So first of all... a software activation model from the '80s? Twenty years before Microsoft "invented" it? Back when even ARPANet was only a curiosity? That's something incredibly awesome. Key disks, manual code entry, and serial or parallel hardware keys were a thing - remote activation, now that's something else entirely.

It's like finding an ancient Egyptian D&D-like rulebook and twenty sided dice dating from the age of pharaoh Ramses. Not "impossible" as such, just extremely remarkable and improbable.

Then, the other wonder here is not that the activation server stopped, it's that it stopped in twenty-effing-seventeen. I'd have expected that BBS to have been scrapped around '95 at the latest. Also, phone numbers - where I grew up, phone number formats and area codes have changed three times since the '80s, a BBS call coded in the '80s would have stopped working before '91.

Also, I cannot imagine the change-averseness of someone who keeps using a CAD suite from the '80s (probably on some ancient XT or DEC or something weird and irreplacable) well into the 2010s. I mean my dad is the image of conservativeness, and yet even he migrated all his CAD work from the old DOS tools over to Windows-based, modern stuff when Windows NT 4.0 came out...

I'm not saying "it's not true", just that if it is, this should probably be on some Youtube computing history show as the curiosity of the year.

setra··on Is Java Our Best Choice to Protect Our Code?
We are getting to a large number of posts for a HN thread. An actual conversation system would be easier if you have more questions. Email me at "anthracitelight@gmail.com" if you want to enter a chatroom.
setra··on Is Java Our Best Choice to Protect Our Code?
I honestly don't know much about the R library system. You could probably make a GUI in python pretty easily. Then write a basic server program that runs your R code when you get a processing request. The python app would then call the server which would run your R script. Depends on the domain of your project though really.
setra··on Is Java Our Best Choice to Protect Our Code?
If you have a super secret algorithm that you want to keep safe an okay programmer could make some server code to run it pretty easily (the protocol part, cant comment on your algorithm). Then you would write a GUI interface program in whatever language you want for the desktop that calls out to the server over TCP or something for the processing.
setra··on Is Java Our Best Choice to Protect Our Code?
As far as java vs R. Java is very common, and has a large number of libraries for building things like servers, and interfaces. It is probably faster computation wise as well. However if computation speed is not a major concern, and you are doing mostly statistic works, then switching to something you are not familiar with is probably not a good idea. Use the right tool depending on what you want. There is a reason so many statistics people use R / python, and not c.
setra··on Is Java Our Best Choice to Protect Our Code?
At the extreme end if a user runs something on their computer they can extract the algorithms. The only real way to prevent people from reverse engineering is running all meaningful code on your own hardware.

Python is particularly easy to reverse engineer because you usually ship the source code which is then interpreted. They can read what you wrote literally. If you did a compiled variant this is not as bad.

Java can be reverse engineered as the code is just in time compiled. For example minecraft modding communities would routinely extract the source code repack it with new features.

There are always things you can do to make it harder (using a very optimized binary out of GCC with symbols stripped). But the general rule is, if you don't want them to have it, don't give it to them. Run it personally and give them a remote interface.

setra··on Balaji Srinivasan, who may run the FDA for Trump, hates the FDA
Your comment is so misleading. That is not a Pi for $150. That is a Pi as a convenient interface to a 50 Gigahash ASIC, and blockchain store.
setra··on Introducing: The Facebook Journalism Project
I'm sure this will be used for censoring political groups, and alternative media. As mainstream news sources become less popular / reputable they have really started pushing for methods to censor their opposition.
setra··on Ask HN: Do you believe the Russia hacking story?
Watching various media outlets they tend to say something along the lines of: "Russia hacked the election!". Reporting on the hack of the DNC / Podesta, followed by saying that Russia attempted to influence the US election. Both of which are documented and true events. However they attempt to conflate the two in presentation into the literal "Russia hacked John Podesta and Clinton to help Trump". Which is not justified from the limited amount of information available. Similarly they will talk about voting machine hacks, followed by Russia's attempted influence, and in presentation giving you the impression that "Russia hacked US voting machines".
setra··on Unhackable Servers
What even is this? I see some beagleboards in the 3d renderings provided as the backgrounds. However little information on anything related to their claim or what they do.
setra··on Adding up the cost of uncontrolled immigration
Followed by the cost of the government paying for their children (who will be citizens), because they certainly won't be able to afford to take care of several children on those low wage jobs. School, and welfare programs will add up, even if the parents themselves don't get much. The average cost per student in public school is $10,615 per year alone With Utah being on the low end with $6,000 per year.
setra··on ProtonMail Bridge Beta (for Visionaries) Adds IMAP Support
This is big news! Those of us who have been using protonmail have be waiting since the beginning for the ability to use clients.
setra··on IQ is only a minor factor in success
IQ and education level are well correlated. It would be odd if that did not also correlate with success.
← PreviousPage 2 of 6Next →