在 Lambda the Ultimate - The Programming Languages Weblog 裡看到這篇《Language-based security for mobile code, with applications to smart cards》,裡面介紹一篇 TECS Week 2005 的 lecture:《Language-based security for mobile code with applications to smart cards》。有在做 mobile code 或 agent 的人,都值得看一看。稍微作一下筆記:
Language-based security (model) for mobile code:
The sandbox model (how to execute untrusted code securely)
Access control in API (Java [...]
簡單的 script,簡化日常跑程式順便要做 log 的步驟。目前是 FreeBSD only,除了各個 utility program,如 date、script 等路徑的關係之外,最重要的是 FreeBSD 上的 script 的 behavior 跟一般的 script 有些不一樣,允許直接把 command 放在 ${__out_file} 後面。另外,TCSH 的 time 也較精確,取得的資訊也較多,甚至可以在 .(t)cshrc 裡設定最後輸出格式 [1],所以下面就改成用 tcsh 做 time 了。
#!/bin/sh
# ----------------------------------------------------------------------------
# Amarganth Development Environment
# Copyright (C) 2004, Jeff Hung
# All rights reserved.
# ----------------------------------------------------------------------------
# $Date: 2006-09-12 12:37:52 +0800 (Tue, 12 Sep 2006) $
# $Rev: [...]
從這邊輾轉看到這邊。 然後我就到 GCC 官方網站看 ChangeLog。
比較令我感興趣的有:
GCC now generates location lists by default when compiling with debug info and optimization. (disabled by -fno-var-tracking)
#pragma pack() semantics have been brought closer to those used by other compilers. This also applies to C++.
ELF visibility attributes can now be applied to a class type, so that it affects every member [...]
URL: https://opensource.luminis.net/confluence/display/WONKA/Home
某個學長告知的。記錄一下。我把幾個重點弄成 bold 了。
Wonka is a cleanroom Virtual Machine for the Java(tm) language, originally developed by telematics specialists ACUNIA. It is extremely portable and self-contained, and can optionally be used with its own real-time executive (OSwald(tm)) to provide a complete solution for embedded devices. The Wonka Virtual Machine is fully Java2(tm) compatible and the Wonka [...]
Assume that classes of these polymorphic pointers have a clone() virtual member function that can clone it self. Write a functor to clone the objects:
#include <functional>
#include <algorithm>
template <class T>
struct cloner : public ::std::unary_function<T*, T*>
{
T* operator () (T*& p)
{
return p->clone();
[...]