Better HN
topnewbestaskshowjobs
Log inSign up

srcmap

588 karma · joined Jul 7, 2013 (13y ago) · 348 submissions

www.srcmap.org

https://www.twitter.com/srcmapy

Submissions

comment 9y ago · link · parent

Love to see the benchmark on clean build of Android Platform (AOSP) code base.

I remember it took somewhere between 40 -minutes - 2 hours depend on system and which AOSP version to build.

comment 9y ago · link · parent

I love to see someone prove D as a Better C by porting the "small" sqlite 124K line of C code to D and run some benchmark/test code against it.

I used to work on OO database engine that handles billions of records.

I end up rewriting/overloading my own new/delete and redesign everything how data is load/store around it. Shorten the open/close document time from hours to seconds for large documents.

Basically, one can easily mmap billions of records directly into data structures accessible by C API easily in a few ms. One can dispose billions of records also in a few ms. I saw similar design patterns from the sqlite code base.

Language with memory safety (GC) design in mind won't allow anything like that as far as I know.

I love to see some D experts prove me wrong.

comment 9y ago · link · parent

There might be another way.

I heard from "Security Now" podcast that there is a new law that require all government purchased IOT devices must be update-able to fix security issue.

Expand the law a bit:

Make all internet connected device makers (Include phone maker) liable for any loss of private consumer info, hack for 10 years from any internet connected devices release.

Anyone can file lawsuit against them easily or in class actions against the vendor if they don't provide security fixed/upgrade within 4-6 months of from being notify of the vulnerability.

Establish an ISO security standard for IOT (and all Phone): such as

1) Standardize SW/FW update requirement, method and audit. ssl, security hash, CA, etc.

2) Requires system to monitor and log all program/critical system components creation/execution/all internet connection and download for auditing by owner of device.

3) Require system vendors to have source code / tools chain / build system in place to rebuild and fix security issues.

Once the vendors are liable for hack. They will need Insurance. The Insurance Company can follow the ISO security standard to audit and estimate the potential cost.

comment 9y ago · link · parent

Love to the Servo from Mozilla take over the world soon.

comment 9y ago · link · parent

I love google desktop search (RIP 2011.)

Last year I found a windows version of it online and found it still usable even in windows 10. Very unsafe I know - I did use ProcExploer+VirusTotal to check its binary signatures on 60+ scanner sites.

It still much better/faster than the native Win10 Cortana search.

Love know if there any open source clone of it?

comment 9y ago · link · parent

This will be the time where setup HW watch dog should help.

After the upgrade, before the reboot, setup the HW watch dog for 2-5 minutes. Setup the boot-old-kernel flags as default in the uboot/EFI/grub/or your system boot loader.

If the upgrade the successful (connect to back to the server) and function correctly, disable the "boot-old-kernel" flags in your bootloader.

As always, do a lot of testing and automate those tests. You will be surprise how often a simple boot/reset/power cycle can fail if you repeat it over and over again in a weekend.

comment 9y ago · link · parent

We wish they claiming copyright on the domain name.

In that case, we are legally require to update all DNS servers' entries to remove that name permanently. :-)

Or alias it to 0.0.0.0 !!!

comment 9y ago · link · parent

Chrome compilation should be heavily parallelized. (It is my core use case. I only care about system big project compilation speed. )

The report seems to show Intel 4C/8T is doing better than AMD 8C/16T with much bigger L2/L3 cache config.

Is 7700K really that good? Can anyone from AMD explain this?

Intel (Kaby Lake) Core i7 7700K (91W, $339) 4C/8T, 4.2 GHz, 1MB L2, 8MB L3 17.81

AMD (Zen) Ryzen 7 1800X (95W, $499) 8C/16T, 3.6 GHz, 4MB L2, 16MB L3 16.32

comment 9y ago · link · parent

My kids played with it a few times on long drive to tell me where he spotted the police car(s), accidents, etc.

Kind of fun thing for your kids to do on a long drive. That might be why the cartoon like interface.

Like Pokemon Go, the constant network traffic + GUI interaction makes it huge battery drain. I deleted the app from my phone.

Google map's traffic info is very good. I suspect Google paid that much likely because potentially FB, MSFT or Amazon "might" get it and use it is a beach head to enter the Mobile Map App market. If that's the case, it is a very good play on Waze's part to get the high valuation.

comment 9y ago · link · parent

From the article:

