Better HN
topnewbestaskshowjobs
Log inSign up

lambda_obrien

312 karma · joined Nov 15, 2020 (6y ago) · 351 submissions

I like functional programming and red-headed comedians.

    whatever@lambda-obrien.com
(as in: "whatever" you want to address it to)
Submissions

comment 6y ago · link · parent

You should use Haskell and see what it can do, you can change the prelude easily, for instance.

The standard head function is partial, yes, but that's not a big deal at all.

comment 6y ago · link · parent

Honestly, in the Haskell world, no one really complains about broken APIs, it's actually pretty common for a library to change things in a breaking way. People tend to either use Nix or stack to deal with versioning or they just plan to refactor when they have to. I personally just started with Haskell, but I've switched a small tool from one streaming library to another and it was super easy even though each had a very different API.

Also, breaking API changes happen in every language, on every codebase, ask the time. At least with static types and a common linter I can refactor and be a hundred percent sure it works since it compiles, whereas in Python for example I can't be sure unless I add tests and stuff, even then...

comment 6y ago · link · parent

An effects system like this is more about controlling your own code and allowing for switching off implementations easily versus declaring what effects it has. Your declaration of effects on your function is saying, for example, "I need to output some text," and then in the caller of that function you have to do some action to "consume" that effect. For instance, your example might be an effect called "WriteState" and then you could call that function in a small unit test with a thin layer over a Map, in dev you could call it with a local sqlite db, and in prod you'd call it with your postgres or whatever. Each implementation shares a common interface, but does something different with the data. If you were writing a library, you'd give your public API as the base monad of your library, or as IO maybe, or even give a pure API. You should be dealing with the possible failures under that base context and then the user doesn't need to know about the inner failures.

The effects system effectively acts as an abstraction for some side effect, like an interface, and gets ride of a lot of the boilerplate code needed for mtl or custom transformer stacks.

Also, in strict typing it's pretty easy to refactor with modern linters and such, it actually makes refactoring an API change delightfully simple, just get rid of the red squiggle lines telling you you types are wrong.

comment 6y ago · link · parent

Must be a mansion-bulding contractor; he's scarcifying the market.

comment 6y ago · link · parent

Make your own 10x engineer by investing time and money into your engineers so they get 10x better. You can try to suss out which interviewee was the best, or you can define what makes a 10x engineer at your org and train your current employees to that level. Everyone's has their area where they are 10x, find that for your employees and bring it out.

comment 6y ago · link · parent

You can't just install OSX on any PC, so why would you think Linux would be that way? I purchased a System76 and have zero issues with anything. I use a Toshiba for work also running Pop OS, and it has some minor issues, but I expect that because it wasn't designed for Linux like my personal laptop. Everyone wants their cake and eat it too, they complain about lock-in, complain about Apple's phone-home features (last week!), and then they just say "well Linux is hard to setup once, so I don't want to try" and punt the issue.

If you want a good and easy Linux PC, then buy a PC designed for Linux, like you would a Macbook.

comment 6y ago · link · parent

Yes my point would have been better taken without that, sorry, his comment rubbed me the wrong way.

comment 6y ago · link · parent

