ESP8266 Basic Interpreter Lowers IoT Entry Bar For Amateur Programmers (esp8266basic.com)
New submitter mmiscool writes: ESP8266 Basic is a project less than 6 moths old. It is open source and designed specifically for the internet of things. The ESP8266 microcontroller costs less than $3, and once the basic firmware is loaded to the device a user can connect to it using Wi-Fi and start programming right inside their web browser. No wires, no software or plugins to install. Just a simple text editor. There is now a community, primarily older folks who fell in love with Basic on the Commodore, who are using it for controlling a variety of projects. The code is amazingly simple and includes commands for interfacing with neo pixels, OLED displays, Temperature sensors, hobby servo motors and of course the blinky LED. It also provides commands for browser widgets that can be used to construct interfaces for the device like textboxes, buttons, sliders and dropdowns. The bottom line is that Basic is not dead, and has finally made its way into the internet of things.
Make last year ran a three-part series on the chip (here's part one), but things have advanced quite a bit since then, when people were first noticing that the ESP8266 is more powerful than the tasks for which it was first marketed.
According to Google, one type of moth lives 12 months, so that's 6 years?
(Blushes)
...a way for people even more stupid than before to start writing bad code.
Remember what php stands for?
Personal Home Page.
It's been rife with bad practices and and exploits for years.
And now we're going to have a new toy that lets inventive idiots shoot themselves in the foot for decades to come.
All those empty listings makes you feel like you're in one of those old Soviet supermarkets.
I would like a temp sensor please.
We don't have sensors
Then I need a spool of white and red wire
We don't have wire
Robot kits?
Nyet
Silly stuff...
All our stuff is very serious
Basic is not dead, it just smells that way.
Oh goodie, the Arduino/RPi kiddies will have yet another crutch to lean on, so they can further delude themselves into believing that electronics is something anyone can do and all those companies charging thousands of dollars for their products are just ripping us off. Who needs to go to school to actually learn anything?
Sure, there are outliers, but they'll be dead soon.
The cost is what amazes me these days. This thing has two radio cores, two processor cores, and a host of other peripherals, and it's dirt cheap.
Basic was how you used computers back in the day. The market moved on to boards connected to the computer but basic couldn't access them. Every board came with a one-off expensive development kit, more trouble than it was worth. So now computers are only good for gossiping on facebook, Time to get back to control of the technology.
Comment removed based on user account deletion
Didn't you know Skynet is written in BASIC?
ESP8266 Basic is a project less than 6 moths old
fewer than 6 moths.
10 WRITELN "FROSTY PISS"
20 GOTO 10
30 REM the lameness filter really is a piece of shit
Confucius say, "Find worm in apple - bad. Find half a worm - worse."
So weaknesses and constraints on BASIC on the C64 impact it's usefulness today?
I have a BASIC compiler for the PIC microcontroller that produces tight little binaries. It has a nice useful library of I/o functions.
shall we? OK! the bottoms butt our a3ility to (Click Here
It has a nice useful library of I/o functions.
Libraries are usually more important than the language, anyway.
"First they came for the slanderers and i said nothing."
Whose idea was to choose an interpreted language for the extremely slow 8-bit home computers?
The summary doesn't tell me where from though.
I'm not THAT old, you insensitive clod!
these, its unclear what is the device and what is an accessory for the device. Also unclear which are legit sellers and which might be spam.
The the link to the ESP-01 in the make article leads to a discontinued page.
Anyone got a link to a known reliable vendor to buy these?
That's a valid point. Before you connect a "thing" to the internet, it would be wise to think about what happens when it's hacked. Unless the code is written by someone trained in security and then reviewed by someone else well-trained, it is reasonably likely that it will eventually be hacked. Internet-connected TVs have been hacked, wifi cameras are frequently hacked ...
In some ways it's unfortunate timing that the internet has become so pervasive at the same time that simple programming has become so easy you can write software without any training or experience. It's resulted in a lot of very bad and dangerous software on the internet.
Since it hasn't been mentioned here. The ESP8266 is no stranger to interpreted languages. The NodeMCU firmware offers a Lua interpreter. It's been around for longer than this BASIC project and is now fairly robust. I have created a couple of projects with it and been pleasantly surprised, particularly with support for the u8glib library. This is just outstanding.
There's lots of reasons to like an interpreted language on a device like this. That said, the hardware/libraries integration and maturity is way more important than exactly what interpreted language. I feel a tag nostalgic for BASIC but I don't really see the utility over the excellent NodeMCU firmware. There's even an online firmware builder that allows you to select which features, ostensibly hardware protocols and the like, to bake in so you can maximize how much free heap there is. http://nodemcu-build.com/
I remember when Basic was spelt BASIC, as in.. you know.. an acronym.
Easier than JavaScript, but I guess it would never catch on...
A basic word processor with search, replace, and basic formatting.
A programmable calculator containing a limited functionality spreadsheet (10 rows, 10 columns, basic math functions only)
A tetris clone.
64K, Monochrome green screen, in TRS-80 Model III BASIC (not that CoCo "BASIC" used by those young whipper-snappers on those cheesy white computers with crappy keyboards). Back when a 3"x5" card could hold all your assembly opcodes on one side and all your BASIC keywords on the other. Z80A Machine Code by hand, no compilers to do the dirty work for you.
There is older and more mature port of Python to ESP8266
There is absolutely no point in using BASIC when better tool is available.
And now, it is a great idea for newbie programmers to write apps for those internet connected devices in BASIC?
They don't have to be connected to the Internet, you know? Unless you've got a modem/router running in bridge-mode the devices will by default be running behind a NAT and I doubt most of these folks will go to the length of using UPNP to specifically request for the modem/router to open ports to the devices from the Internet.
I am right now messing with nodemcu but it is somewhat flaky so I might go to the Arduino route. These devices are kind of annoying in that if you want to send data larger than a single packet you have to break it up yourself, their TCP stack is shite. Otherwise they seem pretty cool.
"You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
The Soldercore board+BASIC combo looked very good.
However, it doesn't seem to have gained enough traction to stay in production.
The SolderCore board had a STM32 ARM-M3 CPU with an interactive and internet-enabled CoreBASIC interpreter.
http://soldercore.com/software/corebasic/
http://soldercore.com/products/soldercore/
. ... a bunch of people who know little about security programming the IoT.
Just what we need
"ESP8266 Basic is a project less than 6 moths old"
It would be more impressive if it were less than 6 butterflies old.
I suspect that with BASIC not relying on pointers at all for general function, security for IoT is probably a lot better than when C is used. I don't think your pessimistic comments about BASIC are really valid. Also this BASIC implementation is interpereted, so as long as the interpreter is secure with bounds checking, BASIC programs could well be very secure and correct, much more than many people's C sketches are in Arduino!
For those interested, there's a project called MicroPython that implements a full-featured Python 3 interpreter on a microprocessor. Like the BASIC chip it's interpreted so it's slower than bare C. But it does let you use all the niceness and rapid development capabilities of Python on a 32-bit microprocessor.
Wait until IPv6 becomes necessary...
Why BASIC indeed. BASIC is interpreted and SLOWWW.
It should use JAVA.
Java is FAST!
For more speed, it should run a java machine, written in java, running on a java machine written in java!
more indirection == more speed!
As was Pascal. Probably because managers only took one programming course and so t was the only thing they felt comfortable with managing. Just wait the push for "everybody must learn to code" will produce a drive to use a teaching language such as Blocky. I can just see the conversation:
Tech lead: And so we're looking for a mixed Java/Node development team to push out the App.
Manager: Why? There so difficult to use, why not use Blocky it's easier. Besides everyone knows Blocky they taught it in grade school.
Tech Lead: It's easy for some problems but totally unsuited for our application
Manager: Programmers are smart you can make it work. Besides I read about a WebBlocky project the other day on Slashdot the other day.
Tech: I saw that too it's in version 0.1.0 and if you read the guy's CV he has never had any training or experience in language design. He started it because, and I qoute, "It's kewl and 7337 and Java and Pythone are crufty and not web scale". He even named programming features based on female genitalia.
Manager: We made the decision a week ago while you were having your teeth cleaned. That'll just attract more programmers and I am the manager so figure it out.
putting the 'B' in LGBTQ+
lolz at using heap on mcu
We're seeing it in the form of increased productivity rendering jobs obsolete. With fewer jobs people have to work more hours to make the same pay, resulting in yet more productivity and still fewer jobs. The Atlantic has an article on it. tl;dr: Our productivity gains kept pace with what Keynes predicted but hours worked stopped dropping in the 70s, resulting in massive inequality and stagnant wages for workers.
Hi! I make Firefox Plug-ins. Check 'em out @ https://addons.mozilla.org/en-US/firefox/addon/youtube-mp3-podcaster/
To a WiFi LAN. Unless you're using some sort of "cloud" library in your application (and it doesn't sound like this ESP Basic thing does), it's no less secure than any other device on your network, and if your network isn't secure then you've got far more tempting targets for an attacker than a microprocessor board.
Aside from price, that's one of the things that makes the ESP8266 device more attractive to me than one of the various boards that come with some sort of cloud tie-in; it's my decision what it's allowed to do.
I've been playing around with ESP-12's for the last few weeks and what they're capable of with the libraries available is, for the price, nuts. It's as much work to properly debounce a lousy switch than to build a wireless HTTP server with OTA updates.
Log in or piss off.
I am 43 years old, and I learned:
BASIC when I was 12
LOGO when I was 13
COBOL and RPG-II when I was 15
Pascal (the only language I learned on my own and not in classes) when I was 16.
C when I was 19
Shell Scripting (including AWK) when I was 29
Of all those, I only remember BASIC, C and Shell Scripting.
If this will let me prototype an idea fast and cheap, then it is welcome.
IIRC i read somewhere that Ken Silverman (of BUILD engine fame) used to try new algorithms first by coding them in BASIC. If that new ALGORITHM worked out as intended, he would either refine the coding until he got the intended performance, or compile the basic, or recode in C or ASM... So, if it is good for him, I guess is good for me (and a lot of other people).
Besides, there have been BASIC compilers for a long while, so, if the prototype is a success, I may as well compile, or, if push come to shove, re-write in C.
*** Suerte a todos y Feliz dia!
The Terminator actually used Apple ][ assembly.
http://mentalfloss.com/article...
Awesome furniture, accessories and cabinetry in Santa Rosa, CA: http://humanity-home.com/
You can't seriously use the words BASIC and programmer together. Just for the record, I have used it and survived but I still carry the scars 40 years later.
I'll get the popcorn :)
Seriously though I just don't care anymore. If this is the future people want, let 'em have it. And besides: all that quick and dirty basic programming actually sounds like fun (yes I cut my teeth on basic in the 80s), and maybe it will give us some high paying jobs cleaning up the mess during/afterwards.
Whatever. It's less stressful to just stop worrying and enjoy the ride.
People act like analog electronics are obsolete like the vacuum tube. The real world is analog.
Only the State obtains its revenue by coercion. - Murray Rothbard
It supports integration with thing speak. Some other cloud services will be supported here soon. It also has a function that can simply retrieve a url and place the retrieved information in to a variable. So there are multiple ways to make it interact with the cloud and personal servers using standard web technology.