skysight-inc/HackerNews huggingface dataset:
> Having everything in one file like this without breaking it into "sub modules" for various parts of the module means that you need to almost have a complete understanding of the module before working on it.

There's a balance to be struck here; you want to minimize the size of the code a developer has to understand to work on (or with) a given abstraction, but you don't want to split beyond that point, as it only makes the developer jump around files. In my experience (with Java in particular), current development trends involve splitting the code too much.
They don't really make a 'product' but Jane Street uses Ocaml for all their development.
> Nobody in business cares if you are doing proper AI or dumb curve fitting.

What is proper AI? It's all dumb curve fitting right now.
reminiscing about hobbiton.org now :P
Selling a lot of burgers encompasses much more than making good burgers. By the same token, good products entails much more than making a programming language choice.

Functional programming, at its heart, is about using self-imposed constraints to avoid certain classes of programming mistakes.

If your application domain doesn't have big consequences for these classes of programming mistakes, then it can seem like functional purity can be a luxury or frivolous. However, if your application domain suffers greatly from those classes of programming mistakes, such as distributed systems, then it may be worth it to consider what functional programming might buy you.

So yes, just because you use a functional programming language won't help you sell your widgets or make a great product. And you can spend lots of time fucking around with it for its own sake and still not sell widgets or make a great product. However, if you understand what its constraints buys you, then you can make your job of building these things in certain domains much easier.
> split a filename into parts

This is not something strings should do; you should be using URL instead. Foundation realized this long ago and has started deprecating string-based path APIs because treating a path as a string exposes fundamental misconceptions very quickly.

> extract regex matches

This is something that is being worked on/discussed, but has not been “solved” yet.
This is pretty cool, balloob! I love data (when kept on-premises in my possession), so I generally collect a lot of data in both my house and my car, but I haven't really put in the effort to try and make anything meaningful of it. (I have dreams of making pretty heat maps of my location data someday.) Having nifty reporting tools right in Home Assistant should be really neat for folks who use it.
Thus proving that the closer you look at money the weirder it gets. A bit like religion in a way. Which, I suppose, is unremarkable given that belief/faith plays such a significant role in both.
The lambdas in the name are a bit much. On another note, this looks really cool! The mindmap demo in particular[0] is really impressive (and probably requires lots of screwing around with terminal fonts). Evaluating files as Clojure (with the e key in normal mode) is obviously stolen from Emacs, but probably better since more people know Clojure than they do elisp. I'm continually impressed with the number and quality of alternative text editors out there and I hope that this one gets the critical mass userbase necessary to sustain its development and ensure that every language imaginable supports it as a development environment, as Emacs and Vim do now.

[0]: https://github.com/mogenslund/liquid#salza-%CE%BBiquid-text-...
A single instance of hate speech can hurt many people, few directly but many indirectly. The compound effect is that a relatively small group of "assholes" cause damage to a lot of innocents. Saying that a platform is free of political bias does not free that platform from the guilt, and consequences, of having helped them do so.

Every individual that is harmed by an agitator is exactly as deserving of protection as every individual that is harmed by deplatforming. Guess which group is more numerous?

There may be some undeserved damage among people labeled as "assholes", but there is A LOT of undeserved damage among the innocent victims of hate speech. It seems that you consider the former group more deserving of protection (due to number, value, or something else?) than the later. Be my guest, but I do not.
Language implementors are a very special case. Their effort is O(1) while the other two are O(amount of code in the language). In any case, I don't see what your point is.

---

I think you're conflating things too: NLL is defined in terms of a CFG, which happens to be MIR at the moment, but if the current MIR is insufficient for some task, it can still be fundamentally changed, with the NLL semantics handled specially, e.g. with a multi-step lowering, like HIR in Rustc.

The mid-level IRs chosen for a compiler are in service of the high-level language and its tools (like formal/static analysis), not the other way around.

