HNHacker News
TopNewBestAskShowJobs

jernfrost

3,726 karma · joined July 23, 2012

submissionscomments
jernfrost··on The Objective-C Runtime and Swift Dynamism
Really just means a dynamic language just like smalltalk, LISP, python, Ruby etc. Like Objective-C all these allow you to add classes and method at runtime.
jernfrost··on Go 1.10 Beta 1 is released
Except adding tools for doing some kind of macros is much simpler in Go than C because the language is easier to parse. What stops you from using a preprocessor in Go? It is not really part of the compiler in C either.
jernfrost··on Go 1.10 Beta 1 is released
Use another language then. What is the point of different languages if they are supposed to have the same feature set? If you want native code type safety and generics use Rust instead. If that is too complicated use a more friendly type safety focused language like Swift.

Really you are spoiled for choice and there is no need to insist every language should follow your particular language philosophy.

jernfrost··on Student Loan Debt Is Now as Big as the U.S. Junk Bond Market
Good thing Trump and the republicans are tackling the problem then by giving students a tax break, oh wait... they gave them a tax hike. I guess those poor rich people in the US who have gotten the bulk of wealth creation since the 80s, where in desperate need of some tax cuts.

Got to give it to the republicans. Get poor people focused on muslims, Mexicans, blacks, gays etc while they let the rich empty their pockets.

A winning formula. You would have thought people had caught on to it by now.

jernfrost··on Student Loan Debt Is Now as Big as the U.S. Junk Bond Market
I am not Danish, but that is just super ignorant. One of the most widely used game engines, Unity3D is danish. They got several world beating companies making windmills. Creator of C++ programming language is danish.

Anyway it is a poor metric, especially compared to the US, because small countries are not well suited for consumer oriented tech companies such as Facebook. The home market is too small. Small Scandinavian countries tend to have tech companies in particular niches.

I am Norwegian myself and a lot of high tech here is related to the oil industry, making specialized software, hardware and instruments for it. Norway is world leader in this area, but few people outside the oil industry would know that.

Another problem for small countries is due to the small home market, our tech companies usually get bought by big American multinationals. That means a lot of tech done here happens under umbrella of some American company and doesn't show up as some independent Norwegian company.

Almost every single Norwegian tech company I have worked for has gotten bought out by some big American multinational. Video conferencing, secure authentication systems, 3D modeling of geology etc.

It is not unique to Scandinavian countries. Israel dubbed startup nation suffers the same problem. Few tech companies ever manage to get very big before they get bought by an American multinational. It is an issue that worries government there as being a country only made up of branches is not as profitable as having tech HQs.

jernfrost··on Student Loan Debt Is Now as Big as the U.S. Junk Bond Market
Totally, utterly disagree! I used to think exactly like this. I am from Norway and when I was young I was full of disdain for the Norwegian system, where government pays for all sorts of stuff. I was completely convinced like you that if only things were like in the US, where people have to pay lots of money to go to University, tell will be super serious students.

Then I went to the US to study....

Boy was I wrong!!! Having to pay for university had zero influence on the seriousness of the students I met. In fact I'd claim it was much worse than my experience from different European countries with free University.

What I realized is that if it is not government money it is going to be somebody elses money and that is frequently American parents. American students did not seem to be any more concerned about wasting their parents money than Norwegian students are concerned about wasting government money.

Again I think it is worse. Over the years, looking at this in more detail I think we are completely overestimating the effects of financial incentives. People are not really optimizing homo economicus. A lot of other factors matter equally much or more.

It is also about what society promotes and values. American society offers no respectable vocational training programs, and does not promote or value that path. Look at Switzerland and Germany which values this and provide great vocational schools. A lot more people go down that route and get skills to get well paid jobs without burying themselves in debt.

It is actually half decent in Norway as well since our system is closely modeled on the German system, however we have suffered from being too heavily influenced by the American view on education. Luckily there has been a push to change this and promote vocational training, causing more people to take that route.

However you can't get people in America to make sensible educational choices, when private schools are shamelessly misguiding student to reap more profits and society is pushing the idea that you can't make a good wage without going to college. Never mind the unhealthy American habit of thinking "anybody can be anything." American optimism can be great for launching google and facebook but it can be poisonous to people of average skill and talent who are deluded into thinking they can be anything they want as long as they work hard enough.

I think you got to work both on attitudes, what the school system offers, the values promoted. Financial incentives can be structured in many ways which doesn't need to punish people severely.

E.g. here in Norway you don't pay for school but you have living expenses, so you get a government loan and stipend to deal with that. As you pass classes they convert increasingly larger part of your student loans to grants. This gives a carrot to anybody to attempt to finish the study in reasonable time.