"Secure Virtualized Encyrption (SEV). SEV in many ways resembles the SME, but in this case, it enables owners to encrypt virtual machines, isolating them from each other, hypervisors, and hosting software. "

Sounds like the keys are managed by VMs can isolated from hypervisors/hosting software.

comment 9y ago · link · parent

TDD always worked for me.

All successful projects in my career had full functional regression test coverage.

For those successful projects, I made following conclusions:

  * My personal TDD process are:

    * Script enable - always run every night, every weekends.
         Output to html files to see overall green/red in < 1 second.


    * When any existing test broke, fix/debug the tests are the highest priority before any more features development.

      * The test reports from all the nightly and weekend test should always be green.

      * Any red(s) will stop all features dev. 
    
    * There are 5 minutes function test scripts that require to run before every commit.

      * Normally, I prefer commit in the morning after overnight test runs were all green.




  * These were small project with team only 1-2 devs. 

    * Much easier to enforce the process.    (Just need to convince I, me and myself.) 

    * I worked on big team projects with 100+ devs.  

      * I can test only my own part of code.  For any big team, I can take the horses to the water but can't make anyone to drink it.   The overall system SW quality was still bad.


  * I Only do full functional tests - I don't do any small unit tests with mocks.

      * For CDRW drive, there were 100+ test cases for 
          close, read, open, repeat, 
          close, read, write, loop, open, repeat, 
          for different CD format, disk, drive, etc

      * For DNA sequencer machines, there were tests for 
          Motor controls, 3 axis robot, 
          CCD camera, laser control, script subsystem, comm sub sys,  etc. 
          (This is old project, 20+ yrs ago)  
          Deployed in the field for 15+ years with version 1.0 Firmware.  
          Good for company bottom line - not sure for the SW guy's career.  :-) 
           (Multi billions $$$ of revenue for the company, $500+M first year)


      * For video decoder systems with 19FPGA + 10G network:  (10+ years ago)
         Streaming control, snmp, IGMP, all each has their own test scripts and 
         combine system level scripts for complex network, HA setup.  
         Deployed in Comcast for long time without any issue. 
         Only one issue reported was system has problem after 255 days of 
         non-stop running.  
         I did have test case for 10 ms counters (for SW bug happened for 25, 49 days) 
         I didn't create test case 100ms counters (for SW bug happened after 255 days). 

 
         Again, very good for company bottom line.   
           (Tens millions $$ of revenue for the startup)
           But the company don't need me anymore after they shipped that product.

comment 9y ago · link · parent

Sometime, I felt force all IOTs devices, typical laptops, Phones, behind NAT is actually safer for internet as whole.

Security via network segmentation. IMO, NAT gateway is good place to lock down and put in network security appliance to track/block all the unwanted connections.

comment 9y ago · link · parent

Human societies seem to evolve to fewer languages.

Fewer languages help everyone communicate easier/better.

Programming languages seem to go the opposite direction.

Any speculation on why?

comment 9y ago · link · parent

I remember watched a fascinate behind the scene documentary on the down fall of Gorbachev by the old USSR conservative leadership which actually caused the rise of Yeltsin in Youtube recently.

Likely in China during that period of time, the high level struggle for power also happened in BeiJing. In China the reformers of the time didn't win.

comment 9y ago · link · parent

JavaScript lives in a more diverse environments: Multiple browsers, webkit engine, now NodeJS, React, etc.

Varieties, cross pollination from different JS engine/teams make JS much stronger.

Flash, ActiveX, Silverlight, VBScript are all seem more mono-culture - Start to die as soon as the parent organizations/core dev team loss interest / move on to to next best thing.

Flash is a successful until CPU usage, security issues kill it. Just like strong mono-culture plant in a farm got wipe out certain deceases/virus.

comment 9y ago · link · parent

Using vi/vim lets one enter a secret dark corner of programmer society.

Memorize vi keystrokes is knowing the secret handshakes.

Able to Exit vim is finding the door to enlightenment.

If vi comes with an easy "back" button like all browsers, no-one will learn it. One needs to be trapped inside for a while to feel the power of the dark side.

comment 9y ago · link · parent

One solution is for all other countries' border control started to demand passwords to unlock phone/all social apps for UK citizens, SPECIALLY target UK politicians and government workers.

Love to see any/all the interesting info one can find from the politicians.

comment 9y ago · link · parent

Brendan

Love your work on DTrace.

Have you seen / configured a system that keep the FTRACE/DTRACE log data in memory during a crash/ reboot cycle for postmortem kernel crash type analysis?

