PRESS-NEWS.org - Press Release Distribution
PRESS RELEASES DISTRIBUTION

System that automatically fills gaps in programmers' code gains power

2014-02-25
(Press-News.org) Since he was a graduate student, Armando Solar-Lezama, an associate professor in MIT's Department of Electrical Engineering and Computer Science, has been working on a programming language called Sketch, which allows programmers to simply omit some of the computational details of their code. Sketch then automatically fills in the gaps.

If it's fleshed out and made more user-friendly, Sketch could ultimately make life easier for software developers. But in the meantime, it's proving its worth as the basis for other tools that exploit the mechanics of "program synthesis," or automatic program generation. Recent projects at MIT's Computer Science and Artificial Intelligence Laboratory that have built on Sketch include a system for automatically grading programming assignments for computer science classes, a system that converts hand-drawn diagrams into code, and a system that produces SQL database queries from code written in Java.

At this year's Verification, Model Checking, and Abstract Interpretation Conference, Solar-Lezama and a group of his students — grad students Rohit Singh, Rishabh Singh, and Zhilei Zu, along with MIT senior Rebecca Krosnick — described a new elaboration on Sketch that, in many cases, enables it to handle complex synthesis tasks much more efficiently. The researchers tested the new version of Sketch on several existing applications, including the automated grading system. In cases where the previous version would "time out," or take so long to reach a solution that it simply gave up, the new version was able to correct students' code in milliseconds.

Sketch treats program synthesis as a search problem. The idea is to evaluate a huge range of possible variations on the same basic program and find one that meets criteria specified by the programmer. If the program being evaluated is too complex, the search space balloons to a prohibitively large size. In their new paper, the researchers find a way to shrink that search space.

Chain of command

"When you're trying to synthesize a larger piece of code, you're relying on other functions, other subparts of the code," Rishabh Singh explains. "If it just so happens that your system only depends on certain properties of the subparts, you should be able to express that somehow in a high-level language. Once you are able to specify that only certain properties are required, then you are able to successfully synthesize the larger code."

For instance, Singh explains, suppose that one of the subparts of the code is a routine for finding the square root of a number, and a higher-level function relies on the results of that computation. If the previous version of Sketch were trying to evaluate variations of the high-level function, for each variation, it would also have to evaluate variations of the square-root function. Since finding square roots is a complex process, that would make the search prohibitively time-consuming.

With the new version of Sketch, however, the programmer can simply specify conditions that the square-root function has to meet: The output multiplied by itself must equal the input. Now, Sketch can satisfy itself that the square-root function it comes up with meets that criterion and move on to the higher-level function. It doesn't need to re-evaluate the square-root function at every pass.

In fact, this places a slightly greater onus on the programmer, who now has to reason about the criteria that each low-level function must meet. But it allows Sketch to handle much more complicated problems.

Immediate prospects

Solar-Lezama concedes that it will take a good deal of work before Sketch is useful to commercial software developers. "The application as a tool-building infrastructure, using it to build higher-level systems on top of it, we've demonstrated very convincingly by building a variety of systems that do things that couldn't be done before," he says.

He has, however, conducted usability studies with Sketch, recruiting MIT undergraduates with only a semester's worth of programming experience to test it. In all cases, he says, the students successfully used Sketch to produce working code. But in many cases, the missing code took an unacceptably long time to synthesize, because of the way the students had described the problem.

"It still requires a level of expertise and understanding about the underlying technology in order for it not to blow up," Solar-Lezama says. "As far as the more ambitious goal of everybody dumping C and using Sketch instead, we'd still have to push quite a bit."

INFORMATION: Written by Larry Hardesty, MIT News Office

Additional background

Paper: "Synthesis of sketches using models": Synthesis of Sketches using Models: http://people.csail.mit.edu/rishabh/papers/modelsVMCAI14.pdf


ELSE PRESS RELEASES FROM THIS DATE:

NASA's SDO shows images of significant solar flare

NASAs SDO shows images of significant solar flare
2014-02-25
The sun emitted a significant solar flare, peaking at 7:49 p.m. EST on Feb. 24, 2014. NASA's Solar Dynamics Observatory, which keeps a constant watch on the sun, captured images of the event. Solar flares are powerful bursts of radiation, appearing as giant flashes of light in the SDO images. Harmful radiation from a flare cannot pass through Earth's atmosphere to physically affect humans on the ground, however -- when intense enough -- they can disturb the atmosphere in the layer where GPS and communications signals travel. To see how this event may impact Earth, please ...

Scientists explore promising new option for first line of attack in lymphoma

2014-02-25
A study led by Manchester scientists has shown promising results for a new treatment approach in follicular lymphoma. Follicular lymphoma is a type of non-Hodgkin's lymphoma– a blood cancer - that usually develops slowly. The majority of patients are diagnosed when their disease is at an advanced stage. Recent improvements in treatment have included the use of antibodies to specifically target the tumour cells and to stimulate the patient's own immune system to attack their tumour. The use of such antibodies has improved treatment response, but unfortunately most patients ...

Tumors 'light up' with new, unique imaging system using scorpion venom protein and a laser

2014-02-25
LOS ANGELES (Feb. 24, 2014) – Researchers at the Cedars-Sinai Maxine Dunitz Neurosurgical Institute and Department of Neurosurgery have developed a unique, compact, relatively inexpensive imaging device to "light up" malignant brain tumors and other cancers. The experimental system consists of a special camera designed and developed at Cedars-Sinai and a new, targeted imaging agent based on a synthetic version of a small protein – a peptide – found in the venom of the deathstalker scorpion. The imaging agent, Tumor Paint BLZ-100, a product of Blaze Bioscience Inc., homes ...

Real time forecast of Hurricane Sandy had track and intensity accuracy

2014-02-25
A real-time hurricane analysis and prediction system that effectively incorporates airborne Doppler radar information may accurately track the path, intensity and wind force in a hurricane, according to Penn State meteorologists. This system can also identify the sources of forecast uncertainty. "For this particular study aircraft-based Doppler radar information was ingested into the system," said Fuqing Zhang, professor of meteorology, Penn State. "Our predictions were comparable to or better than those made by operational global models." Zhang and Erin B. Munsell, ...

The only top 10 cancer where survival rates are falling

2014-02-25
Of the top 10 cancers in the UK, bladder cancer is only one where survival rates have been shown to be getting worse. New figures published this month in the Journal of Clinical Urology confirm in a study of cases of bladder cancer in England over a 19 year period (from 1990 until 2009) that survival rates here in the UK are falling and are worse than in than in other European countries with similar incidence rates. Shockingly, bladder cancer isn't a rare cancer that only affects a few people every year. In fact, bladder cancer is our 7th most common cancer (the 4th most ...

Study shows mentally ill more likely to be victims, not perpetrators, of violence

2014-02-25
New research shows that almost one-third of adults with mental illness are likely to be victims of violence within a six-month period, and that adults with mental illness who commit violence are most likely to do so in residential settings. The study also finds a strong correlation between being a victim of violence and committing a violent act. The work was done by researchers at North Carolina State University; RTI International; the University of California, Davis; Simon Fraser University; and Duke University. "We hear about the link between violence and mental illness ...

Anti-vaccine conspiracy theories may have 'detrimental consequences' for children's health

2014-02-25
A belief in anti-vaccine conspiracy theories may have significant and detrimental consequences for children's health, new research from the University of Kent has shown. Researchers Daniel Jolley and Dr Karen Douglas, of the University's School of Psychology, surveyed 89 parents about their views on anti-vaccine conspiracy theories and then asked them to indicate their intention to have a fictional child vaccinated. It was found that stronger belief in anti-vaccine conspiracy theories was associated with lower intention to vaccinate. In a second study, 188 participants ...

