HNHacker News
TopNewBestAskShowJobs

nostalgeek

488 karma · joined March 9, 2018

submissionscomments
nostalgeek··on Go 1.11 and Beyond
> Macros are a cop out of language design. They mean "everybody do what you want and create your own language, we don't care anymore".

I prefer safe AST based macro than runtime reflection like Go has. The latter is actually a cop-out, unlike the former in the context of type safety at compile time.

nostalgeek··on The Python scientific stack, compiled to WebAssembly
> I guess we need an in-browser package management like npm?

It exists and it's called bower.

nostalgeek··on End of Greek Aid Package as Country Faces Demographic Crisis
> Liberalism itself isn't right wing at all.

Classical liberalism is considered right wing in Europe because most of the the classical liberals are also culturally conservative (against gay marriage ect...) and globalist. Although plenty of socialists are not that open either. It's just a weird mix and really depend on the situation of each countries.

The "far right" is also most of the time anti-liberal, and sometimes even adopt socialist stances on matters such as public administrations, anti-privatization, universal healthcare... while making immigration policies their first concern.

The politics of Europe and USA are very different at the national level. In Europe people change sides more often and there is room for a 3rd, 4th main party unlike the 2 party system in US.

nostalgeek··on What else is in Go 1.11?
Yes it's bad UX on mobile, here you go:

https://raw.githubusercontent.com/mvdan/talks/master/2018/go...

nostalgeek··on 1/0 = 0
AFAIK Javascript does this as well.
nostalgeek··on Ryanair strike hits 55,000 customers across Europe
> That's the business model of most of EU's cheap air companies. E.g. EasyJet "allows" you one piece of luggage on board, but unless you're EasyJet Plus (i.e. pay extra), good luck actually taking it with you on board with any sort of predictability or regularity.

And Ryan Air takes it to a whole new level. At least easy jet planes don't feel like they are going to break in the middle of the flight.

nostalgeek··on Ryanair strike hits 55,000 customers across Europe
> so they did build up some trust for me (and others)

let's not pretend they don't try to rip customers off with hidden or gotcha fees, because they do. Their whole business model is based on bait+switch. You said they did "build trust" but at the same time you are saying " I know their procedures", of course, because if you are not careful you'll pay some bullshit fees. It's just one of the worst plane company in western Europe.

And they are not that cheap since their planes often only land not in main airports but ones in the middle of nowhere so you often have to add the cost of transport to your actual destination which is often not that cheap.

nostalgeek··on TypeScript is nearly half as popular as JavaScript for React apps
> You don't need Typescript to use JSX without React. Plugging my own isomorphic-jsx project: https://github.com/TheKnarf/isomorphic-jsx

Yes but since I use Typescript static analysis as well: 2 birds, one stone.

nostalgeek··on Clear defensive programming with Go using Verifier library
I believe the point of the OP is, you don't need the verifier library at first place. This is one of these dependencies that offer very little for the cost of adding a new dependency to a project.
nostalgeek··on Clear defensive programming with Go using Verifier library
If only there were some features in some computer languages or type systems that allowed to eliminate 99% of these kind of errors AT COMPILE TIME, making these kind of libraries redundant... but Go is so simple "you don't need all that" because sophisticated type systems "are just too hard", just do it all at runtime instead...
nostalgeek··on TypeScript is nearly half as popular as JavaScript for React apps
> I've used Flow in 2016 and getting it to work on code editors was a huge pain.

Typescript also has support for js-doc style type declarations, at a basic level, IMHO it's less painful to use than Flow. Does Flow even has a compiler that doesn't rely on OCaml?

https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...

