V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  phx13ye  ›  全部回复第 22 页 / 共 26 页
回复总数  506
1 ... 14  15  16  17  18  19  20  21  22  23 ... 26  
2015-05-19 15:32:55 +08:00
回复了 xuyifei 创建的主题 Java Java 内存问题
没看懂你什么意思, 是说系统内存用太多?
贴个arch wiki
Why is Arch using all my RAM?

Essentially, unused RAM is wasted RAM.

Many new users notice how the Linux kernel handles memory differently than they are used to. Since accessing data from RAM is much faster than from a storage drive, the kernel caches recently accessed data in memory. The cached data is only cleared when the system begins to run out of available memory and new data needs to be loaded.

We could distinguish the difference from free command:

$ free -h

total used free shared buff/cache available
Mem: 2.8G 1.1G 283M 224M 1.4G 1.2G
Swap: 3.0G 881M 2.1G

It is important to note the difference between "free" and "available" memory. In the above example, a laptop with 2.8G of total RAM appears to be using most of it, with only 283M as free memory. However, 1.4G of it is "buff/cache". There is still 1.2G available for starting new applications, without swapping. See man free(1) for detail. The result of all this? Performance!
2015-05-15 10:09:18 +08:00
回复了 andychen20121130 创建的主题 问与答 MacBook Air 13 吋 适合做开发用吗?
连到服务器上不卡
2015-05-15 00:01:31 +08:00
回复了 kkzxak47 创建的主题 Python Python 有没有好的个人博客框架,最好基于 flask
为什么大家都说很简单,我感觉很难啊
数据库怎么设计,界面去哪里扒皮,代码怎么写得优雅,可维护。
真心求教
2015-05-14 11:54:47 +08:00
回复了 quix 创建的主题 程序员 求最适合印在 T 恤上的代码
VIM - Vi Improved
2015-05-13 19:47:56 +08:00
回复了 larkifly 创建的主题 Python webpy 项目现在还有人维护吗?
很多issues和pr没人理
2015-05-13 15:21:59 +08:00
回复了 alexapollo 创建的主题 Python 你心目中 python 最好的 IDE 是什么?
intellij家的东西
2015-05-12 23:36:22 +08:00
回复了 phx13ye 创建的主题 程序员 有哪些语言特性或者说编程方式更利于多核并行?
@davidlau 然而你的博客挂了
2015-05-12 20:18:42 +08:00
回复了 Feiox 创建的主题 Python 为什么 Py3k 要比 Py 2 慢?
不知道有啥好笑的,oop就不能fp?


Functional programming in non-functional languages

It is possible to use a functional style of programming in languages that are not traditionally considered functional languages.[42] For example, both D and Fortran 95 explicitly support pure functions.[43]

First-class functions have slowly been added to mainstream languages. For example, in early 1994, support for lambda, filter, map, and reduce was added to Python. Then during the development of Python 3000, Guido van Rossum called for the removal of these features.[44] However, he later changed his mind, and only reduce was removed,[45] though it remains accessible via the functools standard library module.[46] First-class functions were also introduced in PHP 5.3, Visual Basic 9, C# 3.0, and C++11[citation needed].

In Java, anonymous classes can sometimes be used to simulate closures;[47] however, anonymous classes are not always proper replacements to closures because they have more limited capabilities.[48] Java 8 supports lambda expressions as a replacement for some anonymous classes.

摘自维基百科
2015-05-12 17:05:03 +08:00
回复了 yuankui 创建的主题 Java 如何统计 spring 中每个 bean 从创建到初始化结束所消耗的时间?
不看日志吗
2015-05-12 15:45:31 +08:00
回复了 phx13ye 创建的主题 程序员 有哪些语言特性或者说编程方式更利于多核并行?
@holulu 是的,所以我想知道怎么利用多核的优势
2015-05-12 13:58:40 +08:00
回复了 phx13ye 创建的主题 程序员 有哪些语言特性或者说编程方式更利于多核并行?
@楼上各位
如果不局限于语言,有比较通用的?
我自己的理解, 多线程, fork-join, mapreduce等算不算?
2015-05-12 09:22:40 +08:00
回复了 kakaxi 创建的主题 MySQL mysql 的批量插入能不能这么写?
s/ SELEC//
2015-05-12 09:21:29 +08:00
回复了 kakaxi 创建的主题 MySQL mysql 的批量插入能不能这么写?
INSERT INTO tableA (aaid,bbid) SELEC SELECT 45, ID FROM tableB WHERE id < 10
2015-05-11 16:33:22 +08:00
回复了 WKPlus 创建的主题 Python 单循环两行代码打印出三角形
print i * str(i)
为什么我零分啊
2015-05-11 01:15:59 +08:00
回复了 noli 创建的主题 程序员 我为什么后来远离了 Java
@hepin1989 只是感觉java确实是语言里面的劣币, 为了向前兼容背负了太多包袱
2015-05-11 00:08:47 +08:00
回复了 noli 创建的主题 程序员 我为什么后来远离了 Java
劣币驱逐良币, 状哉我大Java
2015-05-10 14:44:42 +08:00
回复了 qq213539 创建的主题 职场话题 回应@bigzhu 的:坑的不是 java, 难道是 java 程序员比较坑么?
print 'small world'
2015-05-08 22:15:08 +08:00
回复了 tennix 创建的主题 程序员 今天面试被问到 Python 的设计模式,直接给跪了
越垃圾,设计模式越多+1

对于python,很多都内建支持
iterator build-in
builder 默认参数
command, strategy,visitor 什么的,fp表示你们一起上,我赶时间
2015-05-07 23:02:53 +08:00
回复了 typcn 创建的主题 分享创造 纯 C++ 写了一个论坛,求测试
按下一页显示false是什么鬼
2015-05-07 17:58:59 +08:00
回复了 holinhot 创建的主题 Linux shell 怎么逐行从 txt 读入变量
lines=`cat 1.txt`
for i in lines; do echo $i;done
1 ... 14  15  16  17  18  19  20  21  22  23 ... 26  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5310 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 06:00 · PVG 14:00 · LAX 23:00 · JFK 02:00
Developed with CodeLauncher
♥ Do have faith in what you're doing.