skysight-inc/HackerNews huggingface dataset:
At an absolute minimum I'd want support for non-structural types and sound variance of collections; typescript also lacks real support for sum types. Honestly these days I probably wouldn't bother with a language without higher-kinded types - once you think in them it becomes very tedious to be repeating the same code over and over because your language can't express the types the code actually is.

(Really I'd like polykindedness as well. I've only needed it once in over a decade of programming but it was such an intensely frustrating experience to need it and not have it)
> That's not the usecase talked about in this article, but it is a usecase that's important to me.

Yeah, and I agree with you 100%. But lot's of things that are great for log storage aren't appropriate for an API.
New Research: 35% of Competitive Local Keywords Have Local Pack Ads
Nice and clean! I wonder if it requires a lot of tweaking to make it work with letter (it might be as trivial as changing ``paper=a4'' in the cls.) If so, it might be worth the author's time to generalize it.
9 mph is awfully slow. Most cyclists who ride on a regular basis would be able to average around 15 mph. An hour each way is still a little long, but not terrible considering it doubles as a workout and obviates the need to visit a gym.
I see that the current version is 0.18. Curious if the language has become more stable with fewer breaking changes than when I looked at it two years ago.
The law is the law and no doubt they helped write it, but morally MS has no case--if the original PC already had a Win license.
This happens a lot with non-technical founders hiring contractors or employees.

At first, the goal is “build a prototype,” then it’s “make this an MVP,” and then finally “what’s left to get this to production?”

I don’t blame founders for this; I blame the programmers, especially if they’re consultants. This is a symptom of failure to manage expectations of stakeholders.

As a developer, your job is to show the stakeholders what the tradeoffs of different decisions are, both in terms of immediate time to results, and technical debt. If you hear “make a prototype,” you better ask for a projected lifetime of the prototype, and discuss with the stakeholders the tradeoffs of quickly building a prototype, making sure they understand it could mean more work later to productionize it, in exchange for less work up front.

Also as a developer, you should realize that nothing is ever a prototype. Don’t use “it’s a prototype” as an excuse for writing unmaintanable and insecure code, because eventually someone is going to want to add some features to it. Good luck telling the stakeholders after three months of building a prototype that you need to start from scratch because the code is awful. This is especially difficult if the prototype looks like a fully functioning product (with minimal features) to the stakeholders, but you as a developer know that under the hood it’s completelty unmaintainable.

It’s better to take the time up front to put in place whatever you need to write quality code, than it is to take shortcuts and write bad code. A good developer will be able to explain this to a stakeholder, instead of caving under pressure to rush a prototype.
any great books in particular that you would suggest of those you've read already?
Advantages of Cross Platform App Development for Businesses
"having things thrown at me from car windows (this has happened to every cyclist)"...I am genuinely shocked. I would not expect that from a third world banana republic, not a fact-of-life in the USA.
There was just a study about anxiety from lack of control for children. So, there is a lot of variables that play into it.
Why not Wix or Weebly etc.

Otherwise, smarterasp etc would readily handle low volume sites if you want to roll heavily customised sites... But almost by definition, I'd recommend against that. High work, low margin.
To be fair, when you send in a Surface for repair, they just send you a new unit because apparently even Microsoft can't repair the device!
It's very simple. There is no contradiction and no reason for name-calling. Go is terrible, but it's also one of the good things we have that can get shit done. Another - and quite notorious - example of "worse is better" principle at works.
I absolutely relate to this. But hey, knowing that there are other engineers out there feeling the same thing when they read HN makes me feel better. So, thanks.
Typically because families in the latter half of the 1900's wanted to move out of the crowded cities to raise their children, forming suburbs. We're left with that infrastructure with no real money to change it.
I also agree that space pirates are not a next-hundred-years problem...but disagree that with existing propulsion technology (or incremental, ordinary improvements on it in the next hundred years) we cannot become multi-planetary in the next hundred years.