jernfrost··on Some of China's greatest advances depend heavily on local conditions
Exactly. That is kind of my point. Many europeans are able to participate in technical discussion in english even if our regular english is lacking. When I visited relatives in the US I noticed the problem that I could speak of computer science topics, history etc without problems, but struggled big time even naming the most basic food items. I knew what spam email was but was unaware that it was an actual food product until I visted wallmart and saw spam on the shelf which made laugh far more than perhaps such an observation reasonably warants.

I also can’t read a lot of regular prose very well. I can read any technical subject quite well though.

To be fair I was shocked when visiting the US how bad many Americans are at formulating themselves on paper.

jernfrost··on Some of China's greatest advances depend heavily on local conditions
What exactly to you base your assertions on? For me as a Norwegian it is perfectly natural to read HN. For many Europeans tech is primarly done in english. When studying at Uni we use english books in most tech fields. Most European countries are too small to rely exclusively on a home market and hence is used to doing businness abroad and working in english. I work for a Norewgian company but all our company wide emails are written in english and so is most documentation. In fact our software does not exist with an Norwegian language localization. And as with many other Norwegians and I suppose many other europeans I have no idea what most software concepts are called in my native language.
jernfrost··on Most popular Python packages now support Python 3
Of course code being data in Scheme you could easily write program that processes scheme code and transforms it to a different syntax. I would assume this would be harder with Python code.
jernfrost··on Most popular Python packages now support Python 3
However Python is getting attacked by new language in all areas where it is being used. Go attacks just one area.

Julia is a much better language for data science than Python. It was essentially designed for it, while for Python it was an afterthought.

Python has a head start today with a large selection of packages and mindshare, but as we've seen with Go, I think that will start eroding in the future.

Python simply can't keep up with the development pace and possibilities offered with Julia. For Data Science and AI packages in Python to have acceptable performance they need to be written in C/C++, this means slow development. Julia has high enough performance that all these packages can be developed in Julia itself. And this is what people in this area is observing. That package development is moving much faster in the Julia community than in Python.

You can also combine these packages in ways that are simply impossible to do in Python. The need to interface with C/C++ creates a lot of artificial restrictions. E.g. processing lots of data fast requires big NumPy buffers with plain data types.

In Julia you can e.g. create a an image buffer made up of color objects and process it fast.

Unlike Go, Julia offers the ability of a gradual transition to Julia from Python, since Python packages can be used in Julia.

jernfrost··on Most popular Python packages now support Python 3
I kind of like the idea of Rust, but I don't really have much belief in complex programming languages. C++ only has a large following because it piggy backed on C, which people already knew, then it gradually grew its complexity.

It is quite a different challenge to get people to use an entirely new language with high complexity.

Companies are going to be negative towards adopting a language with a steep learning curve for its employees. That represents too much risk and money.

I think Swift is a much better alternative to those who want something like Rust. Much easier to learn and you still got native code and strict typing without a need for a garbage collector.

People also know they can trust it in the sense that they know Apple supports it and all Apple development is switching to it. That takes a way a big risk factor for companies.

jernfrost··on Grad students protest GOP's tax hike and prepare to fight about tuition
People forget that you can do graduate programs in english in plenty of non-native english speaking countries. All graduate programs in the Netherlands e.g. are offered in english.

A reason to not forget this is that anglo-saxon countries usually have high tuition fees, while outside the anglo-saxon world you can frequently find tuition free or schools with very low tuition.

It is not like lower tuition means worse quality. I've a master partly both in the US and the Netherlands, and the dutch university was much better. Better facilities, better professors, better designed programs.

Of course top American universities are the best in the world, but once you go below that level, American universities are not necessarily that good. University quality varies much more widely in the US and UK e.g. In Scandinavian countries, the Netherlands, Germany etc, quality will be more even.

jernfrost··on Grad students protest GOP's tax hike and prepare to fight about tuition
Seriously American students should consider studying abroad. PhDs is a paid job in many countries. Also graduate and undergrad programs are tuition free, even for Americans in many European countries.

I think a problem is many Americans think they have the top universities in the world, but you forget that is really only the ivy league which most Americans will not be able to attend anyway.

I went to a decent university in the US, before going to the Netherlands instead. I got to say it was much better in the Netherlands for several reasons:

1. Most of my professors shockingly spoke BETTER english than at the US university. WHY? Because in the US there is an abundance of professors/teachers from foreign countries, especially from India and various asian countries. These professors often pronunciations of the english language which is hard for an American or European to understand. Dutch professors in contrast speak very clear english. Yes dutch is the native language, but at Master level all courses are taught in english if you don't speak dutch. For undergrad there are several special schools which do english only teaching.

2. More modern facilities. They had better equipped university library. Newer computers in the computer labs etc.

3. They teach you more about how to think. I felt US university was closer to a high school experience. A lot of hand holding and focused on learning lots of stuff. In the Netherlands it was less workload but harder problems. You spend more time thinking than doing.

