Slashdot Mirror


User: Skapare

Skapare's activity in the archive.

Stories
0
Comments
6,883
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 6,883

  1. Re:Other uses for Dart? on Google Ports Box2D Demo To Dart · · Score: 1

    Is this a programming language with an existing shell script interpreter style implementation, too?

    An interpreted language bundled with a REPL? I'm not sure if Dart has a REPL, but it would be pretty trivial to implement. Fortunately the Dart specification *does* support shebangs (so #!/usr/bin/dart), check out the relevant section here (they call it a script tag). Here's an excerpt:

    A library may optionally begin with a script tag, which can be used to identify the interpreter of the script to whatever computing environment the script is embedded in. A script tag begins with the characters #! and ends at the end of the line. Any characters after #! are ignored by the Dart implementation.

    I don't understand why they need the #! script tag for a library. How about for a main script? Just put that on a "hello world" example, make it executable, and see if it runs.

    So where's the source code to build /usr/bin/dart from? I don't see a download link on their website.

  2. Re:Other uses for Dart? on Google Ports Box2D Demo To Dart · · Score: 1

    Yes, you can run it from the command line via the Dart VM without translating it to Javascript. Haven't tried #!/bin/dart style invocation though - but being open source someone is probably working towards it if it doesn't yet support it.

    I've used Dart a bit and it really is a great language - not so different that it takes ages to learn, but IMHO a big improvement on both Java and Javascript.

    It should not be hard. Someone already familiar with how the Dart native runtime engine works (I'm not one of those, so excuse me if that term to describe it is technically wrong, but I think you probably know what I am referring to) should be able to whip it out in a day or so and clean it up in a few weeks. They just need to set up a few pieces: the common language interpreter, a minimal library where needed, and something to make sure the hash-bang in line one is treated as a comment that can supply parameters. That should include the basic things a shell script can do, with a subset of system functions to do filesystem stuff directly (no need to run the "mkdir" command, for example ... just call mkdir() via a mkdir() stub), all integrated into a single executable that can be built as a fully linked static executable. Then additional functionality can be added on via some mechanism to load that functionality as needed (either explicit or implied), either from a .so binary (where the functionality would be better done in C, such as the remainder of syscalls) or in Dart itself. But the important point that needs to be understood and done correctly is that all the functionality needed to do what system rc scripts do should be doable as the system is starting up even before stuff like "ldconfig" is run (how about implement "ldconfig" in Dart as a proof of concept). The ultimate test would be to implement the "init" program itself in Dart, running entirely in a statically linked executable interpreter that is no larger than (my arbitrarily chosen size of) 4MB (and that's generous).

    I have a program I wrote in C that gets executed by the Linux kernel as PID 1 (from initramfs). It is statically linked so no libraries are needed. It looks at all the block devices to find one that appears to most likely contain the root filesystem it wants to run (if the UUID is what it is looking for, the first to have an exact UUID match is it). That program then pivots that filesystem to "/" and runs "/sbin/init" to start the system up. This is all done by having my executable, and maybe a /dev/console device, in the initramfs image. What I want to be able to do is implement that same thing in Dart as a script file, and having the dart interpreter executable file there, and no other files or libraries, and have it do the same thing. Do that and then I will know we have a winner. This does not mean that "system is fully up" stuff has to use the same thing. But this "mini-Dart" should still be usable at all times, too.

    The project also needs a way for interested parties to start communicating with them W/O having to subscribe to a mailing list. Mailing lists are "so 2nd millennium". I quit mailing lists years ago.

  3. Re:I wish I could say I'm surprised on Facebook, Google Argue Against Web Censorship In India · · Score: 4, Insightful

    No surprise. Politicians are not people that have a passion for creativity (from art to innovation). They are people that have a passion for manipulating and controlling others (and school board members are wanna-be-politicians that failed at manipulating and controlling adults).

    The problem with pulling out of India is that, eventually, the issue will be resolved. By then, other companies will have taken over in place of Google, Facebook, etc. There is a distinct possibility this action is being done by the government for the purpose of allowing some unknown government "patron" (e.g. bribery) to be given this opportunity to move in on Google and Facebook (not that I would mind that).

    These kinds of attacks (not specifically this exact kind) by many government around the world seem to be happening for one reason or another. Maybe they just resent the fact that the internet was not created by them?

    BTW, you forgot Myanmar in that list.

  4. Other uses for Dart? on Google Ports Box2D Demo To Dart · · Score: 2

    Is this a programming language with an existing shell script interpreter style implementation, too? If so, then I might have actual use for it. Basically, that means a light-weight interpreter (light enough to use it during system boot up to run rc scripts, so not more bloated than bash in its basic form) could be named in the script like having "#!/bin/dart" on the first line, and it would execute the file however it is designed to run them. I'm not talking about using in a browser here. For extended features beyond shell script code, it should have modules (in binary .so files or in Dart) that it can load.

    I'm just starting to use Lua for this kind of thing now. Lua was intended as an embedded language, but has a shell script style interpreter which is pretty much a nice example of simple embedding. If they put Dart in a browser, and implemented it cleanly in the process, then a shell script embedding should be trivial. Have they done that?

    I'd be more impressed if they make Dart do all these kinds of things (including directly run in a web server) than by implementing Box2D in it. That would mean a clear separation of execution from environment, something that Javascript only partially succeeded doing. Something that Lua did succeed at, but I still want a C-like syntax class for.

    Oh, and I would definitely love to have a clean integer-only typing available, something I consider a major problem with Javascript.

  5. You are not the only one. on Ask Slashdot: Open Source vs Proprietary GIS Solution? · · Score: 2

    How effing accurate does such a thing even need to be in a social networking context? Still, it wouldn't be hard to get this down to sub-meter accuracy. It could be hired out if need be on one of those programming task sites for under $1000 (far less that the $20000 initial outlay to put up a decent couple of machines to do it in an MS-SQL way).

    I suspect there's a band of "we are scared of maths" programmers somewhere near the OP.

  6. The hard part of this ... on Ask Slashdot: Open Source vs Proprietary GIS Solution? · · Score: 1

    ... to me is the cost of obtaining all the data in a usable form. The logic itself would be easy.

    It could be done very easily in a no-SQL solution. Doing it through SQL because some SQLover is making decisions would be only slightly harder. The SQL lookup would be delivering 4/3.14159 times as much data as actually needed for a circular result, and then that would be filter by whatever front-end or back-end code to cleanly clip off the corners, of the SQL implementation didn't have the math to do it (and I might not trust SQL to do that kind of stuff as efficiently as it could).

    Let my logic organize the data into grid squares in files and I could make this work very fast. But I need the data (or at least uniformly spread random sample of a few billion items) to test it.

  7. Re:E85 Has Been Dead For Years Here on Is E85 Dead Now? · · Score: 2

    And they make up for that 3% by raising taxes to cover the subsidy. You lose whether you buy it or not.

  8. I'm all for keeping E85 if ... on Is E85 Dead Now? · · Score: 4, Insightful

    ... it drives up the price of high fructose corn syrup.

  9. I guess I'll have to go back to using ... on Is E85 Dead Now? · · Score: 1

    ... that E80 stuff.

  10. Yet another reason you cannot find ... on Facebook To Share Private Data With Politico · · Score: 1

    ... Skapare on Facebook.

  11. Re:Next step on White House Responds To SOPA, PIPA, and OPEN · · Score: 1

    I has fc00::/7 ... triple Muahahahahahaha!!!

  12. Consulted with ISPs? on Protect IP Act May Be Amended · · Score: 1

    Leahy defended the bill, saying the ISP provisions were developed in consultation with major service providers. Several ISPs support the bill, he said in comments on Vermont Public Radio. However, sponsors of the bill have heard concerns about its effect on the domain name system from fellow lawmakers, Internet engineers, human rights groups and "a number of Vermonters," he said.

    I want a list of the ISPs that were consulted. That way I can improve the accuracy of my list of ISPs that are incompetent about their technology. But something tells me they didn't actually do this consultation with the engineering people that actually understand what is going on.

    Of course, this is all aside from the fact that the content industry continues to pimp Congress to whittle away people's rights and give government support to businesses using a fundamentally flawed business model.

  13. Re:I'll jump in on Astronomers Estimate Milky Way May Have 100 Billion Alien Worlds · · Score: 1

    I say there are 2.

  14. Re:This Universe Sucks on Astronomers Estimate Milky Way May Have 100 Billion Alien Worlds · · Score: 3, Funny

    Those who figure out how to avoid the physical laws are the 0.0001%-ers that don't need money.

  15. Re:And apparently... on What Does Sunset On an Alien World Look Like? · · Score: 1

    It's also a somewhat bloated software stack, too:

    Apache mod_qos/9.69 mod_fcgid/2.3.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.exoclimes.com Port 80

    No lean mean page serving machine here (it can take something like that to make it through a slashdotting.

  16. Re:And conveniently enough on What Does Sunset On an Alien World Look Like? · · Score: 1

    We know what the atmosphere on Earth is like VERY well, and yet we cannot get a single image that shows what a sunset always looks like, because details of the atmosphere change, every day, everywhere. I very much doubt it is that simple on any distant planet.

  17. Re:Not just photography on Kodak Failing, But Camera Phones Not To Blame · · Score: 2

    A decent CEO could turn that place around.

    A decent CEO could create more value by having less baggage. So decent CEOs that know how to innovate don't want to be anywhere near a place that has to deal with everything else. Decent CEOs go to, or make, a startup, and get out before it goes supernova.

  18. Re:I remember just 6 years ago on Kodak Failing, But Camera Phones Not To Blame · · Score: 1

    Harvard MBAs. Whaddya expect?

  19. Re:Yay! I'm above average. on IT Salaries Edge Up Back To 2008 Levels · · Score: 1

    A more meaningful measure would be the TOTAL of all salaries in IT (with break down subtotals for various IT areas).

  20. Scrap stupidity on Japan Plans To Scrap Nuclear Plants After 40 Years · · Score: 0

    Why not just scrap stupidity in how nuclear power plants are installed, and the technologies that are used ... as well as the politicians that get bought out to support it (yeah, corruption exists in Japan, too). First of all, a plant right next to the sea shore would just asking for trouble. Also look into Thorium for the reaction process, which has fewer risks and more advantages compared to Uranium.

  21. We're dropping Firefox on Firefox 3.6 Support Ends April 2012 · · Score: 0

    The upgrade rate is too fast to keep up with. By the time Firefox gets out through stable distributions it's already 2 or 3 versions old. IE isn't even this bad. And if it were not for the fact that we actually do run Linux on most of our desktops, I would give IE serious consideration now. Firefox and Mozilla has been a serious let-down. Chrome or Opera looks like where we might be going.

  22. Re:When in Rome on Australian Deported From Bahrain Over Facebook Posts · · Score: 1

    It's probably best not to write bad things about the Emperor.

    Seriously, when you're in somebody elses country you need to be really mindful about what you say or do that's likely to upset the government.

    Or the people that run the government.

  23. Re:I've already got that... on Windows 8 To Include Built-in Reset, Refresh · · Score: 1

    Fortunately this idea is sufficiently obscure that malware doesn't know about it. So your zip file, and the Linux system that holds it, are safe. If this catches on, malware writers might figure it out. I do something similar, but being overly paranoid I have the partition sector image file saved (compressed with xz which gets it tighter) on a DVD that can also boot its own Linux. I also have the Linux system saved the same way on another DVD. And lately to support my netbooks more conveniently, I have a SDHC memory card set up the same way. I went with SDHC since USB doesn't have a read-only switch.

  24. No way on Windows 8 To Include Built-in Reset, Refresh · · Score: 1

    Of course there will be no way that malware could ever alter the saved images ... no way ... right? ... uh ... right? ... oh wait! There it is, it just popped up a message and said I don't need to insert the DVD afterall.

  25. Re:slashdot needs this feature too... on Windows 8 To Include Built-in Reset, Refresh · · Score: 1

    An ignore feature would be sufficient for that. It should also include an option to ignore dups.