Space piracy implies a rogue individual or group grabbing stuff in space and selling it on the black market for profit. I completely agree that's next to impossible. 17th-century piracy on the high seas relied on widely shared seafaring expertise, many potential customers and victims, and an ease of entry that's just not present in space.

But we've had people in space on the ISS continuously for more than a decade now, we landed on the moon half a century ago, and it's all getting constantly cheaper and easier.

I would be shocked and disappointed (moreso than I already am in our abandonment of the moon) if we didn't have a Mars base in a century.
Can a Low-Carbohydrate Diet Prevent or Treat Cancer?
Highly relevant little piece from several years ago here: https://bml.bioe.uic.edu/BML/Stuff/Stuff_files/biologist%20f...

I think about this sort of thing a lot, especially in regards to software. What is one's level of understanding of a system? Of the general architectural principles of similar systems in general? In software we still have incredibly crude tools to describe architecture which typically gloss over almost all relevant details. Between the raw source code and your typical multi-layer diagram there is a gulf of understanding and missed opportunity. Biology has an even worse problem, with even more complicated machinery that is even more difficult to understand (you can't simply step through code in a debugger to see what it's doing, and the "code" was evolved so you don't even really know what the operations are (such as gene expression and suppression)).
I do completely empathise with the parent, but you also have to consider it from the other perspective.

If those type of employers could get "named and shamed" based on someones verbal only, then it would be a dangerous society we live in. On the other hand, if it was written down, there would have been no problem in the first place.
This is partly why YC (and others) suggest being 2-3 cofounders in startups (the same idea should hold in hobbies as well): the social pressure to perform 'your end of the bargain' is enormous and can do wonders for motivation / productivity.
> The problem is that I can't declare the variable and set it's value as part of the same operation.

Care to elaborate? Consider the following:

var foo = func() struct{ Bar int } {
if os.Getenv("BAR") == "1" {
return struct{ Bar int }{1}
}
return struct{ Bar int }{2}
}()

Is there a case where the foo variable can be assigned to something other than one of the two conditional-dependent values?
>Seriously the COC is to keep toxic people like you away.

Then they did it right, I am most probably not going to donate to FreeBSD foundation first time in 5 years.
I was expecting David Bowie. The first two lines were a reference to him, so I'm not too disappointed
I mean withdrawing entire remaining annual leave to spend in the office the minimal time possible during the notice period.
...and crash into cars or trees .
I moved to the US for grad school (in the south). Biking to school, I remember people yelling at me, and people driving pickup trucks feigning to run into me and honking very loudly. Very confused as to the thought process going on in the mind of those people.
I saw the same at CircleCI with clojure. People want to use functional langs in real systems - we had a lot of Haskell lovers apply because "close enough". Way easier than hiring rails devs. One of the reasons I'm using OCaml/Elm in my new startup :)
You can also add electric assist to cargo bikes such as these, making them even easier to use.
> "I don’t want to be the guy that finds a bug in the compiler."

When I'm wearing by "be productive" hat, I don't, either, but how realistic is that? Unless you've memorized the bug database for your compiler, running into a known bug is just as frustrating as discovering a new one, and I'm pretty sure I've run into at least a few bugs in every compiler I've ever used. According to my comments, my current flagship program has workarounds for 5 (known) compiler bugs.

I'd love to use only stable bug-free compilers (maybe Forth?), but I'm not sure that's practical. A more reasonable solution is to only use the popular parts of languages -- though apparently I'm not so great at discerning what those are, either!
Agreed, providing a national defense for our allies is expensive and our allies have taken advantage of our defense umbrella. Spending more on social welfare programs is a lot easier if someone else is paying for your national defense.
Seems fair.

I guess I tend to come down more on the nature side of nature vs. culture, but I definitely think that the possibilities you listed are entirely plausible and I'm definitely open to being convinced with well-designed, at-least-not-obviously-partisan studies.