nostalgeek··on TypeScript is nearly half as popular as JavaScript for React apps
I actually use JSX without React thanks to Typescript, I wrote an HTML builder myself (anybody can write one, it's easy) and it's quite handy since I don't have to rely on any framework/view library anymore.
nostalgeek··on Going Serverless: From Common Lisp and CGI to AWS Lambda and API Gateway
Because it has a generous free tier, that's it. As soon as one does really heavy work with these systems cost start to get extremely high. There is nothing new with this, it's just worker queues, with a warm up/ shut down AND extreme vendor lock in when it comes to services you can query from lambda.

https://medium.com/@amiram_26122/the-hidden-costs-of-serverl...

https://cloudncode.blog/2018/03/22/is-aws-lambda-expensive-t...

nostalgeek··on Study Finds Increased Incarceration Has Marginal-To-Zero Impact on Crime
> Clearly the system you advocate is an abject failure at preventing crime, maybe it's time to open yourself up to new processes? It literally can't get much worse.

I advocated for nothing, if you read my message I'm not saying one system is better than the other. I'm just saying adopting the nordic model isn't going to work with a society with such a level of violence like the USA.

> People don't want to be criminals, they want to live, but they don't all know how.

Plenty of people want to make money the easiest way possible, and if it involves committing crimes like murdering people they'll do that. You are assuming everybody is like you and follow basic humanism. Well some don't.

nostalgeek··on Study Finds Increased Incarceration Has Marginal-To-Zero Impact on Crime
> [citation needed]

Norway doesn't have a network of violent gangs sitting in their prisons.

> I'm not sure you can call the Canadian

Canada is mostly on the path to copy US when it comes to gang violence.

nostalgeek··on Study Finds Increased Incarceration Has Marginal-To-Zero Impact on Crime
> The US prison system and the harsh police also contribute to violence, people are more violent because you are violent with them, it works as a feedback loop.

chicken and egg problem. I don't think US society was ever "not violent". It isn't more violent today than it was in the 80's at least.

nostalgeek··on Study Finds Increased Incarceration Has Marginal-To-Zero Impact on Crime
> There other countries where incarceration works, for example Norway [1]

The Nordic model works in Norway because of Norway's society and culture. It wouldn't work in US, or South Africa or El Salvador because of what level of violence is deemed acceptable in those countries.

You can try to transpose the Nordic model in US all you want it is not going to work because these are different societies bound by different civil contracts and cultures.

Plenty of societies and countries have a prison system that doesn't focus on rehabilitation,at all, yet the level of violence is still inferior to US by a long shot.

nostalgeek··on Google Plans to Launch Censored Search Engine in China, Leaked Documents Reveal
I disagree, facts do exist, the truth has always been a valuable asset for the ones who knows it. This is what most modern journalists or glorified bloggers don't get.
nostalgeek··on Google Plans to Launch Censored Search Engine in China, Leaked Documents Reveal
Who decides what Junk is? who guards the guardians?
nostalgeek··on I created the exact same app in React and Vue
No, i'm not smart, I'm just not ignorant. Learning Django isn't going to make you learn HTTP spec for instance, you know what i'm saying? the same way, learning Angular OR Vue.js will not make you understand how event bubbling or event delegation works. plenty of "full stack" front-end developers out there who know nothing about the DOM.
nostalgeek··on I created the exact same app in React and Vue
> Oh my goodness, please no.

You don't educate developers to good practices just by abstracting the hard things. You don't need to use React/Angular/Whatever to manage state the right way in a front-end application. You don't need a framework to make code maintainable or testable, or you're just saying front-end developers are so incompetent and undisciplined they need a framework. No they don't, just like one doesn't need a framework like Rails or Spring or Django to write a server app.

> React/Angular/framework-whatever are glorious angels protecting us from the tyranny of half-baked, poorly thought out approaches to frontend development.

No they are not, they are making the developer ignorant of the underlying DOM architecture.

nostalgeek··on Serverless, Inc. lands $10M Series A to build serverless dev platform
> I don't understand the knee-jerk opposition people have to serverless architectures

because it's purely a marketing concern, it means nothing from an architectural standpoint, it"s a buzzword, like 'cloud', 'nosql', 'web 2.0' or 'the blockchain'.

nostalgeek··on I created the exact same app in React and Vue
> I think there is still space for one more framework to rule them all.

People should learn to write apps with the DOM, that's the framework to rule them all and it's already in the browser. There no need for a framework to write apps that follow the unidirectional dataflow principle. That principle just need to be taught, like MVC or SOLID.

nostalgeek··on Ask HN: My Microsoft account has been suspended by Microsoft without details
> - "Do more with Microsoft Edge!" (this one shows up when you change your default browser)

lol, "do more ..." a browser that doesn't even support basic API like EventTarget or CustomEvent constructors. they learned nothing since IE debacle.

nostalgeek··on Is WebAssembly the Return of Java Applets and Flash?
Chrome browser is only 50% of Electron. The other 50% is a complete nodejs distribution which allows access to the OS filesystem, network, anything Java or .NET can do on a desktop... So no, it's not just a browser web app. Electron is absolutely native to the OS is runs on.
nostalgeek··on Is WebAssembly the Return of Java Applets and Flash?
> Flash player had a open access spec and there was more than just the Adobe Flash Player as implementations.

No, the compiler maybe, Action Script maybe, but not the player. The player is entirely closed source and there is no open spec for the player. Or you need to show it to me.

> there was more than just the Adobe Flash Player as implementations.

Only Adobe's implementation could run all swf files. Scaleform was not an alternative flash player. Any attempt at creating an alternative and feature complete flash player failed.

Flash the tech is not open, at all.

nostalgeek··on Is WebAssembly the Return of Java Applets and Flash?
https://github.com/mozilla/shumway

is supposed to be an implementation of the Flash VM in typescript, But it can't even run in latest Firefox browser anymore apparently and no commits from 2 years.

nostalgeek··on Is WebAssembly the Return of Java Applets and Flash?
> The product was originally called Adobe Edge, and it was rolled into Adobe Animate.

Not Adobe Edge was killed dead, it was not rolled into Adobe Animate. Edge did export animation with jQuery and DOM element, while Adobe Animate exports animations in pure canvas.

nostalgeek··on Is WebAssembly the Return of Java Applets and Flash?
> Macromedia Flash keyframe animation was great even for technical users who didn't know animation. However, as soon as you wanted any kind of interactivity you had to start learning a new scripting language and that was painful for everyone.

Not really. Action Script has always been close to Javascript/JScript.Net and now Typescript, it is the same syntax. In fact ActionScript 3 was supposed to be the template for ECMASCRIPT 4, before it was abandoned.

nostalgeek··on Is WebAssembly the Return of Java Applets and Flash?
TLDR; no, because WebAssembly use browser API, when Flash and Applets do not. There is nothing that can be done in WASM that cannot be done with Javascript API wise, whereas Flash was able to do socket programming 10 years before webosockets and peer-to-peer 15 years before WebRTC.
Page 1 of 5Next →