HNHacker News
TopNewBestAskShowJobs

mrami

46 karma · joined August 8, 2017

submissionscomments
mrami··on Show HN: An opinionated and statically-typed TypeScript SDK generator
If anyone finds it useful, I have a Maven plugin that does something similar for Java (Java -> TypeScript)

For anybody that still uses Java. :D

https://github.com/BlueCircleSoftware/bluecircle-json-interf...

mrami··on Why is it easy to implement a Lisp?
Quadratic behavior is O(n^2) like bubblesort - triple the number of items to sort, and it takes 9x the time.

Really, the comment was referring to "accidentally quadratic" bugs, as documented here, for example: https://accidentallyquadratic.tumblr.com/

mrami··on An ultra-precise clock shows how to link the quantum world with gravity
A bit of a tangent, but boson vs. fermion is not a massless/massive split. There are massive bosons. Rather, it's a split on the qualities of the objects' spin, and thus whether they obey the Pauli exclusion principle.

https://en.wikipedia.org/wiki/Boson

mrami··on Ask HN: Tools you have made for yourself?
A tool that will read your Java REST endpoints, and make TypeScript interfaces and invocation functions, so you can pretend your React front-end is using DCE again like it's 1999.

https://github.com/BlueCircleSoftware/bluecircle-json-interf...

mrami··on Outrun: Execute local command using processing power of another Linux machine
This reminds me of playing with openMosix and ClusterKnoppix back in the day. The kernel would take care of migrating the processes and balancing the load automagically...
mrami··on Is the web getting slower?
The term for JS enabled pages used to be DHTML back in the day. You'd be talking about a static-server DHTML site. Or something like that. https://en.m.wikipedia.org/wiki/Dynamic_HTML
mrami··on Passionate kissing is not a human universal (2015)
Hands, lips, tip of tongue. "Mouthfeel" is as important to taste as flavor. Lips aren't for tasting either, why so many nerves? https://www.quora.com/Which-is-most-sensitive-part-of-the-hu...
mrami··on An Antique Toaster That's Better Than Today’s [video]
I imagine the solution is going to be some sort of parallel to open source, that I can't quite visualize atm.

Maybe the next generation beyond 3D printing will be able to do multi-component assembly tasks, and you can get/print your own high quality components, and assemble your own high quality toaster... Maybe

mrami··on Richard Stallman resigns from CSAIL at MIT
IIRC - it's from the yellow pages "let your fingers do the walking", although I could have made up that association.

https://m.youtube.com/watch?v=SYpJ1IgGoc0

mrami··on Visualizing and exploring sorting algorithms in two dimensions
Centaurs are multifaceted and live rich, complex inner lives.

https://commons.wikimedia.org/wiki/File:Achilleus_Lyra.jpg#/...

mrami··on Visualizing and exploring sorting algorithms in two dimensions
I'm not sure what conditions you have in mind, but in the selection sort, the comparisons are O(n^2), and the assignments are O(n).

If comparisons are a fixed, non-zero cost, and assignments are a fixed, non-zero cost, then the comparisons in your selection sort will always overwhelm the assignments, and I can tell you at exactly which input size.

https://gist.github.com/mrami4/56d6e234f34787b8c5daf543a299a...

mrami··on Visualizing and exploring sorting algorithms in two dimensions
> If swaps are the only thing you are counting, selection sort is O(n).

And if you ignore the bottom half of the centaur, it's just a dude playing a flute. :)

"In computer science, the time complexity is the computational complexity that describes the amount of time it takes to run an algorithm." [1] We shouldn't be confusing people that actually want to learn about this stuff.

[1] https://en.wikipedia.org/wiki/Time_complexity

mrami··on Visualizing and exploring sorting algorithms in two dimensions
Selection sort and insertion sort are not O(n) algorithms...
mrami··on Why we're ending support for MySQL
Funny, since you mention Postgres: 1996 is only PostgreSQL's first release. POSTGRES goes back even further [0]:

> POSTGRES has undergone several major releases since then. The first "demoware" system became operational in 1987 and was shown at the 1988 ACM-SIGMOD Conference. Version 1, described in The implementation of POSTGRES , was released to a few external users in June 1989. In response to a critique of the first rule system ( A commentary on the POSTGRES rules system ), the rule system was redesigned ( On Rules, Procedures, Caching and Views in Database Systems ), and Version 2 was released in June 1990 with the new rule system. Version 3 appeared in 1991 and added support for multiple storage managers, an improved query executor, and a rewritten rule system. For the most part, subsequent releases until Postgres95 (see below) focused on portability and reliability.

Your point stands, nonetheless. There are no whippersnappers present.

[0] https://www.postgresql.org/docs/9.3/history.html

mrami··on Ask HN: What was the Internet like before corporations got their hands on it?
My first experience on the Internet was when I got to college in the fall of 1992.

I had done lots of BBSing before that, and I treated the Internet the same way - a bunch of different tools to get the same sort of social experience.

Email w/ pine. BBS message boards became Usenet w/ trn. Gopher. Finding random people with finger, and chatting with ytalk. Once talked with a random girl named Thuy in Perth, which blew my mind at the time. Some shlub in the US sending messages live to Australia. Downloading all sorts of freeware from wuarchive.wustl.edu.

It felt smaller then, and something inviting (to me at least). You'd recognize email addresses from one corner popping into a new one, and it gave the whole Internet a sense of continuity. It was a place I wanted to interact with.

Usenet, in particular, was usually a pretty good source of information. As a matter of course, people attached their email address to each posting. And they usually only had one - HoTMaiL and its ilk wouldn't come around until '96 or so. If you saw an email address you recognized, you'd have an idea of trustability.

Today, I really don't contribute much. I don't surf r/new or whatever, so somebody else has usually said anything I want to say. C'est la vie.

mrami··on Letter of Recommendation: Old English
Modern 'street' poetry: https://www.urbandictionary.com/define.php?term=Danger%20Noo...
mrami··on Systemd is bad parsing
Yes, exactly. Coming from C++/Java, I immediately though, "wait, this is turned off in production?"

cf. http://www.cplusplus.com/reference/cassert/assert/

mrami··on Oracle Java SE 8 Release Updates
Hmm, Oracle JDK yes, but seems there will be no free version https://medium.com/codefx-weekly/no-free-java-lts-version-b8...

Personally, I've been transitioning my stuff to OpenJDK (probably should have a long time ago).

mrami··on Oracle Java SE 8 Release Updates
But this is only Java 8, right? Or am I misreading?
mrami··on SICP Goodness – Why you don't need looping constructs
To be fair, Scheme implements tail recursion, which converts properly prepared recursion into an iterative loop. Usually converting the recursive call into a GOTO. So if used correctly, recursion in scheme isn't a stack issue.

That said, I love my for loops, too.

mrami··on Introduction to LLVM [video]
At the time, I had a DSL I had written in C++, and I wanted to produce proper compiled binaries. I had started looking at the now defunct TenDRA - I was thinking it would be nice to compile to a "machine-independent binary" which could be converted to machine code on the actual runtime system. But soon after I found LLVM, and it seemed like a no-brainer comparatively.

I seem to remember that "machine-independent binaries" was Apple's first use of LLVM: distributing LLVM IR and having it be converted to machine code on the user's computer, back when they were supporting Motorola and Intel chips. And I think consequently that's how LLVM got a lot of its momentum.

mrami··on You Can’t Fire Equifax, but Your Employer Can
This isn't exactly a rebuttal, but how much are housing prices inflated by the fact that everybody's getting loans? How much would those $300k houses be worth without the mortgage industry? It seems to me that the housing market is caught in a self-reinforcing cycle where mortgages inflate prices, and now nobody can get on the treadmill. That doesn't seem like a unassailably good thing, or something that should just be accepted as "the way it is." (It may be the best of all possible worlds, but I've seen no evidence of that personally.)
mrami··on An argument for a new definition of color
"My response is to say that colors are not properties of objects (like the U.N. flag) or atmospheres (like the sky) but of perceptual processes—interactions which involve psychological subjects and physical objects."

I don't see a nod to Robert Pirsig in the article, but it reads like a textbook example of Dynamic Quality.

"I don't know how much thought passed before he arrived at this, but eventually he saw that Quality couldn't be independently related with either the subject or the object but could be found only in the relationship of the two with each other. It is the point at which subject and object meet."

Of course, he goes a little bit further after that. :)