HNHacker News
TopNewBestAskShowJobs

sifoo

67 karma · joined December 27, 2017

submissionscomments
sifoo··on Doctors' plan for war on sugar
I'm pretty sure the radiation would do more harm. I'm not saying it's healthy, I'm just saying it's not the same thing as the crap the research is based on. And I have quit for longer periods without seeing much difference.
sifoo··on Doctors' plan for war on sugar
Now I'm curious, why did he quit? Smoking regular cigarettes with foam-filters kills me fast, but smoking organically grown tobacco without additives and filters doesn't seem to do much harm from my experience. I'm pretty sure we're not being told the whole truth about tobacco.
sifoo··on Show HN: Cixl – a minimal, decently typed scripting language
Agreed, it needs momentum to keep going and that's where I could use some help right now. But it also becomes less of a struggle since I don't have to constantly invent the ground I'm walking on, and since it's now getting to the point where interesting programs are becoming possible. As an example, adding symbol support (https://github.com/basic-gongfu/cixl#symbols) took about 30mins.
sifoo··on Show HN: Cixl – a minimal, decently typed scripting language
Ok, now I get where you're going. x and y share the same type, just like 'int x, y' in C. That's what happens when you try to explain two concepts at the same time, my mistake. You have a point with the years, I'll add an alias for now. That is the goal; I'm kind of depending on people chipping in to be able to keep up the pace though, I had a nice runway set up for xmas but now the pressure is on again.
sifoo··on Show HN: Cixl – a minimal, decently typed scripting language
First of all, thanks for taking the time. I'll try to address your questions in the same order, feel free to yell if I miss anything.

'T0' will be substituted for the type of the first parameter (indexing starts from 0) on evaluation, it's the most straight forward way of adding the constraint that two parameters need to be the same type without specifying which type. I should make the example clearer by specifying a less concrete type for x.

Nope, no way right now. I realize it would be nice to have in the REPL but functions use their index in the list of implementations to implement upcall which means I have to figure out another way to do that fast for that to happen.

The reason some fields have plural functions as well is because they have dual semantics. You have both the total number of days and the specific day of month, for example. The year only has one meaning. I guess you could alias 'years' to 'year', but then someone is going to wonder why it's there instead. There's some more material on the reasoning behind dates/times in /devlog.

You pretty much nailed the heuristics I've been using to drive the design. It's been cooking for quite some time but I only started working on the implementation 3 weeks ago or so.

It's slowly getting to the point where it's possible to write more interesting code. I'm waiting for a couple of bigger pieces to fall in to place first, structs are up next.

The C in the name is derived from the host language, which would make that SIX-el.

sifoo··on Show HN: Cixl – a minimal, decently typed scripting language
Ah, epic swoosh :) They fill a clear purpose as a step between commas and periods, which allows putting more structure into sentences and helps express meaning more clearly. I've been told that they're more commonly taught and used in Europe than the US, and my first language was Swedish. On the other hand I definitely write more code than otherwise, so that probably explains some of my fascination with punctuation. In the end, languages are tools for accurately conveying meaning; (see, there he goes) and whatever rules don't contribute to that goal may safely be tossed out.
sifoo··on Show HN: Cixl – a minimal, decently typed scripting language
Which usage of semicolons are you referring to? The only one I can think of is using them to terminate definitions. I realize it's slightly unorthodox, like most of cixl; but many languages seem to be fine with using semicolons to terminate every single freaking statement, how is this worse?
sifoo··on Show HN: Cixl – a minimal, decently typed scripting language
The principles of Forth sit at the bottom of most languages, though most like to keep that power to themselves. And I've always felt that the Forth language suffered from being so damn dogmatic and protective about the obvious lack of convenience. As an added bonus, it makes a nice contrast to the current trend of crippling languages ever more to protect people from themselves.
sifoo··on Show HN: Cixl – a minimal, decently typed scripting language
Well, from one angle it's statically typed; names never change their types within a scope. It's also strongly typed, more so than common scripting languages. On the other hand it has a very dynamic, gradual feel to it; to the point where you almost don't notice. That and the fact that using the word 'decent' seem to upset a lot of people, which is an indicator of much needed mental debugging.
sifoo··on Show HN: Cixl – a minimal, decently typed scripting language
The fact that no one else was doing it started to feel like an obligation. Cixl is an attempt to find a middle way; a more permissive, less religious, yet modern and convenient approach to solving problems in code. Unlike most other languages; it isn't very interested in reinventing or ruling the world; and doesn't mind being embedded in and extended from other languages.
sifoo··on Ask HN: What did you work on in 2017?
You're welcome :) If you had any idea how many hundreds of thousands of locs I've thrown away over 30 years. Yet I wouldn't want to be anywhere else, and it was all leading here. These days I'm comfortable just going with the flow without rationalizing, it's not as if my stubborn attempts at controlling life were working out that well anyways...
sifoo··on Ask HN: What did you work on in 2017?
You will get the experiences you need to go where you're going; being fired for pointing out obvious is not that bad, you did nothing wrong, it's their shitty karma. Can't you see the irony in doing something like that on facebook? The solution starts with making the right choices yourself.
sifoo··on Ask HN: What did you work on in 2017?
Sounds like you're preparing/triangulating to me, give it a few years and I can almost promise it will all make sense. Just accept that you're not in control and follow your intuition and all will be fine :)
sifoo··on Ask HN: What did you work on in 2017?
I spent most of 2017 reflecting on the direction programming/languages/communities are going and finding ways to move the needle the other way. It seems to me that there's a lot of pressure to turn programmers to soul-less robots with zero integrity and self-esteem who will do anything for money. I quit selling my skills a long time ago to get out of that mess, now I'm spending most of my time empowering others to do the same thing.

Cixl is my latest kick in the face to the status quo: https://github.com/basic-gongfu/cixl

← PreviousPage 2 of 2