由买买提看人间百态

topics

全部话题 - 话题: tij
首页 上页 1 2 (共2页)
b*******p
发帖数: 44
1
来自主题: Java版 - TIJ上写错了?
There is a buffer? Don't think so. If Java can keep track of all String
objects with the same content, then why not do the same thing as those
initialized by string literals since String objects are immutable. And wots
the buffer for here?
m******t
发帖数: 2416
2
来自主题: Java版 - TIJ上写错了?

wots
Just go and read the javadoc for String.intern(), will you? 8-)
Oh, and the JLS 3.10.5.
b*******p
发帖数: 44
3
来自主题: Java版 - TIJ上写错了?
I read those before.
Actually, according to the doc comments of String.intern, not every string
will be in that pool. So his words "all map to the same memory" shouldn't
mean mapping into the same string in the pool.
g*****g
发帖数: 34805
4
来自主题: Java版 - TIJ上写错了?
Why are you guys beating the dead horse.
For all non-JVM developers, it's more than enough to know
you always compare string by "equals".
And I never had the need to use new String() constructor.
g*****g
发帖数: 34805
5
来自主题: Java版 - TIJ上写错了?
It's like the 1 ++++ 1 question you'll see once a while on
programming board. You don't care, whoever write some code
that way should be fired. Program is written to be readable
without 2nd guess.

understood
l****u
发帖数: 2166
6
来自主题: Java版 - TIJ上写错了?
regions of how jvm divides heap mah
m******t
发帖数: 2416
7
来自主题: Java版 - TIJ上写错了?

intern() isn't the actual underlying buffer. Note the word "canonical" in
there. 8-)
m******t
发帖数: 2416
8
来自主题: Java版 - TIJ上写错了?

Yeah, until you hit the bug where you changed a constant string value, but
forgot to rebuild all the classes depending on it.
g*****g
发帖数: 34805
9
来自主题: Java版 - TIJ上写错了?
And why would I do something like that? I am relying on ant script
to do the job, and I always uses a clean build for deployment.
m******t
发帖数: 2416
10
来自主题: Java版 - TIJ上写错了?

It gets trickier if you have multiple modules built separately, e.g.,
through maven. Or if your code relies on some 3rd party libraries.
m******t
发帖数: 2416
11
来自主题: Java版 - TIJ上写错了?

I believe we are talking about Thinking In Java, the book.
l****u
发帖数: 2166
12
来自主题: Java版 - TIJ上写错了?
o. I have the book. let's me dig dig tonite
mine seemly first edition tho
r*****l
发帖数: 2859
13
来自主题: Java版 - TIJ上写错了?
JVM definitely does not do 'lookup'. At least it can calculate
the hash of String literal and store the literal according to
the hash value. That's constant time operation. And that may
be just the JVM has to do anyway.

"If s2 ends up having exactly "Hello World", would that be the same entry in
the pool? To achieve that, the JVM would have to do a lookup after _every_
concatenation, which is probably more inefficient than allocating a new
buffer."
m******t
发帖数: 2416
14
来自主题: Java版 - TIJ上写错了?
This is pretty much what I was trying to explain to the OP - except you put
it in a clearer way.
g******z
发帖数: 5809
15
来自主题: Java版 - 求教:Thinking in java
看TIJ的Generics,从Erasure就开始晕了。这章怎么学啊
m*****k
发帖数: 731
j****g
发帖数: 597
17
来自主题: Programming版 - TIJ上写错了?
1. 没错
2. 没错。字符串相等所以hashcode相等。
t**********g
发帖数: 3388
18
TIJ is junk
l**********1
发帖数: 5204
19
Bingo
it was from
更新时间: 2001-June-12
在美国当教授的北大毕业生(部分)
//www.gotopku.cn/data/detail.php?id=1974
----
Recent 2007 database please try:
[八卦江湖] 带大家认识一下顶尖的美国华裔/华侨女科学家们(有PP有真相)
作者:第五哇 发表日期:2010-8-19
//www.tianya.cn/publicforum/content/funinfo/1/2195431.shtml
---
only HHMI PI please go to
//bbs.netbig.com/thread-2113463-1-1.html
发表于 2011-11-18
NB: updated 2012-May-13
著名医学研究HHMI华裔/华侨PI科学家汇总
华裔/华侨 医学研究 HHMI, 科学家, 著名
Howard Hughes Medical Institute (HHMI) 是全球规模最大的非盈利性私立医学研
究所-基金会,拥资120忆,为美国第二大的慈善机构,仅次... 阅读全帖
p*****m
发帖数: 7030
20
来自主题: Biology版 - NIBS今年的PI候选人
哈 是的 这里我最敬仰的就是Tij了 可惜他太忙 在的时间也不多 只聊过一两次。。
你老板我也很敬仰。。面试时候和他谈了俩小时收获非常大。不过据他我不遗憾哈 他
实在是太忙了 呵呵 想到以后manuscript会放他桌上半年一年的就没啥动力呵呵
p*****m
发帖数: 7030
21
lol 没写成Bob Tij就不错了。。
b******k
发帖数: 2321
22
Bob Tij不太可能拿奖了吧 倒不是说他水平不够 可惜Kornberg拿了一个RNA pol II的
奖了 转录就很难在拿奖了
h***e
发帖数: 20195
23
来自主题: board版 - dreamer没有了
【 以下文字转载自 Detective 讨论区 】
发信人: jk5 (jk5), 信区: Detective
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:12:19 2010, 美东)
发信人: jk5 (jk5), 信区: Joke
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:11:44 2010, 美东)
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dreamer&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
发信人: Dreamer (不要问我从哪里来), 信区: Dreamer
标 题: 潇
h***e
发帖数: 20195
24
来自主题: _Moon_on_River_1版 - 爆料:傲古鸭彻底完了 (转载)
【 以下文字转载自 Joke 讨论区 】
发信人: honde (明月照大江), 信区: Joke
标 题: 爆料:傲古鸭彻底完了 (转载)
发信站: BBS 未名空间站 (Sat Mar 27 13:54:18 2010, 美东)
发信人: jk5 (jk5), 信区: Detective
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:12:19 2010, 美东)
发信人: jk5 (jk5), 信区: Joke
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:11:44 2010, 美东)
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dre
首页 上页 1 2 (共2页)