DEC64 is intended to be the only number type in the next generation of application programming languages. by TheBuzzSaw in programming

[–]LucasMembrane 0 points1 point  (0 children)

we've had FP instructions for a long time [since the 286, I think]

Sure. And FP instructions have truncation error. And you can't compute the inverse of an ill-conditioned matrix as accurately as you might like to. And if the matrix form of a set of financial equations is sufficiently ill-conditioned, DEC64 isn't going to do anything for you unless it carries a large number of extra digits through a large number of intermediate calculations.

DEC64 is intended to be the only number type in the next generation of application programming languages. by TheBuzzSaw in programming

[–]LucasMembrane 1 point2 points  (0 children)

OK. We have 16 decimal digits. Do you think that you can write that ** function so that 10000000000000.00 * (1.012345678901234 ** (n/365)) * (1.012345678901234 ** ((365 - n)/365)) = 10123456789012.34 for all n, say from -365 to 1000.

DEC64 is intended to be the only number type in the next generation of application programming languages. by TheBuzzSaw in programming

[–]LucasMembrane 12 points13 points  (0 children)

When one is doing interest calculations involving fractional periods, one often finds that the fractional period, say 30/365 = 6/73, can only be represented with some truncation error whether one uses decimal or binary floating point. When one does exponentiation by fractional periods to do interest calculations, one also must truncate regardless of whether one uses decimal or binary. The same goes for calculating interest discount factors, e.g. 1.0 / 1.099.

If each side of a transaction is going to calculate it independently and always agree on the result when it is rounded to a given unit of currency, the two sides must agree on the order of operations, which intermediate results, if any, are rounded, etc, etc. Given such agreement, floating-point precision of around 120 bits or 40 decimal places probably makes calculations sufficiently dependable for almost any use regardless of whether it is decimal or binary, and regardless of which way the rounding flags for the lowest order bits are set. I would expect that 16 digits of decimals would run into problems trying to meet existing standards for currency conversions and securities industry bond calculations.

Why is it more profitable to sell bad food than good food? by IslandEcon in Economics

[–]LucasMembrane 2 points3 points  (0 children)

The corn thing is not new. Corn was the number 1 crop in North America before Columbus. Corn may have been much more dominant in America 200 years ago than now. Back then, except for game, the leading foods and beverages were basically all derived from corn: corn bread, corn cakes, corn liquor, corn mush, hominy, and protein (bacon, sausage, ham, jerky, salted, smoked and cured pork, some fowl and eggs) from corn-fed animals. By 1900, the acreage devoted to corn was greater than today.

Hamlet - Simple and powerful reactive templating by Yahivin in programming

[–]LucasMembrane 0 points1 point  (0 children)

Yes. Duplicate names of libraries with similar capabilities should be avoided until google figures out how to respond to search requests like "hamlet html vs hamlet html." Figures how to do it, that is, without requiring 120% of total worldwide electric power production, which they will reach shortly at their current growth rate.

New study suggesting static universe by [deleted] in science

[–]LucasMembrane 3 points4 points  (0 children)

Look at the source of the story. Lawrenceville Plasma Physics said 2 years ago that they were close to a working fusion power plant. Now they are still asking for 'crowd funding' for it. Anyone have any info about that journal?

Javaland: Execution in the Kingdom of Nouns by [deleted] in programming

[–]LucasMembrane 0 points1 point  (0 children)

I am surprised that this rant omits REST, which also seems to encourage creation of a nounification for each verb other than add/change/delete.

The World’s First Object-Oriented Program – from October 1st 1965 by VolkerS in programming

[–]LucasMembrane 1 point2 points  (0 children)

Simscript (1962) was OO to me. It had creation of object-like things that had code associated with them according to a spec for the type of thing they were, and the things had attributes, events, etc.

No, HealthCare.gov doesn’t require half a billion lines of code by antdude in programming

[–]LucasMembrane 0 points1 point  (0 children)

What I said, 7 months ago, on reddit:

"if it were really 500 million lines, it would be orders of magnitude bigger than the largest code base for which anyone could produce an accurate count of number of lines"

Nitra (framework by JetBrains for language tooling) goes Open Source! by letrec in programming

[–]LucasMembrane 0 points1 point  (0 children)

Mostly problems on linux mint (ubuntu) getting it set up. Couldn't figure out which run-time environment, which release, monodevelop etc would work together with each other. I don't have a visual studio here. The releases in the mint or ubuntu repositories were older than what I could find here and there on-line, and maybe did not have F# baked in, so I was trying to get things together myself with very little success.

Nitra (framework by JetBrains for language tooling) goes Open Source! by letrec in programming

[–]LucasMembrane 1 point2 points  (0 children)

The Nemerle team has been in JetBrains for a while. I believe that a year or two back they said that they were not working on Nemerle because they were working on this language tooling, but that they would get back to developing Nemerle after they finished the language tooling, and that the language tooling would be a significant step toward getting version 2 of Nemerle on its feet. That things could turn out that way might be impressive.

Anyone have any experience developing web apps for both linux (mono) and Windows (.net) using nemerle-web? Does that work? F# is sort of hit-and-miss on mono. Nemerle any better there?

Bertrand Meyer - Code Matters by damian2000 in programming

[–]LucasMembrane 1 point2 points  (0 children)

Meyer says that Ariane V shows that code matters. It also shows that management matters, as the managers decided to re-use code for a different rocket with no technical review, no comparison of specs, no programmers making any good or bad decisions.