In fact, a static analysis or formal reasoning tool likely needs more information than fits into a compiler/optimisation-focused IR. (You see this even with LLVM IR vs MIR and SIL etc: LLVM IR can't hold enough info for the front-end to do everything.)
I don’t agree with you. Inside a country homeless people will generally tend to stick together in specific regions. This is what is happening here, what you can see in San Francisco is a consequence of many decisions the US has been taking over the years, no universal health care being one.

The housing situation in many places is bad, it doesn’t mean it will attract homeless people from all over the place.
Agreed, but that’s why I prefer writing code that has no global state. In Erlang, for example, it’s unusual (and the language lends itself via pattern matching to having short function clauses).

It gets a little tiresome threading the relevant state to every function that needs it, but it’s worthwhile in the end.
Well, the first 500-ish lines of that 1500-line file are comments, and there are block comments throughout, too...

You did, to be fair, say that comments at the top shouldn't count. But I think that depends a lot on personal (and language) style towards multiple files and multiple units within a file - for instance, none of this code is object-oriented, and comments above each class make sense in an object-oriented language. I think as the language gets more concise - Go is a lot more concise than the Apollo assembly language - you're going to need to have the same amount of prose to explain what you're doing but a lot fewer lines of code to get anything done, and it makes sense to have comments above each function or each block, because that's really the comparable unit.
As a general response to all of the hatred directed at dealerships, I'd mention that I've experienced none of this nonsense when leasing a car.
have you ever considered acting in good faith on the internet?
Yup. They are propositions to solve the problem (prop C) but hilariously people are against them because it means more money being spent. Screw the people living in the streets if that means I can’t buy the next iPhone am I right?
Battle Royale is not a game. They are talking about the game category. Battle Royale wasn't even a huge film, more a cult film.
One of the interesting possible uses for 'thermal mass', with photovoltaics, is as an energy storage method for cooling purposes. I've seen whitepapers and prototypes of systems designed to implement the following for office building air conditioning, with no batteries, and no energy drawn back from the grid:

1) Build a big PV array

2) Use the surplus energy from the PV array during the day to chill water into a big block of ice.

3) Use a standard chilled-water-loop air conditioner system to run the AC chillers off the meltwater from the giant block of ice.

4) Repeat next day.

In this example the big block of ice becomes the energy storage method (surplus kWh used to freeze water), and is 'consumed' when it melts.

https://www.greentechmedia.com/articles/read/ice-energy-laun...

https://cleantechnica.com/2016/11/25/time-shift-excess-solar...
If you a proffesional chef, I would hope you are fammilar with other methods of producing burgerz than McDonalds, even if they don't sell as well.

Haskell is a highly opinionated reasearch language. This makes it a great languages to talk about. People could make many of the same points with, say Scala or Ocaml, but because those languages arent as opinionated, it is harder to use them as a basis for discussion than a language which is heavily opinionated about the subject in question.
The word “blame” carries a different connotation than the word “unacceptable” which was used in this thread.
And it's really much worse than that. The aim should never be for maximum production of IP "at all costs" - it should be for maximum benefit at minimum cost.

So if an IP horizon of (say) 30 years started to make a tiny but measurable impact on the kind of IP produced - then that's a sign that 30 years is likely waaaay too long! because the benefits are virtually nil, yet the costs are huge - not just culturally, but even economically, due to lack of competition (being an exclusionary right and all).

Not to mention there's this straw-man that the alternative to copyright is assumed to implicitly be a complete free-for all. I mean you could think up at least a dozen alternatives - like region limited copyrights; mandatory limited-price licensing; copyrights only for human beings, not legal entities; continually rising registration costs; production subsidies; citation and consumption based subsidies; retrospective rewards based on popular vote or a council of experts, etc etc etc - and you could easily use many of those ideas simultaneously - potentially including a very short old-style copyright term.

Also, technology has advanced somewhat since copyright came to be. Numerical models that would have been heinously impractical hundreds of years ago may now be trivially practical; i.e. accounting for each and every consumer of a piece of art may now actually be practical.

TL;DR: If society wants to support creators even at the cost to others - an entirely reasonable aim - it's a fallacy to compare copyright-as-is-today to anarchy.
No it wasn't, more of a meh.
>That being said, I hope the dealership model dies and these blood sucking, anti competitive conmen have to fall to a more honest way of living

What an ignorant comment.

A huge portion of dealerships are small business owners in small towns. Honest, middle class people who care about serving customers.

This is all beside the point that Tesla has in no way proven their system works. In fact, as time goes on they are adopting dealer methods. There's a reason for that; people want to deal with locals.
> I suppose, if you're particularly worried about the one-node situation

This algorithm doesn't work if you have multiple nodes, so I don't think any other situation is relevant here.

> There's no particular reason to make the fields separate. If you mask out the top bit of the random number then they can share and also make overflow effectively impossible

Yes, this is what I meant by reserving some bits.

> It's also worth noting that there are two bits that go completely unused. They could eat overflow if the layout was slightly rearranged.

Yeah, it's super weird they didn't do that. I guess they just really like having a power of two number of bits.
KlasterMe Beta Testing
I mean, is that not similar to how liquor and bar licensing works? A dispensary is not all that different from the other vices.
Most platforms let you choose a frequency cap. Its only the bad/cheap platforms that serve unlimited or high f-caps. For retargeting I typically do 1 ad per 1 hour, with a max of 10 a day and 250/mo.
Where did you find that line? Are you sure you are reading the correct paper? https://www.bmj.com/content/362/bmj.k3225