(Amusingly, depending on what language you use, blaming "compiler bug" first when your program crashes can actually be surprisingly credible. Languages like D, for instance, which combine a strong type system with a homebrew backend overburdened with features, make it a lot more plausible than you'd think.)

I entirely agree that neither of those are existential struggles, but we still have to rank them. Personally, I'd rather lose feminist progress than liberal progress, because a liberal, open-minded society will make it a lot easier for feminism to regain ground. What good if we win equality-of-outcome, if it loses us the soul of equal rights? I believe that we ought to think that #3 if #3 is true, and that we ought to think that #2 if #2 is true. To do this, we have to be able to discern truth without bias.

Inasmuch as #3 is true, free thought and civil discourse is its ally in whole.
Unless they plan to never fix it, they are going to eventually spend resources. Deadlines just force the issue of when those resources are spent. They are still spent either way.

And if they don't have any intention of ever fixing it, it basically doesn't matter when it is disclosed. So in that case, having a deadline is no worse.

Yes, sometimes you can be more efficient if you have your choice of when to do something, but that's usually a relatively minor effect.
GHC will coverage check any case equivalent to one you can write in Elm. You can just write more powerful types where GHC can't tell that your case is exhaustive so it warns about missing branches that won't ever actually be taken. I seem to remember that perfect exhaustive checking for some combination of Haskell extensions is undecidable.
You need to pay more attention to biking in NYC. Drivers HATE bikers to an incredibly unreasonable extent.
I like to ride my bike. I have had beer bottles and garbage thrown at me before.

Oh and people yelling get off the road...
Speaking of text conversion and git, I usually don't commit non-textual data aside from necessary files like image and audio assets, but one time I commited some PDFs in a "samples" directory for a tool I made to extract some data from a set of PDF files, and later I removed one of them and observed that when I typed "git show" the diff showed the text contents of the PDF which I find rather mind blowing because of how much trouble I had experienced extracting text and how git was casually showing me an ascii rendering of the document more or less with good representation of the layout of the document.

This in fact prompted me to further investigate the open source text extraction tools on the market and I ended up finding one that was better than the one I had selected at first and which I had then been building upon. Happily my own tools were built in such a way that I could reuse most of the code I had written while using the previous tool, and in fact during the rewrite I also realized that I could write the new code in a much cleaner way and so there were basically only upsides to switching tool and rewriting some of my code :)
Beginning Functional Programming
I've always thought it was a little unfair the amount of exposure and hype technologies like go or mongo get simply because a household brand or a big marketing budget is behind them. There are better technologies out there which languish because they don't have that benefit.

I think pouring cold water on excessive hype is, on balance, probably a good thing.
Why do people say "ASCII art" instead of text art? It has never had anything to do with ASCII, as the author acknowledges several times.
Just today's latest article:

https://arstechnica.com/science/2018/02/globally-women-tend-...

based on:

http://dx.doi.org/10.1177/0956797617741719
Management of Websites Standards ISO-IEC-IEEE 23026
Yes, I completely agree.
They're easily abused:

H = (C == 0 ? null : V == r ? (g - b) / C : V == g ? (b - r) / C + 2 : (r - b) / C + 4);
I assume that having gone through academic hell, at least as a grad student so as to get your PhD, is basically a hard requirement to do the sort of thing you do now in industry, though?

As a person without a PhD, my sense is that "research" as a field is Not For Me, even in industry, because the PhD is the critical factor that determines whether one is "researcher material".
> For that matter I’ve also never had anyone of any gender implore me to be careful when loading my children into a car, which statistically speaking is far more warranted.

This would be extremely surprising to me. Citation needed.
"I bought my boss two copies of The Mythical Man Month so that he could read it twice as fast." - @rkoutnik