4. More time with your professor and less time with student assistants and other non-professionals.

5. Easer to be a student in general. You don't need a car to get around. Dutch cities are very walk and bike friendly, and there is lots of public transportation.

6. More FREEDOM! For young people there seems to be way too many restrictions in the US. Can't drink until 21. Gender separated dormitories etc. I find that in the Netherlands and Europe in general you are treated more as an adult. You live in apartments with other students on campus (or off) and there are nobody going around enforcing lots of stupid rules.

jernfrost··on A Map Showing How Much Time It Takes English-Speakers to Learn Foreign Languages
In practice there will be a lot of other factors affecting the ease of learning, especially if you live in respective countries. Scandinavians and the Dutch pretty much all speak english and is internatuonally oriented so you don’t necessarily get that much practice speaking the native language as say in Italy or Spain.

My native Norwegian is somewhat harder to learn than similarities with english suggests, because dislects are widely spoken everywhere including radio and TV. In addition large number of other Scandinavians live here who speak their native language while interacting with Norwegians.

It means my American wife can’t often decide whether she is listening to a northern Norwegian dialect or e.g Swedish while listening to a Norwegian talk show.

jernfrost··on Show HN: Promptui – Rich UI elements for cli prompts in Go
While not quite the same, the REPL of the Julia programming language supports modes as plugins. Out of the box there is the Julia mode for writing julia code, shell mode for shell commands and help mode for getting help on functions. But I've seen lots of interesting ways of extending this.

E.g. one of the debuggers for Julia, Gallium simply adds some new modes. So you can be in stepping-through-code-mode and then at any time switch back to Julia mode and inspect variables at that point in the execution stack.

Another mode is a package mode being developed for the new Julia package manager. So when adding, removing, updating, creating etc packages you can go into package mode and get behavior relevant to working with packages.

I had the idea of creating a mode for a board game, e.g. a Settlers of Catan mode, which is focused on issuing commands relevant to that game.

jernfrost··on Norway Idea to Exit Oil Stocks Is ‘Shot Heard Around the World’
Saudi Arabia is quite different from Norway though as something like 70% of their economy is oil and 30% of Norway’s is. Saudi Arabia has made themselves insanely dependent on foreigners while Norway isn’t and can continue to function as a normal country after oil. Nothing is normal with Saudi Arabia.
jernfrost··on Haskell for Mac IDE
Sounds more like a religious belief than something which could be argued on merit. I use both Linux and macOS on a daily basis and there is just no question about which OS has the highest quality software eco system.

I like Unix, which is why I use Linux and macOS. Linux because macOS is not an option and work, and I dislike non Unix systems like Windows. I like to have access to a powerful CLI.

But lets face it. Once you step outside the CLI on Linux, it compares very poorly to macOS. Not only do you have far more choices for every type of app but most of those choices tend to be higher quality as well.

Now let me qualify what I mean by quality. Many Linux apps does in fact have a significant amount of functionality. You got quite extensive packages such as Gimp and Inkwell. However these frequently have poorly designed UIs or UIs which are completely different from other applications, and frequently integrate poorly with the rest of the OS.

You mentioned Sublime. Well guess what that came directly as a reaction to TextMate on macOS. There are dozens of these types of modern incarnations of vim and emacs on Mac. Fortunately now we have started getting some selection on Linux with sublime and atom. But it was kind of slow, and while both have quite good core functionality, they are a bit lacking in UI. You notice how a lot of successful apps on Linux have to rely on HTML based interfaces. Which means you kind of notice the UI is kind of slim. Last time I checked neither Sublime and Atom had any real UI for creating and modifying bundles/plugins.

jernfrost··on Haskell for Mac IDE
See that is why I eventually decided against Haskell. There are just too few Haskell jobs so investing that amount of time from a career perspective makes little sense. That leaves hobby projects. And it just does not seem to make sense to me to spend that much time on a hobby, when you got plenty of other powerful languages you can learn in a fraction of the time and do more useful stuff with.

As an academic project language it seems great, but for practical work I just don't see it.

I can do a fair amount of functional programming in Swift and Julia, but still make useful stuff without without an huge mental investment.

My life as a professional C++ programmer has made me very negative to anything involving unreasonable complexity.

jernfrost··on Norway Idea to Exit Oil Stocks Is ‘Shot Heard Around the World’
It is highly relevant though because it shows people are willing to buy electric at comparable price to ICE cars, even in a country with a spread out population and harsh climate.

Until the Norway experiment one could not know how much people care about using a fundamentally different car technology.

It shows that with likelyhood as EV prices drop sales will take off elsewhere.

jernfrost··on Kotlin/Native v0.4 released: Objective-C interop, WebAssembly and more
Is kotlin native reference counted like swift or do they use some form of garbage collection?

How do they deal with named arguments in Objective—C?