At the end of the paper it says: Genetic predisposition to lower vitamin D levels and estimated calcium intake from dairy sources were not associated with fracture risk
All things aside, I found the concept of Cake to be really fitting for these types of posts/conversations. Whomever made it and got traction for it -- good job!
> A naive look at this and my head is screaming that this file is way too big, has way too many branches and nested if statements. A naive look at this and my head is screaming that this file is way too big, has way too many branches and nested if statements, has a lot of "pointless comments" that just describe what the line or few lines around it is doing, and has a lot of "logic" in the comments which could quickly become outdated or wrong compared to the actual code.

I actually understood it immediately when I read it. There's something to be said when you have a decent roadmap for debugging critical code segments. It's not just software maintenance here, it's for the "holy crap something went wrong and we can't understand how we got here!" moments.
Mental/drug problems -> provide facilities. Look at what Zurich did.
> In this case, I have a feeling that is a pro not a con. Because this file is so core to the system, and has so much complexity, that breaking it up into smaller parts could cause a dev to feel like they understand it only to find out they don't after it's released.

I think you're on the money here. This was done intentionally, to ensure that devs understand the whole thing before making changes, because the functionality is so critical and so easy to mess up.

Also, breaking single logical things up into smaller files (rather than into a composition of smaller logical things) just leads to unneccessary file hopping and wrecks locality of reference for the dev.
Same here. I have a Google Voice number that I give out to companies and a personal number that only my friends get. I haven't had a spam or robocall in at least a decade. Google Voice is nice too because I have it to screen all calls. The ones from actual people include a nice "Call from..." with the accompanying voice of the person identifying themselves.
Ask HN: How can individuals or small businesses acquire IP addresses?
Due to IPv4 address exhaustion and the IPv6 lack of adoption, the days of owning your own IP address range seem long gone...

It's no longer feasible for individuals or small businesses to purchase their own ranges, mainly because of the high cost, barrier to entry, responsibilities, etc.

Do any solutions exist that allow you to purchase small numbers of IP addresses for your own permanent use?

I understand that due to limitations in BGP, you can't announce a single IP address to a different location than the rest of the range. However, could there be an overlay protocol or service that allows this to happen?

Renting IPs from hosting services like Linode or AWS doesn't count, as they are locked-in to the hosting provider and you don't own them directly.

Any suggestions?
I keep hoping Brave will be a success in this regard; their browser has a wallet built in for micro-paying the sites one visits: https://brave.com/faq-rewards/#what-is-brave-rewards
I’m not paying to pee. I’d rather pee in the street.
Oppositional defiant disorder
Oh yes. I bought a vehicle with AudiCare. The dealership tried putting it on the invoice as "Other Aftermarket". When I went to use AudiCare the vehicle wasn't registered and they said that that fee was for a "second key" (even though it was 2-3 times the cost of a replacement key, and matched to the dollar the amount for AudiCare). Even when I showed them a photo of their breakdown pre-invoice that said, "AudiCare $xxx" and I'd signed it next to the sales managers signature they still balked at honoring it until I made enough of a loud fuss in their showroom in front of other customers.
That's exactly my point,is there a law that defines what constitutes enough brain functionality to classify this as torture.

This isn't about you or anyone else supporting animal torture,don't imply my saying things I did not. This is about clearly defining what constitutes animal torture and unethical practices are and implementing most severe of consequences for those who cross it.

The debate is need for a clearly defined line and consequences,not where it should be drawn.
So Russia ays they were forced to develop it after Trump withdrew from the nuclear treaty. 2 months is some impressive R&D time, huh?
Yeah..totally. I only meant “server” in so far as some machine where you want the “source of truth” to be. I personally want my source of truth to be my home iMac since it has a big drive that gets real-time backed up to backblaze. So, for me, I view that iMac as my “server”. In truth it can be any machine you are willing to leave an account logged into.
I'm not sure what you mean by 'cheap' but the actual cost to buy retargeting ads is almost always significantly more expensive except for really large brands.

A regular sized furniture store might have 100k unique devices in their retargeting pool, but a prospecting (acqusition) audience (lets say in-market for furniture) would be 500k+ unique devices.
So how come I read people on Twitter asking Elon why they were forced to sign papers before being able to see the car they bought? Or having to follow a delivery damage checklist to make sure they don't buy damaged goods? That's unheard of in my life of buying cars from anyone else.
Ask HN: Why does there seem to be a widespread disdain for Quora on Hacker News?
> Wasn't the DAO rolled back?

The beauty of The DAO was that it wasn't even a hack or an attack. It was merely somebody cleverly exploiting a loophole in the contract everybody agreed to. After all in crypto-utopia "Code Is Law" and there is no interpretation of a contract outside of the code. The irony is the only actual theft that occurred was the ethereum devs rolling back the contract to save their own asses.

