HNHacker News
TopNewBestAskShowJobs

jsjolen

146 karma · joined December 3, 2016

submissionscomments
jsjolen··on What Does a Coder Do If They Can't Type?
If what you have is actually tendinitis in your elbows then that's fixable through physical therapy (progressively heavier slow loading of the joint in the form of concentric-only single-joint movements).
jsjolen··on Why Generics?
I've decided that it's the same as having a simply-typed lambda calculus with one type (*) and function types living inside of your type system. Is this correct at all?
jsjolen··on Running an eInk Display with Elixir, Scenic and Nerves
I recently purchased a Kindle to restart my interest in reading and of course the first thing I did was to figure out how to develop my own software for it.

It turns out that the Kindle runs an embedded version of Java without a GC. This seems to have stifled the development quite a bit, so it's really cool to see how Raspberry-Pi/Inky homebrew is becoming a thing.

jsjolen··on A List of Hacker News's Undocumented Features and Behaviors
Does anyone know if 50 was the original karma limit for downvoting? I'm asking because I've always thought it was 50 and was surprised I was wrong by a factor of 10 :-).
jsjolen··on Why I think Haskell is the best general purpose language as of June 22 2019
Yeah, you're right that in some manners JS's promises do extend the semantics of a monad (notably in its impl. of return) but it is a monad though:

function bindPromise(p, f) { return p.then(f); } function returnPromise(a) { return new Promise.resolve(a); }

Proof of the laws left as an exercise to the reader :).

But yes, you are correct that promises do quite a bit more than only being a monad, for example because of how they treat errors.

EDIT: I concede, I am wrong! https://buzzdecafe.github.io/2018/04/10/no-promises-are-not-...

jsjolen··on Why I think Haskell is the best general purpose language as of June 22 2019
Javascript programmers seem to have no problem using a monad every day (promises), and they are huge fans of do-notation in the from of async/await. Imperative programmers do not seem to have an issue with the idea of assignment, why are monads problematic?

By "combinator" do you mean combinator as in the combinator pattern?

I have no idea what value your comment brings us except a way for people who already agree with you to give you upvotes, and what's the point in that?

jsjolen··on 8chan served with search warrant [pdf]
It's meant to look like a joke on the surface. I was a big fan of the "feels good man" comic (Pepe the frog) but I wouldn't deny that it's been co-opted by the far right. Also, kekistan is a way worse joke than "feels good man".
jsjolen··on The Wrong Right Way
Does CASH Music do the same thing but gratis and FLOSS?

https://github.com/cashmusic

EDIT: Nah, not really. CASH Music gives a platform, Drip is for connecting platforms.

jsjolen··on Why I Don't Like Golang (2016)
Don't worry, it pretty much isn't possible to do so without semantics which will basically make your program "drift" during run-time away from what a newly compiled program would do.

EDIT: Assuming inlining and call-by-value struct is a possibility.

jsjolen··on Less Processed Meat, More Plant-Based Foods May Boost Longevity
>Many things happen and none of them are magical. The glycemic index of a raw fruit isn't the same as a juice from the same fruit for example, you don't get the fibers, &c.

Only if you buy a juice concentrate. Making your own juice is equivalent to chewing an orange.

>You're free to believe what you want. A slime of chicken skin, fat and ligaments isn't digested the same way as a chunk of chicken breast. The nutritional values are just a small part of a big equation.

Of course not, I'm not arguing for that. What I am arguing for is that there's nothing inherently unhealthy about eating any of those things, and that offal is actually very nutritious.

>That's another side of my point, they evolved on that diet, most people didn't. Do you think the lifestyle of the average first worlder has anything to do with inuit lifestyle?

If an American adopted the diet of an inuit in such a way that their caloric needs are satisfied then I doubt it would matter. It is definitely possible that the inuit have evolved in some ways to accomodate for their diet, do you have any sources for that?

jsjolen··on Why I Don't Like Golang (2016)
If the size of a struct is changed through hot-code reloading then how does the runtime react?
jsjolen··on Less Processed Meat, More Plant-Based Foods May Boost Longevity
I don't believe that this matters. Why would it? Offal has great nutritional value. The inuit did perfectly well on an all-meat diet. The issue is more likely curing with nitrites and smoking.

>It's like eating a fruit vs drinking a juice

Another thing that doesn't matter. What exactly do you think magically happens when you put an orange into a blender and mix with a bit of water that would make it lose its nutritional value?

jsjolen··on Less Processed Meat, More Plant-Based Foods May Boost Longevity
Perhaps we can judge the statements on the evidence behind them?

The reason that processed meat (that is meats which are smoked, salted, etc.) is recommended to not be eaten is because it has been shown to be carcinogenic.