https://twitter.com/RichRogersIoT/status/864963914483855360
Show HN: Check who, when and how is viewing your PDF
Copy of Declaration of Independence survived Civil War hidden behind wallpaper
I think I wholeheartedly agree with you. I guess my worry, which some people apparently don't think was worth bringing up, is that there are lots of people in this world with no moral analysis going on. I have no doubt there will be scientist following the code determined by society. But there are resourceful people of means who will just go about the business of doing whatever is best for them. The further this science goes, the easier it will be for them. I think of stem cells as this ground-breaking therapy that will one day be put to good use, for Joe Rogan it's something he had done several years ago to fix his shoulder (old news). I'm not saying he did anything questionable, just pointing out that the rich fly abroad to get treatments that are still being debated in the land they live in. I guess I just hope we find a way to toe a moral line that gets followed by peoplekind. Thanks Trudeau
1 hour tasks! Sound like a recent working environment I was in where I witnessed a poor permanent employee driven to booking 10 mins to a task by this mentality from management down. Also, none of them spoke to each other due to the time-micromanagement. No thanks.
The road + trees, plus walking path is x. So carving out a 10-12 feet bike lane (two ways) is a challenge.
Ask HN: Free and Open Source clone of a Web App. you wish existed?
There are lot of great Open Source Web. Apps out there. A lot are free, some aren't. Do you ever wish for a FOSS version of a web app. that you use a lot but doesn't have an open source version or clone ?
Well that's a bleak view
https://play.rust-lang.org/?gist=5b5df368283645fbec18c4fbaeb...

Click "release" and then "asm", you'll see that they are compiled to the exact same thing.
It probably sounds more computer-ey.
Cycling to work is in no way a replacement for proper full body workout.

It does not obviate the need to visit a gym.
An analysis of Tether: concerns over regulation outweigh those of solvency
Some people think cyclists don't belong on the road.
It didn't "get lost". Microsoft deliberately obscured it.

[Microsoft] “testified that a free restore CD was worth the same price as a new Windows operating system with a license. … This was false and inaccurate testimony provided by Microsoft in an attempt to set a precedent that will scare away future recyclers and refurbishers from reusing computers without first paying Microsoft again for another license. … Anyone successfully extending the life cycle of computers or diverting these computers from landfills for reuse in society is essentially standing in the way of Microsoft’s profits.”
A lot of the regulatory changes were explicitly racist. By “crowded” what many really meant was “full of those people” (and especially after Brown v. Board “my kids might have to go to school with those kids”). And regulations were intended to prevent poor racial minorities from following. (Starting with explicit rejection of minorities, but when that was found illegal switching to regulations that deliberately made suburban life more exclusive or expensive.)

Edit: For the downvoters, this is not a controversial summary. Start with e.g. https://www.smithsonianmag.com/history/how-federal-governmen... https://en.wikipedia.org/wiki/White_flight https://en.wikipedia.org/wiki/Residential_segregation_in_the... https://en.wikipedia.org/wiki/Exclusionary_zoning

There are ways we can start changing it though: change the zoning laws, change the tax laws, etc. Changes to the built infrastructure will slowly respond over the coming decades.
I agree. I attend a few meetings whose main purpose is to hear about what's going on with teams whose work is only tangentially related to mine. Sometimes it ends up being useful ("oh, you're stuck on XYZ problem? I think C works on that -- go ask him").
You wouldn’t wait 0.3s for the next page - that’d be 0.3s + a few seconds waiting for all the queries to return before showing anything. Streaming let’s you show results earlier.

Most likely the page loads instantly because the server is not doing any real work, which is offloaded to the client/js.
Why is that caused by "just doing the [FPU]"? It's not obvious to me how being in a different part of the chip/board lessens the problems with "rule-breaking" comparisons, could you expand?
Together with jq, jsonlines make for great logging.
People definitely differ on the "easier to read" part. I find the 4 line if statement version more difficult to read in most cases. When things get long, my favorite formatting for a c-style ternary is:

my_variable = (my_very_long_condition)
? value_if_my_condition_is_true
: value_if_my_condition_is_false;