If so, love the see any reference to how to setup something like that for typical x86 Linux.

Did that long time (10+years) ago on MIPS+vxwork/Linux with someother trace log type system. Miss that capability.....

Thanks

comment 9y ago · link · parent

Since I am not going to be driving it, do I still need car insurance?

Shouldn't the company who develop the Self-Driving tech be liable for any accidents/damages its tech might cause?

If so, great deal for consumers, but I doubt the developers of the Self-Driving Tech would agree pay for the insurance for everyone

comment 9y ago · link · parent

First, you need a computer with a lot of Cores. :-)

All the silicon vendors give out design/layout guideline and reference designs. Most of Motherboard vendor likely copy those with just minor changes.

comment 9y ago · link · parent

I used to be a big VB, VC++ fan boy a long time ago. 1995 :-) Have since move on....

Tried built a few opensource apps with VS once a year for the past few years and found that I can't even compile a single Windows open source packages from github, sourceforge after weeks of trying.

The code might claim to be able to build with VS10, VS12. The dependency libraries will need completely different VS version of .xml, .proj, .sln build systems.

I challenge the PM of VS product try to build a few popular MS projs such as python, VLC, or anything in http://opensourcewindows.org/. Document the process of building the app and dependence library. Compare that to the process of try to build that same packages in Mac (with brew) or in Linux.

In Linux, for all the packages I like play with. "./configure && make" handle most of the the build in a few minutes. Even easier on Ubuntu with apt-get source/build commands. Very similar process in Mac.

Even linux kernel, I can build it easily with pretty much the same 1-2 commands for the past 20 years.

comment 9y ago · link · parent

DSLR camera should integrate Android + Phone SOC inside.

Get the best of both world by combine Android as GUI/API layer + some big DSLR sensor/ custom image processing HW magic.

comment 9y ago · link · parent

A bit like my neighbor's door is wide open. Some teenagers are taking over it.

Instead of just close/lock the door for my neighbor or call the cop, I use a bulldozer to level the house to the ground. (zero out the flash.)

In theory, the "vigilante" can offer his service to device manufacturer to help remotely clean/update the devices instead of just simply wiping them off the net.

comment 9y ago · link · parent

Which 100G nic card are you using with FreeBSD?

comment 9y ago · link · parent

Steve,

Quick question, must the server use "Let's Encrypt" be public on internet to use it?

Like: Can I use private ip (10.1.1.x) behind the NAT and still use "Let's Encrypt" + your CMS/server?

Thanks

comment 9y ago · link · parent

Google can create a new "Android Security Update Guarantee" services - for phone vendors.

When phone vendors releases a phone, they can deposit the vendors custom binaries/source in google servers.

Google will maintain and release security updates for vendors for X number of years for Y amount of $$$/Year.

The phone vendors can snap a "Android Security Update Guarantee by Google until year ZZZZ" logo/label on the phone.

comment 9y ago · link · parent

In windows 10, I use procexp (from sysinternals) with totalvirus check enable.

Basically, it allows all the running .exe programs signatures be checked at once with 56+ virus checking websites and results shows up in the GUI of procexp.

No wasting of CPU cycles to scan every files in the system, typical < 3 seconds to check all the running programs - Light up green/red in GUI.

https://www.youtube.com/watch?v=RnPtuTbqzd4&t=3s

Love to see google do something similar to this in Android.

It is very trivial for Google to dev, deploy these kind of tools/REST API/website. If this is deploy in billions + Android phones, Google should be able to detected/collected/analyze new/potential malwares instantly.

Known good programs with valid signatures - do nothing.

Unknown programs sig - setup special container and monitors app behavior - collect the binaries if needed.

Also, I think google should be able to separate the Google control portions of AOSP from the 3rd party vendors systems drivers/utilities and allow them to be upgrade separately.

I used to work on porting the AOSP on cell/tablet SOC before. It is doable.

comment 10y ago · link · parent

Few years ago, I setup my android platform to allow chroot into a ubuntu for ARM rootfs directory. With that, there is almost zero different than Linux PC. (Well, except may 16+GB of RAM and few TB of SSD/HDD)

comment 10y ago · link · parent

Why not ask questions or ask for solution about that in the hiring and interviewer process? You might just find folks who love/know how to solved that kind of problems to work for you.

BTW, that is very trivial problem to solve for those who has done it.

comment 10y ago · link · parent

oldie but goodie
1
89101112