The egg thing is based on the idea (I actually don't know enough to know if this is correct or not) that dietary cholesterol intake affects blood cholesterol levels, and eggs have a bit of dietary cholesterol in them.

I get that we're not very educated within this area but perhaps we should stay quiet then? What's the point in writing comments on HN about things we know very little about?

jsjolen··on IQ rates are dropping in many developed countries
There has been an obesity increase in all western countries, including Norway.

Here's the best source I have on Norway: https://www.fhi.no/nettpub/hin/levevaner/overvekt-og-fedme/

I wouldn't disregard it as a factor.

jsjolen··on IQ rates are dropping in many developed countries
I wonder if obesity can be at least partly to blame.

Anecdotally I've talked to some teachers who say that children's media nowadays is simplified. Less 'difficult' words, always explaining (never leaving things to be figured out by the consumer).

jsjolen··on Numpy Clone in Common Lisp
Hi!

Just a last comment, we're kind of off the rails here. I'll read your reply but I won't answer, I hope you're OK with that!

> What you're presenting is a Turing tarpit kind of argument - totally irrelevant to anybody with a sense for practicality.

Not really, it requires very little to do so. Here's how to make fixnum arithmetic go wroom-wroom: https://plaster.tymoon.eu/view/1380#1380

Does that look like a Turing tar-pit to you? Scroll down to the assembly.

I mean, I do think that C-level safety is unacceptable though.

> [...] and half wrong. Yes, UNIX is the worst useable OS, except all the alternatives.

You happen to be misinformed regarding this. It's true today regarding Linux perhaps, but not back then.

>I suggest actually reading my comments, because I've written all that I have to say. In one sentence,

Didn't you just say that empirical evidence points towards C being fast? That's not enough.

jsjolen··on Numpy Clone in Common Lisp
>If it was a reasonable claim, then would someone name the production OS from the early 70s written in LISP, and explain how it's better?

Better or more performant for some measure of performance? I mean, you can always read the UNIX hater's handbook if you're interested in qualities that UNIX did not possess decades ago.

>You need much more sufficient-smartness to make LISP fast. Isn't it obvious? Or is that somehow counter to any history you've read, except when cherry-picked and reinterpreted by some HN commenter?

If you want to make a pedantic argument, then no, it's not difficult to make Common Lisp potentially as fast as C. This is because I can very easily drop down to a level of safety which is on the same level as C. This is, of course, unsafe and I would never recommend it.

I don't understand why numerics performance is cherry-picking, but "systems programming" (what does that mean? OS dev. only?) is not.

This would be a much simpler discussion if you concisely describe in a semi-formal manner why C has a larger potential to be fast than CL. If you did so, it probably would be a lot more difficult for me or anyone else to refute your claims.

jsjolen··on Numpy Clone in Common Lisp
>But empirically, for general systems programming, C is second only to assembly in performance,[...] and gives you control in a very accessible way.

Alright, but to what degree is the latter the cause of the former? The OP has already noted that C used to not be very fast, and that it became fast through the rise of sufficiently smart compilers. Do you dispute this claim?

>Why don't you try improving SBCL times there and then come back?

What good would that do? You have already seceded that you can write a C-like program in Common Lisp. This is especially true in SBCL, where you could write a Lisp program to generate the correct assembly code for the program.

jsjolen··on Bosque Programming Language
>For typed strings, String[T] the compare operator ignores the generic type and is based on the order of the underlying raw string e.g. both arguments are coerced to String.

Why? What even was the point in making them 'typed' then?

Also, what exactly are the relevant language-level details which BOSQUE contributes? It seems more like a large library than anything else.

jsjolen··on A Short Intro to Constraints
Yeah, Gecode supports floating point variables if that's of interest.
jsjolen··on Bill Gates says poverty is decreasing. He couldn’t be more wrong
He's talking about Gapminder: https://www.gapminder.org/

He's basically telling you to educate yourself ;-)

jsjolen··on You Don't Need to Exercise for Hours a Week to Look and Feel Better
Situps work the abs by flexing them along with the spine. Stuart McGill (who's the guy on spine health) would say that's a bad idea and probably recommend something like planks instead.

Push ups aren't bad, but training your pecs and anterior delts only is a bad idea to do, especially for someone who sits at a computer all day. Get a band and at least do some pull aparts with it, 200 or so every week.

jsjolen··on Article 13 is almost finished and will change the internet as we know it
GDPR has extended what misconduct entails. If your company acts ethically regarding the privacy of your users you'll be fine.
jsjolen··on Article 13 is almost finished and will change the internet as we know it
Seeing HackerNews complain about GDPR is a strange experience. Every day I utilize GDPR to ensure that I am not tracked by the websites that I visit. The expectations of GDPR are lower for smaller companies.

GDPR is a massive win for the individual.

jsjolen··on Why Crystal is the most promising programming language of 2018
/smug-lisp-weenie-mode

I didn't realise that SBCL is interpreted.

jsjolen··on MiniZinc: free and open-source constraint modeling language
A constraint solver typically works by:

1. Having a finite set of variables with a finite set of possible values

2. Having a finite set of propagators which are monotonic on variables (that is, it either reduces the amount of possible values for a variable or does not (it never adds).

3. A space describing a full set of variables and propagators

4. A way of reducing the amount of values when all propagators have hit a fixpoint for some space.

5. A way of rewinding state when some variable runs out of possible values

And then it basically (BASICALLY) runs this loop:

while(!solved(space)) {

if(failed(space)) {

		rewind(space); 

	} 

	while(!fixpoint(space)) { 

		for(p in propagators(space)) 

		{ p(space); 

		} 


	} 

	make_choice(space);
}

It's mainly used for solving NP-hard problems by being smart when attacking the full search tree.

jsjolen··on Open-source clone of the Age of Empires II engine
The mouse bug seems to be gone for me (it was mainly triggered by alt-tabbing out of the window). It still has an issue with text not being rendered properly while typing.
jsjolen··on Using Python to Code by Voice (2013) [video]
I purchased voicecode.io for 300 bucks. A few years later and no Windows or Linux release, too bad!
jsjolen··on Using Python to Code by Voice (2013) [video]
He kind of did. I asked him and he sent me a copy, I'm pretty sure I'm not allowed to send it along however.
jsjolen··on Solving Problems with MiniZinc
Constraint programming is used.

One (very cool) instance of constraint programming occurs at Ericsson through the Unison project http://unison-code.github.io/ .

← PreviousPage 2 of 3Next →