Thesis problem : create a code generator...are there any good rules to foll

Hi all,
I am working on my thesis; the thesis is about writing in Java a code generator.
Well, the target is : getting a source code ( wrote in a meta language) and traslted it into another language.
I have to write the code generator in Java.
I was wondering if there were some general rules about writing this kinfd of applications.
Any suggestion ?
Cheers.
Stefano

That's not technically a code generator.
The technical name for such a tool is a transpiler.
You'd need a pretty good understanding of both languages to be able to write this, as you'd need to know how to represent code constructs in each in the other under any condition.
In my experience you almost always end up with poor code, unless maybe both languages have nearly identical paradigms.
For example transpiling a procedural language into an object oriented one will generally yield code that's neither good procedural nor good object oriented code.

Similar Messages

  • Are there any good tool for checking security risks, Code review, memory leakages for SharePoint projects?

    Are there any good tool for checking security risks, Code review, memory leakages for SharePoint projects?
    I found one such tool "Fortify" in the below link. Are there any such kind of tools available which supports SharePoint?
    Reference: http://www.securityresearch.at/en/development/fortify/
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Hi Amalaraja Fernando,
    I'm not sure that there is one more tool that combines all these features. But you may take a look at these solutions:
    SharePoint diagnostic manager
    SharePoint enterprise manager
    What is SPCop SharePoint Code Analysis?
    Dmitry
    Lightning Tools Check
    out our SharePoint tools and web parts |
    Lightning Tools Blog | Мой Блог

  • Are there any good DVD authoring programs for Mac now that Apple has discontinued DVD Studio and iDVD? I need to make DVDs that have interactive menus and such (Final Cut X and Compressor 4's DVD option is a little cheap). Any ideas?

    Are there any good DVD authoring programs for Mac now that Apple has discontinued DVD Studio and iDVD? I need to make DVDs that have interactive menus and such (Final Cut X and Compressor 4's DVD option is a little cheap and doesn't provide any kind of professional DVD authoring). Any ideas?

    This comes up a lot these days.
    Practically speaking, there are really four options for the Mac platform: Toast (<$100),  Adobe Premier Productiom ($1,600 to buy or $50/month to rent),  find a copy of Final Cut Studio from 3rd  party (+/- $1,000 new) or a boxed edition of iLife to get iDVD ($50 - $90 on Amazon new).
    The other question everyone has is how many OS versions before iDVD or FCS breaks? No one knows, but Apple has said they're no longer supporting these legacy apps. Of course, no one is mandated to upgrade to a new OS unless they buy a new computer. So if it works on a system, stay with it as long as it makes sense.
    Good luck.
    Russ

  • Are there any good third party or otherwise apps and/or plugins for imovie'11?

    Are there any good third party or otherwise apps and/or plugins for imovie'11?

    Re: Plugins for iMovie 11
    Someone just asked this question yesterday. So I am cutting and pasting the answer From Bengt Warleby
    Hi
    You can not.
    Nor to iMovie'08 or 09 or 11 - They do not accept any Plug-ins.
    How about FinalCut Pro X - I don't know but i regard to Apple way of progress - I doubt
    For iMovie up to HD6 and FinalCut Express and FinalCut Pro up to 7.0 - there are plenty.
    Yours Bengt W

  • Hi:) I want to cancel my "one year membership" for the education-programm without loosing to much money. Are there any good ideas?

    Hi:) I want to cancel my "one year membership" for the education-programm without loosing to much money. Are there any good ideas?

    You paid for one year and that's just it. If you don't use it then that's nothing anyone can change. feel free to contact sales support.
    Mylenium

  • Are there any good fax programs that work with Efax besides Efax Messenger

    I just signed up for a free months trial of Efax. I downloaded the Efax Messenger program which seems to work well except for the fact that it does not save any fax packages (on my computer) that I send out. This is an important needed feature. If I send out a package of 5 or 6 files to someone I need to be able to look up what I've sent them. The only way I can do this is to put all the files in a folder named for that particular fax, then put that folder in a second folder that is labeled faxes, then fax the files from the folder by Efax. Quite a process. I called Efax and was told that this feature was only available for a Windows Machine (Efax, catch up!)
    Are there any other programs that are easy to use and at least as good as the Efax Messenger that have that feature?
    We are traveling in a sailboat, don't have a land line. We only have a wifi internet connection when they are available, (internet cafes, etc.) or sometimes at anchor using long range wifi. I don't have the luxury of going online to check faxes all the time, hence the necessity of having them on the computer.
    Any help appreciated.
    Dan

    Just to be clear, though, reducing the resolution of an LCD can have a negative effect on image quality. LCDs have an optimal "native" resolution and setting the resolution below that native level results in a poorer quality image.
    Leopard claims "resolution independence" - I have not tried it yet, but if you read the description of this feature, you will note that it applies to the user interface elements. Granted, that's often what you notice the most (i.e. the problem with reducing the resolution below native for an LCD is that the text in Finder, all of the menu bar items, etc., looks "fuzzy"). By appropriately scaling the UI elements, Leopard overcomes the limitation. But the "fuzzyness" will still apply to non-UI things that are displayed - i.e. images. Since based on your posts you will be working with images primarily, high-res vs. standard is still a choice I'd recommend considering carefully, and ideally by trying them both side-by-side.
    Ps. Thanks for awarding points!

  • Are there any good basic/feature phones that have been discontinued?

    My brother currently has the Samsung Intensity II and it's giving him a lot of problems. After troubleshooting with tech support it is best for him to replace the phone. The insurance deductible is $45 but the phone will likely be refurbished. I am seeking a non-smartphone for him that I can purchase via eBay or Craigslist. Because he is 16, he wants some type of smartphone. Preferably the iPhone or a low/mid-grade Android phone. I won't allow him to get a smartphone until he gets a job and pays for the phone and monthly data plan.
    I am sort of disappointed in the selection of basic phones on the Verizon website - there are only 7 phones under $100. It seems backwards that there are 23 smartphones under $100. The conspiracy theorist in me would think this is a ploy to coax customers to move towards smartphones but I digress. I have been looking at the Samsung Brightside and the ZTE Adamant (discontinued - not offered on vzw.com) and they seem pretty cool and reasonably priced on eBay. Are there any other basic or feature phones that you would recommend [including discontinued and upcoming phones]?
    I would rather not purchase a phone directly through Verizon so that it does not extend the contract or interfere with his upgrade date (to ensure that he will be able to afford the phone of his choice when he is ready).

    Another vote for the Env3 - son and daughter both had them (18 and 21) and they were more than adequate phones and worked well for them.  My son (now nearing 24) is still using his though he is eligible for an upgrade now - he likes it and sees no reason to change until it quits on him.
    The Alias (original) was a good phone for my daughter before her Env3, and I really enjoyed my LG Voyager, touchscreen.  None of the phones require a data plan, if you can find them.

  • Are there any good free templates for motion like the 8 that come with it?

    Hi,
       Are there any decent free templates out there for Motion - similar to the ones that it ships with (ie small intros, lower thirds, etc..)
       Thanks!
      - Jack

    You may want to check here first.
    http://www.fcp.co/forum/9-free-fcpx-plugins-and-templates

  • Are there any good black box testing tools for j2me?

    Is there any good testing tools available for testing software on physical mobile devices?
    I would like to partially replace manual testing with automated testing using a test tool. It should work on physical devices, and with the help of a script it should be possible to execute predefined sequences of button pressings on the device. Preferably there should also be some way of deciding whether the test was a succes without having to do so entirely manually.
    The purpose with this would be to make it easier to go through the test protocols, which has to be done before every new software release.
    Deviceanywhere.com looks promising at first glance but it is rather costly. Still, does anyone have an opinion of it?
    Does anyone has experience of Mobile junit for this kind of testing? Is it possible to define series of physical button pressings with it? At first glance it doesn't seem so.

    You can collect the Organizational Health in Exchange 2010 console for Exchange 2003/2007/2010 and that will list very useful information about statistics in your organization like servers, databases, CALs, recipient, feature used etc...
    Collect Organizational Health Data -
    http://technet.microsoft.com/en-us/library/dd351156%28v=exchg.141%29.aspx
    However it doesn't contain any configuration information and that you need to collect it manually because that depends on needs of each organization and how they want to setup their infrastructure...

  • Are there any good code examples for displaying preview images in the storefront?

    I can gather other info using folio.xxx, but can not find any good examples to use for preview images.  Tried folio.getPreviewImage() with no success.  Oh, I should mention it is version 2.  Plenty of examples for version 1.
    Perhaps if I get a little more specific.
    I am calling up the folios via:
           adobeDPS.libraryService.folioMap.addedSignal.add(function(folios) {
                for (var i = 0; i < folios.length; i++) {
                    addFolio(folios[i]);
            }, this);
    This eventually works into a function where I am gathering and displaying folio data:
         var productId = folio.productId;
        var html  = "<div id='" + productId + "'>";
            html +=     "<a href='#'><img class='shadow' width='120' src='' border=0 /></a>";
            html +=     "<br /><span class='bold'>" + folio.title + "</span>";
            html += "</div>";
        this.$el = $(html);
    folio.title works fine to pull up the title, but I can no longer use folio.getPreviewURL in v2.  What code should I be using to set the src to the preview image?
    Thanks

    Have you looked at the default implementations of the library?
    In FolioItemView's render function, there is a function(follow the nested functions!):
    setTimeout(function(){ scope.loadPreviewImage() }, 100);
    It references this function (this doesn't copy well):
    loadPreviewImage: function() {
    if (this.el.parentElement) {
    var transaction = this.folio.getPreviewImage(135, 180, true);
    transaction.completedSignal.addOnce(this.getPreviewImageHandler, this);
    Going deeper, into the getPreviewImageHandler function is where you see the url value..
    if (transaction.state == adobeDPS.transactionManager.transactionStates.FINISHED && transaction.previewImageURL != null) {
                                  this.$el.find(".folio-thumb").attr("src", transaction.previewImageURL);
    Within the example is also code for supplying a preview when the Adobe API is not available:
    (Within the render function)
    var json = this.model.toJSON();
    $folioThumb.attr("src", json.libraryPreviewUrl);
    If you're making any changes to where the preview is displayed, you can just swap out the class ".folio-thumb" to whatever the class (or id) is of the element you're wanting to render the preview in.

  • Are there any good tutorials on how to do digital paintings?

    I have some drawings of mine that I wanted to turn into digital paintings. I can't find any good tutorials on YouTube. This is an example of something I would like to learn:

    These are my favourite
    http://www.ctrlpaint.com/
    Digital Tutors has some good stuff
    http://www.digitaltutors.com/11/index.php?gclid=CNaF38q14MMCFQpwvAodMJwAbg
    But you need to register an account for both of them.  Lots of titles out there if you look though.
    The Bert Monroy titles on Lynda.com are also very good, but a slightly different style.  More illustration that digital painting.  Take a look at his huge Times Square graphic to see what he does.  Zoom way way in to see the incredibly detail
    Times Square
    Loads of of tips and tricks in Steve Caplin's 'How to Cheat in Photoshop', and even better '100% Photoshop'.
    Good luck and have fun.  By far the most enjoyable way to use Photoshop in my opinion.

  • PHP code generated by DW any good.....?

    Hi guys
    Ive been looking at server behaviours etc that DW has and was wondering what people thought of the code generated.
    It still looks very double dutch to me but any opinions on it would be great

    The "problem" with any stock code is that it has to be as generic as possible.
    For instance, if you need to add two numbers, you could use a general arithmetic function that adds, divides, etc. two or more numbers, checking for fivision by zero and all that. Or you could write your own code that did just what you needed, and nothing more. But then if you later wanted to multiply two numbers, you would back at the beginning writing your own code (again).
    Don't know if this really answers your question. Hope it helps.

  • Are there any good Oracle Applications forums or lists around?

    Hello Community,
    I am looking for any good Forums, Lists dedicated to Oracle Applications DBA questions. I would really appreciate if you would add some to that thread.
    I am reading oracle-l list for a long time now and would recommend to others.
    But this one is Oracle Core (RDBMS) focused.
    Thank you in advance,
    Yury

    Hello Oracle Apps DBA community,
    A new mailing list [email protected] has been created!
    Feel free to subscribe by sending email to
    [email protected] with 'subscribe' in the Subject field
    Feel free to unsubscribe :) by sending email to
    [email protected] with 'unsubscribe' in the Subject field
    This list is dedicated purely Oracle Apps DBA job related questions.
    Let share our experience, options and problems. Together we will make our job more efficient.
    If your job is Oracle Apps DBA please WELCOME to join the list.
    I am sure you will not regret.
    More information about new list available on:
    http://www.freelists.org/archives/ora-apps-dba/05-2006/msg00000.html
    Thank you in advance,
    Yury
    5 years Oracle Apps DBA.

  • I have the 4s and I updated to the ios6 and it seems like my battery life is shorter ...is this a problem for anyone else?  Are there any fixes?

    I have the 4s and since I updated tithe ios6 my battery seems to run down quicker...anyone else having this issue?  Any fixes?

    http:///discussions.apple.com/thread/4313585?start=0&tstart=150
    http://discussions.apple.com/thread/4310494?start=0&tstart=0
    2 ongoing discussion already on this topic, 2nd link has some suggestions to improve battery life.

  • Are there any good external transflective displays to use with the MacBook Pro?

    I have an early 2011 macbook pro, which is great for indoor use, but is absolutely unusable outside. I like to work outside when possible, but the glare on the screen makes it impossible.
    I know there are transflective LCD displays that work great outside, like the Pixel Qi displays, which even support 1280x800 resolution (http://pixelqi.com/our_screens). I'm wondering if there's a consumer implementation of these that I could buy and plug into my macbook to use as my display while working outdoors.
    Has anyone found a good portable transflective monitor that can plug into the mini display port or usb?

    The new features can be found here:
    http://rufus.deuchler.net/2011/05/the-adobe-illustrator-new-features-cheat-sheet.html
    As for the tutorials, I assume that would be very difficult, since people have moved on to the next version and you'll find a mixed variety of versions covered on most tutorial websites.
    I would try Lynda.com. They might still have trainings categorised by versions.
    And of course the Illustrator WOW book. You might even get used copies.

Maybe you are looking for