The DAO single handedly proved that the blockchain is fully mutable and is certainly not trustless or censorship resistant. Hanging your hat on any blockchain requires you to trust the developers and miners to do you well. And if they don't... good luck getting your voice heard.
Also Papuans ate their dead instead of burying or incinerating them and that's how they got prion diseases. Not all traditions are good.
The zombie robot argument: No evidence shows automation reduces jobs
Great! Now let’s add a juggling performance to whiteboard interviews.
The benefit is that Swift is a fantastic language that people want to use outside of macOS and iOS development. Remember that languages and frameworks aren’t the same thing.

You can still use Swift to plug into other GUI frameworks and libraries to make apps on other platforms, and there are a few Swift frameworks for writing web applications such as Vapor and IBM Kitura.

Swift on Linux lacks the Objective-C runtime and therefore the Objective-C-based Foundation and Cocoa frameworks. In their place, the Swift project has been creating a pure Swift replacement.

Linux is also an easy target for cross-platform development in Swift, given that it’s a POSIX OS and a first—class host for LLVM. It’s a great testbed for the pure Swift and cross-platform developmen and tooling before it eventually moves to Windows as a first-class Swift platform.
Ignoring the initial boilerplate (license, imports) and the request to preserve the verbose ("space shuttle") style, the first line is:

// Design:
//
// [... 4 paragraphs of English prose
// explaining goals and intent... ]

That's exactly the type of comment that should be at the beginning of most files!
So basically the firm acted really scummy, and probably intended to go after 2k the entire time, but sold it to the artists as 'clothing line'...Is anyone really surprised?
You really deserve a "fuck off you judgemental wanker".

Bring on the down votes.

Not all of us think that HN etiquette (and lack of sense of humour) is perfect, I come here for interest in the subjects covered, not for the snottiness of the attitudes of other users.
> It's certainly not that McDonald's makes better (or "simpler") hamburgers

At the risk of derailing the thread, that would be the lesson I wish people would take away from that example.

Criticizing fast food like that is dumb signalling IMO; McDonald's!hamburger != homemade!hamburger. It's an entirely different product sharing the same name and some of the ingredients. It tastes different, and has a different form factor. People like this, even if many don't want to admit it to others (or themselves). When I go for a McD's hamburger instead of a foodtruck one, or when I say I prefer chain restaurant pizza over a home made one, it's because I want a different product. Treating the two as the same category is like treating tea and coffee as the same thing.
If you want them, let me know and I can drop my hazel rules somewhere. They aren’t wildly complex, but it can be slightly confusing if you’ve never used hazel before. Once you see the rules it‘s super obvious what’s going on.
With all due respect, I wouldn't consider Golang any less opinionated than Haskell, just into a completely different direction. Whether or not that's a good thing: I don't know.
Everytime I bring up prop C here people tell me that spending more money on the problem won't improve anything, that these people are just never going to leave the streets and that they want to be there. The amount of bullshit people are willing to make up just so that they can live with the fact that there are people dying next to their tesla.
Relevant related post about a NetBeans distribution, which I haven't used but if you're in this thread then it will likely interest you:

> Show HN: CoolBeans, an IDE distribution - http://coolbeans.xyz/
https://news.ycombinator.com/item?id=18758867
Keith Jarrett is pretty famous for throwing tantrums over audience noises.
Yeh they are banned. Why would the CCP not band all those books. It paints them in a bad light.
You're literally just saying things, and saying them doesn't make this true.

Copyright law on this sort of thing is incredibly straightforward and completely settled. This isn't like recreating the likeness of someone, including their tattoos (another story popular in the past day on HN), this is clear cut commercial usage of someone else's copyrighted work, and his tolerance of non-commercial usage by the person photographed doesn't have any impact whatsoever on whether or not a different entity has the ability to use it to promote their clothing line.

This is an incredibly open and shut case with tens of thousands (probably hundreds of thousands, actually) of cases worth of clear cut precedent.
Here is what I do, and it works well:

1. Call the dealer and ask for the internet sales manager.

2. Tell the manager exactly what you want (many people are not able to do this accurately and consistently).

3. Ask for the out-the-door price.

4. Repeat for any number of dealers that you are willing to drive to.

5. Buy from the dealer you choose.

I usually get several quotes within $100 or so of each other. At that point, I just pick the place with a low price and in a location that I prefer to pick up my car.
The country needs to throw money at the problem at this point. This is getting really bad.
So your idea of mainstream is whatever videos you happen to run across?

Now, I do agree with you, but more to do with your point about the flossy dance, since seeing stuff from games leak into real life consistently is pretty mainstream.
You do get to tell me you disagree with my answer. You don't get to tell me what my answer is, sorry dude.
Any article about economy that mentions "Keynes" is not worth the bytes it is being stored on.
It takes a true #2 to recognize a #2.

Otherwise, it's just crazy risky to put failures on your resume kind of thing.

Corporations are full of people competing on a political level, failure is just a stain, so risk taking is minimal. In a regular corporation you could get looked at very oddly for suggesting anything outside of normative.