jernfrost··on PyAnnotate – Auto-generate type annotations for mypy
No I think what we are seeing is a lot more hybrid systems. Go is like a statically typed language with lots of dynamic features. Julia is a dynamically typed language with lots static typing features.

Paradigms are getting mixed too. Rust, Kotlin and Swift are all imperative languages with heavy functional inspiration.

Traditional statically typed OOP languages such as Java is what people want to get away from.

jernfrost··on Julia: A Modern Language for Modern ML [video]
I studied this at university and have not yet had any use for it. I work with systems doing computer visualization but almost never write graphics code. Most programming is more about integrating specialized stuff made by experts in a field.
jernfrost··on Plug-In EV Sales in Norway Up 48% in October, Overall Market Share at 43%
Talking about massive government incentives destorts reality. Electric cars are more expensive in Norway than in the US where they get a subsidy.

A more accurate description would be to say that there is a massive discouragement to buy fossile fuel cars in Norway.

jernfrost··on Saudi Money Fuels the Tech Industry. It’s Time to Ask Why
I disagree. The human rights abuses of Israel are if anything over reported. How often do you e.g. hear about Israeli abuses vs Sri Lanken, Indonesian etc?

No country had gotten as many UN resolutions or attempts of it against itself despite in the grand scheme of things they don’t make the top 10. Typically these resolutions are filed by arab countries with far worse humanitarian record.

jernfrost··on Saudi Money Fuels the Tech Industry. It’s Time to Ask Why
Fortunatly for the US there are checks and balances hindering Trump from doing most of the evil he wants to. Don’t be naive and think he would be nice if he had dictatorial powers.

He has already publicly complained that he can’t use the FBI for whatever he wants to, like going after his political opponents.

jernfrost··on Saudi Money Fuels the Tech Industry. It’s Time to Ask Why
It isn’t about ties but about history, culture, traditions and wealth.

Take my home country Norway, since we are on the list ;-) It is one of the richest countries in the world as well as most equal which tends to lower corruption. Poverty and inequality raise it.

But of course history and culture matters too. Norwegians have had a reputation for honesty for hundreds of years. In some ways it is self perpetuating. There was a story about a Norwegian sailor who had cheated a prostitute in a foreign city. This angered the other Norwegian sailors who made him go back to her next time the landed to apologize and pay her compensation. To them this guy was risking the reputation of all Norwegian sailors. Something they benefitted well from.

When you got a reputation you become invested in it.

jernfrost··on Finnish-born journalist: Americans make crucial mistake in how they look at life
Except it is always people who have never even tried it who claims it wont work elsewhere. Why not try proven ideas than some wacky idea you feel good about but which has never proven itself anywhere?

The nordic model is not based on companies being angeles who do good by their own accord. You need government, press, unions etc holding them accountable.

You can’t have frer for all capitalism and wait for private enterprise to start being nice and take social responsibility.

jernfrost··on Finnish-born journalist: Americans make crucial mistake in how they look at life
The point was that a lot of the redistribution is in principle just moving money from the the working age self to the young and older self.

I pay taxes which funds students today but I get that back later when other fund my kids to go to university.

The point is that the bulk of the money is paid by the middle class for services used by the middle class. You pay more in some stages of your life than you receive but you get more back in other stages.

That was the finnish point of looking at this hollistically.

jernfrost··on Finnish-born journalist: Americans make crucial mistake in how they look at life
I disagree, the “stability” the US provides is more than offset by the instability it causes. Vietnam, Afganistan, Iraq, Iran has all been pushed in unstable directions by the US. US global order is a total hit and miss. And this excludes all the instability the US has caused in South America with overthrowing governments and war on drugs.

Btw kind of ironic to lecturing a finn about security provided by the US as they were left on their own to fight the enormous red army. They still managed to kick ass though.

It is what we have seen in Iraq, Vietnam and Afganistan as well superpowers are not nearly as effective militarily as people think.

jernfrost··on Command line interfaces are reified UIs
That is very different from how I remember history. At least in Norway (and Nordic countries in general I presume), Apple never had much presence. Whatever they thought of the CLI, was rather irrelevant. Amiga and PC which was both popular in the 80s both had a command line.

I'd rather say that it was Windows which made the CLI look bad. They made people think that CLI means old fashion technology. Amiga like OS X had a window system and CLI from the beginning and so users did not view CLIs as old fashion technology but rather as one of several alternatives.

My experience from the time was that it was mainly PC Windows users who talked down CLIs because they viewed DOS as a antiquated. In some ways it makes sense as the DOS CLI has been horrible for decades and MS never put any effort into making it nice.

I'd say OS X could be thanked for resurrecting the CLI. I still encounter Windows developers who almost don't know about the CLI and who never uses it. I don't think you find and OS X developers in the same position.

← PreviousPage 8 of 24Next →