It's all water over the dam -- but how and when it falls has huge impact on salmon

Its all water over the dam -- but how and when it falls has huge impact on salmon
2014-02-25
RICHLAND, Wash. – By adjusting water discharges in ways designed to boost salmon productivity, officials at a dam in central Washington were able to more than triple the numbers of juvenile salmon downstream of the dam over a 30-year period, according to a study published Feb. 25 in the Canadian Journal of Fisheries and Aquatic Sciences. "This is one of the most productive populations of fall Chinook salmon anywhere in the Pacific Northwest," said Ryan Harnish, first author of the paper and a fish ecologist at the Department of Energy's Pacific Northwest National Laboratory. ...

Teenage girl suffers second-degree burns in iPhone fire

2014-02-25
Teenage girl suffers second-degree burns in iPhone fire Article provided by Miller Schirger LLC Visit us at http://www.millerschirger.com A 13-year-old girl was treated for second-degree burns recently after her smartphone caught fire in her pocket while she was sitting in school. Although the exact cause of the fire has not yet been determined, some commentators have speculated that it may have been due to a dangerous defect in the phone itself. A popping sound, then smoke According to a report by PCMag, the eighth-grader was carrying the two-month-old iPhone ...

The Texas bad faith insurance claim

2014-02-25
The Texas bad faith insurance claim Article provided by Kustoff & Phipps, L.L.P. Visit us at http://www.kplegal.com Insurance permeates many aspects of our lives. At a minimum, most Texans have health, house or renter, car and life insurance. Long-term care insurance pays for nursing home and similar care. Malpractice or professional liability insurance protects professionals against claims of negligent or reckless professional conduct. Most business owners need liability, property, business interruption coverage, and more depending on the unique needs of their ...

LAST 30 PRESS RELEASES:

Global cervical cancer vaccine roll-out shows it to be very effective in reducing cervical cancer and other HPV-related disease, but huge variations between countries in coverage

Negativity about vaccines surged on Twitter after COVID-19 jabs become available

Global measles cases almost double in a year

Lower dose of mpox vaccine is safe and generates six-week antibody response equivalent to standard regimen

Personalised “cocktails” of antibiotics, probiotics and prebiotics hold great promise in treating a common form of irritable bowel syndrome, pilot study finds

Experts developing immune-enhancing therapies to target tuberculosis

Making transfusion-transmitted malaria in Europe a thing of the past

Experts developing way to harness Nobel Prize winning CRISPR technology to deal with antimicrobial resistance (AMR)

CRISPR is promising to tackle antimicrobial resistance, but remember bacteria can fight back

Ancient Maya blessed their ballcourts

Curran named Fellow of SAE, ASME

Computer scientists unveil novel attacks on cybersecurity

Florida International University graduate student selected for inaugural IDEA2 public policy fellowship

Gene linked to epilepsy, autism decoded in new study

OHSU study finds big jump in addiction treatment at community health clinics

Location, location, location

Getting dynamic information from static snapshots

Food insecurity is significant among inhabitants of the region affected by the Belo Monte dam in Brazil

The Society of Thoracic Surgeons launches new valve surgery risk calculators

Component of keto diet plus immunotherapy may reduce prostate cancer

New circuit boards can be repeatedly recycled

Blood test finds knee osteoarthritis up to eight years before it appears on x-rays

April research news from the Ecological Society of America

Antimicrobial resistance crisis: “Antibiotics are not magic bullets”

Florida dolphin found with highly pathogenic avian flu: Report

Barcodes expand range of high-resolution sensor

DOE Under Secretary for Science and Innovation visits Jefferson Lab

Research expo highlights student and faculty creativity

Imaging technique shows new details of peptide structures

MD Anderson and RUSH unveil RUSH MD Anderson Cancer Center

[Press-News.org] System that automatically fills gaps in programmers' code gains power