This is 3 lines, but there is almost no noise, just the condition and alternate values. Also, the variable is never assigned a dummy value (or left unassigned).
Large amount of wealth linked to increased happiness; especially who earned it
Do you feel the same way about people using inhalers to treat Asthma?

There's no basis for believing I am fundamentally "the way I should be" struggling to focus on tasks, or that I should be at a disadvantage relative to my peers simply because they were born with more efficient brain chemistry.

What I enjoy is building things, and Adderall helps me do that. Neither myself nor society is made better by my spending days scrolling through HN or Reddit instead of building the things I want to build, or doing things I want to do.
For writing high-performance JavaScript, I'm really hoping that AssemblyScript takes off[1]. The project is still a bit in early stages, but theoretically, it can have the same role as Cython: you write JS/TS code, find the slow parts, and get perf improvements by adding stricter types to your code and changing your code to not use dynamic JS features. You can stay pretty much in JS rather than having to switch to a completely new language to get predictable fast performance.

[1] https://github.com/AssemblyScript/assemblyscript
Almost 10 years for me. The main thing from this post I would emphasize is the point about the company culture. My current employer is all remote, and so support for and integration of remote engineers is natural for them. By contrast I worked at another small company where the engineering management admitted remote employees only reluctantly. Meetings were a nightmare, and the remote attendees could often not even hear or see what was going on. Every now and then the SVP in charge of the group would remind us all that having remote employees meant "twice the effort for half the results." This was the same person who told me during our interview that he only considered remote engineers because it wasn't possible to find good engineers in the small southern city they were located in ("they" meaning the company; the SVP himself was located on the west coast and commuted). Needless to say I didn't last long there.
To some of us, popping 2 screws and replacing a speaker with one off of amazon or ebay is just what we do after breakfast on a weekend. There's no reason major parts of this $300+ device can't be repaired except that apple prefers you buy a new one. Same as with the batteries in the phones.

It's a complete waste of their customer's money (and thus time), as well as terrible for the environment.

Heck there are several little connectors in there that could come loose, you can't get at those either.

I can replace the screen on my e-ink kindle for $25, instead of $100 for a new one. Have done this about 8 times (lots of kindles lots of backpacking).

There's literally no reason that you can't get into this home pod easily except apple doesn't want you to. Looking at the design, there is no way you could argue that apple doesn't have the time or chops to make a repairable device. That thing is gorgeously made and has tons of completely custom components. They chose to do this.
I have to ask, do you guys have the catch 22. Of we want you to have worked in it professionally before? I'm being totally serious.

I worked in Elm, and loved it. I tried to get it in several positions I worked at. Applied to a few elm positions, but was told I needed prior professional experience. So moved all my personal projects to React so I could be more marketable. My day job is still using java server faces, or django templates largely.

As noted above there are pros and cons. But if you're using a fringe language/tech and allow your team to contribute back upstream. That helps immensely. One of the other stands out I can think of is Jane Street and OCaml.
I rode a bike back when riding a bike wasn't very popular. People who owned "10speeds" only had them so they could take them out on the weekend and show their friends they had a "10-speed".

I rode shoulders and shared dangerous roads --no shoulder a bike could ride on alongside a 40/45mph road.

I never had things thrown at me. Now, I never intentionally tried pissing drivers off, that's for sure. Or maybe I was lucky, or those drivers were especially nice. Possibly as well, since I was only the odd bike, it wasn't irritating drivers.

On the other hand, I do recall a few other odd cyclists "advising me" to keep some D-cells with me in case I had to hurl one at a car. I never carried one.

That said, people thought it was peculiar that I would ride a bike and not own a car. Basically, I just could not afford one at that time.
Lessons from MakerDAO that can be applied to any token-based project
I love cycling but a two-hour cycling commute is going to be impractical for even people who like to go to the gym.

And if we're talking average American commutes, a lot of them involve routes where you might have only freeways between you and your destination.