News for hackers. Stuff that matters.

waynecolvin

If they misrepresent their arguements there must be a motive.
Re:Design Patterns – A comprehensible guide on Friday February 17, 2017 @01:53AM (#13666452)
I believe ktRolster may be refering to "Procedural Abstration". The term is used in SICP [1] (the Wizard Book using scheme, previously freshman programming text at MIT).

Abstration can take many forms. But can often be described as "seperating things that change and/or repeat from those that don't", or something like that.

The last paragraph may be a joke, or based on one of the Principles in the O'Reilly Design Patterns [2] book.

[1] https://mitpress.mit.edu/sicp/ [2] http://shop.oreilly.com/product/mobile/9780596007126.do

I believe Linus claims to be an engineer, or maybe a manager nowadays. shrug Glad he has done well anyways.
Trust is earned, Linus is right.
Traditionally big corporations, or anybody with legacy systems, are very conservative with technology choices...
Re:Algorithms on Thursday February 16, 2017 @08:39AM (#13659759)
You might be complaining about students being taught Python and it becoming their "blub" language. We all start somewhere, and you can indeed go far with Python in some fields. It's popular with scientists for instance.

Recommended reading: https://www.reddit.com/r/programming/comments/9nipa/joel_on_... ( https://www.joelonsoftware.com/items/2009/09/23.html )

http://www.paulgraham.com/avg.html

http://www.lessonsoffailure.com/tag/paul-graham/ <-- note "flamewar" in the title!

Re:Algorithms on Thursday February 16, 2017 @08:15AM (#13659619)
I don't like Python either but it's out there and a fact of life. You use whatever a client requires.

Dictionaries, sets and lists can be nice though.

Go here( https://www.thecodingforums.com/threads/performance-sets-vs-... ) and search-find "Terry Reedy".

Re:Algorithms on Thursday February 16, 2017 @07:25AM (#13659353)
It can be a terrible filter, but credentialism fits in well with bureaucratic environments. :/
Re:Algorithms on Thursday February 16, 2017 @07:06AM (#13659238)
True. But before the days of Structured Programming widespread understanding of algorithms was hoped to lead to a professional Software Engineering field.

The idea of "Software Engineering" was born with the Software Crisis report in the 1960's.

Later on practicing SE's would study things like Design Patterns so things evolved over time.

EDIT: Software Engineers probably should know some relevant basics, but programmers could never come up with a "body of knowledge" like real engineers have.

It all depends what you work on and what new developments keep coming out...

I think the priority was to reenable discussion of new movies and TV shows, that would be useful moving forward. But maybe they could make an API.
Re:List of falsehoods programmers believe in on Monday February 13, 2017 @06:29PM (#13639869)
Wait a moment, they have a Falsehoods series on all sorts of subjects. The Fake News fact checkers are going to try globbing on to every niche they can...
Re:The Curse of Smart People (2014) on Saturday February 11, 2017 @12:49AM (#13621254)
A real man might take responsibility, but if that ever becomes too visible you will be made the dunce if not scapegoat. Maybe only the successful people had the clout to pull it off. :/

Admitting mistakes to move on, failing fast, should prevent prolonging arguements though (if you can pull it off).

Re:CPython migration to GitHub scheduled for today on Friday February 10, 2017 @04:34PM (#13619098)
Languages/libraries evolve and bitrot is a fact of life, yes.

Now you have me thinking about how to plan that long! You would need an architecture easy to port and good documentation...

https://mcnp.lanl.gov/

Or become so important that old platforms are maintained for your sake!

I was actually thinking about veterins returning to civillian life at the time, but maybe you're right.
Re:From Philosophy to Program Size (2003) on Friday February 10, 2017 @04:03PM (#13618863)
Table lookup is a common solution when a FPU isn't available and speed is a higher priority than accuracy.

I've actually used formulas for trig functions before with IEEE double floating-point until the accuracy didn't improve.

(think it was a continued fraction or or some other technique I didn't understand, didn't -lm or something for builtin functions and worked around it lol...)

It was very slow! Makes your computer's fan spin faster, even changes the smell in the room while grinding away!

Re:Wall Street Is Giving Up On Twitter on Friday February 10, 2017 @03:43PM (#13618722)
Are you sure there weren't some sort of recruitment effort with at least some of those guys... Though you do see some tech pages out there, maybe because of Hangouts? shrug

I didn't know Tim O'Reilly was on G+ but ALL these recent posts are pop-politics and ugly at that! I thought you were referring to all Google services being tied in.

Re:Show HN: How to write a tiny compiler on Thursday February 09, 2017 @05:13PM (#13611521)
How does one create a reasonable intermediate languages? I'm at a loss there. :/
Re:From Philosophy to Program Size (2003) on Thursday February 09, 2017 @04:12PM (#13611035)
You are describing "generalization". Lookup Tables (LUT) can still be a valid technique if the problem space is small enough.

If you use a table for trigonometry functions then interpolation is generally used... So it doesn't have to be all-or-nothing.

Compression generally works by removing redundancy via some means or another according to some scheme... But compressed data can take up more space if it goes against the grain (i.e. RLE when the repeated byte is the same as escape byte). Randon number generators with simple seeds (not a hidden entropy pool) can be thought of as disrupting simple patterns in a sequence.

EDIT: just thought of this. http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html

How then do you forget, after this overlearning already occurred?

EDIT: Someone says "If you can't get past nature's paywall,"

Re:The Gray-1, a homebrew CPU exclusively composed of memory on Saturday February 04, 2017 @04:51AM (#13566424)
Yeah. But for a function with parameters there needs to be a way to associate values with parameters. There are different ways to do that, but even a static global would be accessed by address.
Re:The Gray-1, a homebrew CPU exclusively composed of memory on Friday February 03, 2017 @11:55PM (#13565699)
Those LUT's have implied indexing internally, I suspect something akin to indexing is essential.

Logic functions can be composed using any one of: NAND, NOR, XOR, IMPLY, or other units like full-adders etc.

All memory depends on some form of persistance and/or refreshing.

Sometimes this is a physical phenomenon like magnetism or electrical compatence or after-glow in a willian's tube. Short-lived effects need to be refreshed.

Sometimes there is a feedback loop that continuously sustains latching, such as flip-flops.

Magnetic core memory could be less transient than say, a mercury delay line, but needed to be rewriten after being read.

But regarding your question, I think so. If it is possible to impliment one with the other (but memory usually has internal indexing).

Re:The Gray-1, a homebrew CPU exclusively composed of memory on Friday February 03, 2017 @05:43PM (#13564005)
I suspect it would be difficult (impossible?) without relative position addressing modes and/or other tricks. A conventional stack would need some way to access an offset away from the base, but perhaps you could use self-modifying code. Perhaps relative from current position like brainfk.

All general computation needs either a direct or convoluted means of achieving conditions too. A tricky formula exploiting abs(x) could be used to produce {0, 1} but...

How are you sure this isn't precisely evil on Google's part?
Re:Utau – a Japanese singing synthesizer application on Tuesday June 10, 2014 @07:36PM (#7875916)
Question: Can anybody explain how synthetic singing voice is made? Especially things like pitch, a voice actor doesn't have to sing every syllable at every pitch do they?
The naked eye is subject to persistence of vision but if you wanted to see strobe effects in person either a strobe light or spinning wheel with view gaps could be used.
Re:The Bozo Event Horizon on Monday August 20, 2012 @06:00PM (#4410002)
Re:Codecademy and the Future of (Not) Learning to Code on Saturday October 29, 2011 @06:09PM (#3172946)
I first seriously(?) learned how to code by finding a used Pascal book and reading it thoroughly. That was some time after getting my first computer and not knowing where to find a compiler! (I'm not counting forgotten Logo from summer class long ago or using elaborate triggers in a MUD.) I had serious learning problems getting far past that unguided. Finally learning C from some lecture notes was a growth spurt though I had looked at some C before that. Trying to calculate the fewest coins to add up to a sum and finding optimal new coin took like a couple weeks! LOL
There are many dialects of BASIC and many old ones on old micro-computers had poor features like GOTO or 2-character variable names...

Nevertheless, for as long as you do grow out of it and move on... Why not! Don't forget to move on, that's important.

It's possible to find really old books with like scientific/financial calculations in BASIC, but don't get under the illusion that you can easily do anything "practical". For play/practice, go ahead! But please do move on it you keep at it.

Older »