News for hackers. Stuff that matters.

fexl

Re:There's something off about LED bulbs on Thursday March 30, 2023 @02:59PM (#35377409)
I've noticed that LED bulb packages say they'll last several years, but so many of them die after just a year or so. I should start tracking this precisely, but I've just gotten the sense that they often die prematurely.
I got that impression too, but it does say "But the path he has chosen involves one of the toughest problems in battery science, which is how to make an anode out of pure lithium or sodium metal."

I suppose that implies he's trying to make an anode out of pure lithium or sodium, but you never know with science journalism.

"When the battery is discharging ... positively charged ions shuttle from the anode to the cathode"

I thought that electrons shuttle from the anode to the cathode.

Re:A Victoria man has gone two decades without money on Monday July 26, 2021 @09:44AM (#27959255)
I never understood the animus against saving. Saving just means you have produced more than you consumed, and I admire that.
Re:What's Really Warming the World? on Wednesday June 24, 2015 @12:36PM (#9772743)
I opened the "Summary for Policymakers" listed right on their home page, and it popped up a PDF titled "AR5_SYR_FINAL_SPM-1.pdf". That's where I searched on the word "vapor" and found only one occurrence -- inside the word "evaporation".

I guess the "for the Physical Science Basis" report is something different that I haven't found yet.

Re:What's Really Warming the World? on Wednesday June 24, 2015 @12:30PM (#9772692)
Yes I understand that effect, and it makes sense that higher temperatures might cause more CO2 to come out of solution, as in a bottle of soda going flat more quickly at room temperature than in the refrigerator.

That said, I am not certain that the recent dramatic spike to 400 ppm of CO2 (from what I've read) could be entirely caused by the fairly moderate temperature rises measured in recent years.

Re:What's Really Warming the World? on Wednesday June 24, 2015 @12:10PM (#9772562)
I searched on the words "vapor" and "vapour" and found nothing. I also search on the word "water" and found nothing relevant to my question.
Re:What's Really Warming the World? on Wednesday June 24, 2015 @12:07PM (#9772535)
Sorry, I can't click through to that article -- when I dismiss the pop-up, the tantalizing "Climate Shock" headline disappears.

I do say that all humans require energy to survive, and more efficient forms of energy require capital in the hands of innovators.

I'll be happy to read the article if you can give me a link that functions better for me.

Re:What's Really Warming the World? on Wednesday June 24, 2015 @11:07AM (#9772090)
Are there any data on water vapor concentrations? I ask that because I have read that the contribution of water vapor to the greenhouse effect is perhaps two to four times greater than CO2.
Re:What's Really Warming the World? on Wednesday June 24, 2015 @11:06AM (#9772075)
Likely yes, but please be careful that the remedies do not cause more severe difficulties than the problem itself.
Re:What's Really Warming the World? on Wednesday June 24, 2015 @11:00AM (#9772036)
Sorry I deleted my comment out from under your feet. He was responding to my exclamation about the large spike upward in CO2 levels on that first graph on the EPA site. After posting it, I deleted it because I answered my own question.
Re:What's Really Warming the World? on Wednesday June 24, 2015 @10:45AM (#9771911)
http://www.ncdc.noaa.gov/paleo/globalwarming/temperature-cha...

There you can see a strong correlation between CO2 levels and temperature going back nearly half a million years. Teasing out cause and effect is the interesting task.

Re:Why do buses bunch? on Saturday May 23, 2015 @11:28AM (#9593176)
It's bizarre that it would be illegal. For all I know, it might be illegal in Peru too, but it happens, and it works pretty well.

In Lima, the spotters are known as "dateros" (loosely, "data wrangler"). The bus drivers pay them roughly 20 centavos, I think per stop but I'm not certain.

One case where it doesn't work is when certain bus drivers ignore the system and aggressively jump ahead of other buses. Nevertheless, it's pretty smooth.

Re:Why do buses bunch? on Thursday May 21, 2015 @09:30AM (#9582568)
In Lima Peru the bus drivers pay spotters on the street who report flow conditions by cell phone.
Yes, you're talking about 4.7 cubic feet of gold there. Buy the island and then you'll have a place to store 1 cubic foot of gold, to pay your routine expenses.
Some have already closed that exit, banning the storage of cash in their boxes. They want to keep your funds available for negative interest rates and possible bail-ins.
Re:Hungary plans new tax on Internet traffic on Wednesday October 22, 2014 @07:11AM (#8492196)
Not only that, they took a lot of money in exchange for that "free" eduction -- often from people who didn't even use the service. So no, they don't have a "stake" in the products of anyone's mind. That's repugnant.
Re:Unsung Geniuses on Friday October 17, 2014 @12:09PM (#8471643)
I sing the praise of the rarely mentioned genius Moses Schönfinkel, who invented combinatorial logic.
Re:Peru: The Future of Gastronomy on Monday October 06, 2014 @07:58PM (#8419046)
We traveled to Lima a few years ago, and the variety and quality of the food in the grocery stores and restaurants was astounding. For the equivalent of 2 to 5 bucks, you could get a lunch that would cost easily six times that in the U.S. -- if you could find anything equivalent.
OK, I went ahead and revived the "==" syntax for recursive definitions, so you don't have to use '@' (fixpoint) explicitly.

https://github.com/chkoreff/Fexl/commit/57b841cb6c2347cad147...

Postscript: You might well ask why not just use "=" only, and assume that all definitions are potentially self-referencing?

That's a non-starter because I find that redefinition is the more common intent:

    \x=4
    \x=(* x 5)
    \x=(+ y x)
In those cases I don't want x defined in terms of itself, but rather in terms of the previous definition of x.

That is why I would insist on a special token such as "==" to express the intention of self-reference.

True, I could implement it in terms of direct self-reference. At one point I used the "==" syntax for just that purpose:

    \append==(\x\y x y \h\t [h; append t y])
Maybe I should resurrect that syntax option. :)

It was trivial to implement. When the parser sees the "==", it just automatically abstracts the symbol "append" from the definition and applies the fixpoint operator (Y combinator).

The only reason I eliminated "==" in the first place was that I was in the throes of using different syntaxes for lazy, eager, and self-referencing definitions. Now I've settled in on "=" always meaning eager evaluation, without exception. Then I got hyper-minimalist and said that's it, there's only one syntax for definitions, and it's "=", and if you want self-reference, use "@".

However, the decision to settle in on eager evaluation now frees up "==" once again as an option for self-reference. So I may bring that back.

Thanks for the food for thought.

I do use it directly. For example in Fexl I define the append function for lists as:

    \append=(@\append\x\y x y \h\t [h; append t y])
Where '@' is the Y-combinator.

Note that there's no direct self-reference with the symbol "append" there. I could define it equivalently as:

    \append=(@\loop\x\y x y \h\t [h; loop t y])
Re:Fexl – Highly robust functional evaluation on Tuesday August 05, 2014 @10:39AM (#8137096)
Fexl is a functional programming language. I used the term "functional evaluation" because Fexl evaluates functions.

Here are a few code samples:

http://rosettacode.org/wiki/99_Bottles_of_Beer#Fexl

http://rosettacode.org/wiki/Fibonacci_sequence#Fexl

http://fexl.com/sample/

This one's a bit more involved:

http://fexl.com/demo/

You'll also find some code samples in the "test" directory:

https://github.com/chkoreff/Fexl/tree/master/src/test

The program a1.fxl there is the definitive test suite. The program a2.fxl reads what you type and echoes it back.

The samples above should help illustrate the nature of the language. Grammatically, it's very simple:

http://fexl.com/grammar/

For another quick illustration of the language, I'll give you a sample here:

    say "Hello"
    \x=(* 4.7 8.6)
    put "x = " put x nl
The output is:

    Hello
    x = 40.42
Re:Fexl – Highly robust functional evaluation on Monday August 04, 2014 @04:04PM (#8133715)
This version handles syntax errors, out of memory errors, and out of time errors, propagating them upward instead of halting with an error message, and reporting them in an orderly fashion at the end of the main program. Now the only calls to "die" are those which should never happen, i.e. they are pure assertions which are never expected to fail.

This allows for some very nice embedded calls to parsing and evaluation from within a Fexl program itself, which can always be expected to return to the caller instead of halting.

Ultimately I'm going to put a full-powered interpreter right on the web to allow arbitrary programs submitted from strangers, and this release is a necessary prerequisite for that.

Older »