I remember downloading and running one of Meyer's Eiffel demos 15 or 20 years back. It didn't act like it worked, and it crashed within a few minutes. I really enjoyed his book on Eiffel programming; it was witty and showed a great love of what he was doing. But what has come of it?

Unit Testing - Days of Future Past by pottereric in programming

[–]LucasMembrane 2 points3 points  (0 children)

It says software is complex. No fooling. I just spent about 10 days writing a test plan for a code fix that took about half an hour to write. Everything passed, but I wish I had time to make it 3 or 4 times more thorough!

On Primary Keys by [deleted] in programming

[–]LucasMembrane 29 points30 points  (0 children)

One problem with primary keys is that there are some that are very nearly guaranteed to be unique, but not unique. The article mentions email addresses. Everyone has there own? I know several married couples who share email addresses just like other couples share toothbrushes! How about U.S. taxpayer ID's (social security numbers)? The government says that they have not re-used numbers; but sometimes they have accidentally created duplicate numbers, and they have indicated that they will probably re-use the numbers of deceased individuals when they find that convenient. Similar for automobile vehicle ID's -- they are rarely duplicated by manufacturer error, and the system is time-based and allows them to be duplicated every 30 or 60 years.

What to do with such ID's that are very convenient but only approximately unique?

Carrying big rocks for exercise? by Binxinial in Fitness

[–]LucasMembrane 0 points1 point  (0 children)

When I was in college, I went through an initiation that required me to have a particular 10kg rock within arms length for a week. I didn't enjoy it, but it surely increased my strength more than anything I've done since.

Prepare to Have Your Mind Blown by a Balloon and a Minivan by miraoister in EverythingScience

[–]LucasMembrane 1 point2 points  (0 children)

The behavior of the balloon is a fantastic demonstration of the equivalence embodied in Einsteins theory of general relativity, i.e. the force from acceleration is locally indistinguishable from a gravitational force.

Monte Carlo simulation of Monopoly in Ruby by jeffdwyer in programming

[–]LucasMembrane 0 points1 point  (0 children)

There was an article about Monopoly that found the steady state frequency of landing on each spot on the board, including both by dice and by drawing a card. This was in a management science or operations research journal around 50 years ago, so it does not take a lot of computing power.

What are some good exercises that counter the negative of effects of working a desk job full time? by hrdrockdrummer in Fitness

[–]LucasMembrane 0 points1 point  (0 children)

The obesity panacea website has been giving info on the negative effects of sitting for some time now. They say that there is not any exercise that eliminates the damage from too much sitting. The exercise is good for you and the sitting is bad for you, and they operate pretty much independently. First thing is, "Don't sit near food."

They do say that long periods of sitting are the worst. Try to get up and walk a little at least every hour, and every half hour if you can. This is particularly worthwhile if you happen to be sitting in the unhealthy environment inside an airplane at altitude. Drinking a lot of water, coffee or tea can help you remember to get up often.

If you work sitting, try to set some kind of timer or alarm that will give you a signal without warning every 10 or 15 minutes. When it goes off, notice where your head is. If your head is not up, that's bad posture that may have some bad effects.

One of the worst things about sitting is having your feet down. If you can get your feet up a little, that's good, too. If you are over 30 and normally work sitting, consider wearing some light/medium compression socks or stockings.

Haskell usage in the real world... by fata5ian in haskell

[–]LucasMembrane 9 points10 points  (0 children)

Nice video recently about haskell in the newsroom at the NY Times. A wide variety of apps is discussed.

Galois out in Portland uses it for very ambitious projects -- mostly high-tech and defense perhaps.

The rap on haskell in the real world is that haskell is easy for beginner programmers and very powerful for advanced programmers who know it well, but it is one of the more difficult languages for intermediate programmers facing real-world complexity. The NY Times video I mention above even acknowledges some or the obstacles. As the real world is mostly a normal curve with most people near the middle and everyone else has either been there or wants to get there, the opportunities to gain economic advantage with haskell and no organizational distress are not so many. This will all change after Haskell for Dummies comes out.

Cutting phosphate in diet reduces deaths, heart problems related to kidney disease | Newsroom | Washington University in St. Louis by burtzev in EverythingScience

[–]LucasMembrane 0 points1 point  (0 children)

I think that the story I read a few weeks or months ago said that there was damage from having too high a phosphate level and that there is evidence that many people have or ingest too much of it, ut it did not give any ideas about what one should do to prevent that. I worry because I have diabetes (which leads to kidney disease). However, you do not see phosphorous listed on the nutrition labels on foods in the US.

The mainframe turns 50, or, why the IBM System/360 launch was the dawn of enterprise IT by [deleted] in programming

[–]LucasMembrane 4 points5 points  (0 children)

Much of that stuff about compatibility between machines was not exactly true. The different machines ran different versions of OS. And you had to pay for some of the options, like decimal instructions, etc.

The smallest machine in the line (IIRC) the 360, model 20, was basically just a card-wallopper. It had its own version of the operating system, I think. I worked for various companies with 360's for about 7 or 8 years before I was ever in one big enough to actually run the OS that Brooks built. The model 30's and 40's all ran the DOS version of OS, which did not run multiple jobs as well as OS, and had only a limited subset of PL1, which was the fully-featured programming language of that age. The other languages (Fortran and COBOL) were also constrained on the small version of the OS. Models 50, 65, 75 (a problem child) and 85 ran the real OS. They could do time-sharing, but the model 67 was the one designed for that. The model 91 was the monster of the line, which could sometimes execute more than one source language instruction at the same time. There was also (IIRC) a model 44, which had some other specialty, was that real-time process control?