I loved Frontpage, I used it when I was young (15?) to create an inordinate amount of websites that I ran on one of the IIS servers with Frontpage Extensions, and other doodads, on a computer in my house. That server software came with Windows NT 4.0, which I got in a package of Microsoft software (pretty much everything developer-related that MS sold) I got for free when I went to the MS dev conference in Phoenix (late 90's) because I thought it would be fun. I remember eating quail or some other small game bird at lunch and talking to the real developers who thought it was really cool that I was into computers and showed up at this fancy conference at 15. I don't remember barely any of the presentations, but I do recall seeing one ASP.NET presentation at the time showing an interactive page with a database and everything (whoa! it blew my mind) and I thought that the internet was going to be really cool someday soon after that.

I never became the superman techie that a lot of the folks here became after getting into computers that young, but this article reminded me of those happy days programming with a free version of Visual J++ (why god?!), so thank you.

On another note, as I looked up Visual J++, I read that it was sued out of existence by Sun in 2001, but Microsoft supported the MSJVM for J++ for security updates until 2007! Then, they created J# in order to give those developers a way to transition to .NET technologies, like C#, which was then supported until 2017. Can you imagine any other company supporting old, decrepit technologies like that other than Microsoft? I have a kinda newfound respect for them and their engineering culture of long-term support.

comment 6y ago · link · parent

That's cool as hell and why in the world are we all building stupid AI advertising platforms today?

comment 6y ago · link · parent

Not everything has to solve some problem, some things are for art, or love, or because you were bored.

comment 6y ago · link · parent

How do you think progress is made if not by failing and trying again?

and again, and again.... etc.

Of course, you're the "epic" engineer, so I bet you're really good at everything and never fail, right?

comment 6y ago · link · parent

I wish a research group would start from scratch and design the best PC and server hardware and software for today's world, not taking any backwards compatibility in mind, just pure, new stuff that's designed with all of today's advancements in mind.

comment 6y ago · link · parent

I'm tired of this argument: train your devs for the job you have for them, or if they're not trainable, then find them another position not doing stuff they are incapable of.

We're engineers, let's act like it and know our goddamn stuff, not dumb it down to the LCD.

comment 6y ago · link · parent

I just figured the shitty people are already shitty now, but a lot of people become better after they have kids, so it might be a net gain if more people had kids earlier, since they might become better people earlier. You are right there are shitty parents, but I think parenthood generally makes for a more mature person, on the statistical whole.

Either way, it would be nice if people had to think about the care and feeding of others more often, so they might be less selfish after having seen how important a job it is to take care of another human with care and respect. Maybe even if people could take care of the elderly, it's a similar struggle to take care of a very old and enfeebled person.

comment 6y ago · link · parent

I think you can already set an S3 bucket to charge the downloader for bandwidth, that's what I was talking about, the storage part is harder. The storage costs could be borne via some sharing agreements between the commercial interests and the pay customers where the infrastructure could be provided for smaller indexers (storage, compute) and in exchange the provider can use the data freely for their own services. Or, we could have a micropayments system that aggregates towards the end of the month, something open source and free to use, maybe a blockchain, this is actually one place that tokens on a blockchain could work as a semi-decentralized payment system between the parties in agreement in my "vision" or whatever you want to call it.

comment 6y ago · link · parent

I'm thinking more like search indexers with like 100k pages, in a specialized category like 3d printing or basketball. I can index things like those on my home PC, practically.

comment 6y ago · link · parent

It appears to be the case in a technical workflow sense, from the little I just read of Snowflake, but my proposal would be a much more open system than one under control of a single vendor. It'd be more like a set of standards for interoperation and a common data center so that the data is accessible under one roof. Maybe each entity could do specialized search as a service and the search aggregators would pay by providing some infrastructure to run the crawlers.

I don't personally think any system specification is impossible unless it goes against since mathematical law, so a really fast, distributed query system where there are a few hundred specialized providers for a single query is feasible. Imagine the aggregator does initial analysis to determine the category of search, like programming, news, or restaurant reviews, then sends the users query to a set of specialized providers that supply an index for that category, then fuse the results with some further analysis of the metadata returned. Then the user can also include or exclude the specialized providers at will.

You could also eliminate the aggregator as a service as simply make it a user application on the desktop, allowing for even more user control and maybe caching or something.

comment 6y ago · link · parent

I agree with most of the comments here as a semi-new father, so I won't rehash then, but I really wish more people could experience the emotions and struggles of parenthood sooner, I think it makes a person realize what's important in life and causes one to mature quickly. I think people would be nicer to one another if they could be a parent for a year, at least.

comment 6y ago · link · parent

Why couldn't several coordinating specialized search engines share their data via something like "charge the downloader" S3 buckets? Then you get an org like StackExchange who could provide indexed data from their site and the algorithms to search the data the most efficiently, GitHub can do the same for their specific zone of speciality, Amazon, etc.

Then anyone who wants to use the data can either copy it to their own S3 buckets to pay just once, or can use it with some sort of pay-as-you-go method. Anyone who runs a search engine can use the algorithms as a guide for the specific searches they are interested in for their site, or can just make their own.

You could trust the other indexers not to give you bad data, because you'd have some sort of legal agreement and technical standards that would ensure that they couldn't/wouldn't "poison the well" somehow with the data they provide. Further, if a bad actor was providing faulty data, the other actors would notice and kick them out of the group or just stop using their data.

It would have to be fully open source, I agree with the other parts of Drew's essay here, but I think we could share the index/data somehow if we got together and tried to think about it. We just need a standard for how we share the data.

1
89101112