The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Turns out I'm not very good at picking a technology winner!
Who needs to pick a "winner"? I'm also one of those 12. I intentionally go with the underdog.
I bought mine when Microsoft called it quits - I paid $122 for my Lumia 640, taxes included, delivered right at my door. Turns out it's a better camera than all the standalone cameras I've ever bought (and cheaper too). It's also a better GPS than all the standalone GPS units I've ever bought (also cheaper). It's a better MP3 player, PDA, podcast player, etc. Since it's got a MicroSD slot I always have 256GB worth of storage available on me.
And (I never miss an opportunity to point this out) even though the Windows Phone has been declared "dead" for years now, unlike the 5 Android tablets I own (silly me), it's still been getting regular OS updates until recently. My Android tablets have all been pretty much abandonware the moment I walked out the store with them and are still vulnerable to exploits that have been patched elsewhere for years. I've learned that lesson. Why should I believe any manufacturer that now, for real this time, pinky-swear, they're going to keep the OS updated? Nope, I'm done. I won't spent the money on a sixth Android device.
You know what other "winner" I purchased when MS said it was exiting the market? A Zune. Since all the stores were getting rid of theirs at the time, I got it for cheap and they threw in the car adapter for free. I've used it for well over a decade and listened to podcasts on it daily, and it's been subjected to a lot of abuse. It's served me a lot better than all the standalone MP3 players I had previously bought.
You don't have to pick a "winner" to get some great use out of a device.
My first two 'smart' phones were Lumia WP's. I just retired the last one a few months ago due to a damaged screen. Like you, I had simple needs...phone, email, and music player mostly...and didn't care much about the lack of apps.
The new android phone took a little getting used to but it really is a better device than the WPs, maybe only due to the fact that it is newer, charges faster, and hold a charge longer.
I wonder how many other WP users (dying breed) are still out there.
So Parsley is cool, but the hand written parser I wrote for Slang is under 100K, and the Generated one is 939K. The latter parser is slower, but more accurate, and otherwise better, but not 10 times the size better.
For comparison, Antlr's grammar for parsing C#6 was worth about 800K and change of C# source code but it didn't parse so i don't know if it was complete, or what was wrong with it.
I'm considering a code synthesis approach which might make the generated code smaller, especially for loops but i don't know how much i can really save here, but the emitted code would look cooler. =P - closer to hand written code.
People say size doesn't matter these days. (Apparently its all in how you use it) but by my rough calculations, this is the difference between 40-50k of binary size and closer to 500k of binary size when its compiled. That means cache lines and locality are going to take a hit i think, because the working set has to grow accordingly though i would need to do extensive comparison testing before i could be sure of any of that. Still, it doesn't look good.
They are wrong and always have been. Just because people have large disk drives and mass amounts of memory does not mean that lean and mean is not preferable to bloat code.
I have seen code that only took 100k to do the same thing that someone did in over 1000K. Just remember Complex is easy, but simple is hard. Beautiful code is simple and easy to understand, but is often hard to create.
On a C compiler that does not do optimization "i = ++n" is much more efficient than "i = n++". On a C++ compiler that does optimization (when dealing with classes) the difference in efficiency is much worse (n++ is a very bad habit to fall into).
The goal of code generation should be concise efficient code.
Sorry, I think a got off subject. Just keep in mind that even generated code should be reviewed.
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
Last Visit: 2-Apr-20 16:48 Last Update: 2-Apr-20 16:48